无知少年 发表于 2018-3-14 09:16:07

测试 AnyChatDemoForJava.jar 的时候,摄像头打不开

运行demo中的.jar文件时,可以成功进入房间,笔记本上的摄像头也亮灯了,显示已经打开了,但是在客户端显示不出来。现象如上传发图片

日志记录为:
        ---------------------------AnyChat Platform Core SDK Client Log---------------------------
        Load BRAnyChatCore.dll success!(V7.0 Build Time:Feb5 2018 09:58:26)
        Load BRMiscUtil.dll success!(V7.0 Build Time:Feb5 2018 10:01:13)
        Load BRMediaUtil.dll success!(V7.0 Build Time:Feb5 2018 09:57:38)
        Load BRMediaShow.dll success!(V7.0 Build Time:Feb5 2018 10:01:14)
        Load BRMediaCore.dll success!(V7.0 Build Time:Feb5 2018 10:01:34)
        Video capture device supported:
                1-USB2.0 VGA UVC WebCam
        Audio capture device supported:
                1-麦克风 (Realtek High Definition Audio)
        server net link reset...
        Start network engine(IPv4 mode)...
        Invoke        Connect(demo.anychat.cn,8906)=0
        Invoke        Login(username:1)=0
        Create anychatdnsserver connect:121.199.51.198(8906)
        On pre-connection result, errorcode:0, anychatcoreserver, 121.199.51.198(8906, tcp:1)
        Start anychat server(121.199.51.198:8906) connect...
        On connect anychat server return, errorcode: 0, appflags:0x460080, svrflags:0x10
        m_ProtocolPipeLine, userid:0, local session:-252248355, peer session:0
        Send login request...
        Message        OnConnect(errorcode=0), session:199931F5-FE19-4AA0-BDE7-F1ABAA04DABA
        On tcp connect app reg result, errorcode:0
        Message        OnLoginSystem(userid=6037, errorcode=0, username=1)
        Apply server config: mtu:1500, stream trans mode:0
        Server running time: 53 days, 22 hours, 59 minutes, license mode:1, cert:(lo:0x9feffff, hi:0xf7f)
        Server supports the session hold feature for up to 30000 ms
        On udp connect app reg result, errorcode:0
        Connection to streaming media server(121.199.51.198:8907) successfully!(udp delay:140ms)
        Invoke        EnterRoom(roomid=1)
        Message        OnEnterRoom(roomid=1,errorcode=0,siteindex=1)
        Message        OnReceiveOnlineUser(count=2,roomid=1)
        WaveIn Audio Capture Driver(麦克风 (Realtek High Definition)
        Audio Init, error:0, device:0, 1, 16000, 16, capmode:0
        Audio Playback Device Init(0, 1, 16000, 16), WaveOut Playback Driver
        Invoke        UserCameraControl(userid=-1, bOpen=1) = 0
        Invoke        UserSpeakControl(userid=-1, bOpen=1) = 0
        Invoke        SetVideoPos(dwUserId:-1, hWnd:0x19055e, l:10, t:440, r:260, b:640, dwStreamIndex:0)
        Audio FX Status: VAD:1, NS:1, AGC:1, AEC:1
        MinCroppingSize(640, 480)        MaxCroppingSize(640, 480)        Format(YUY2, 0x32595559, 30fps)
        MinCroppingSize(640, 480)        MaxCroppingSize(640, 480)        Format(YUY2, 0x8d2681, 30fps)
        MinCroppingSize(160, 120)        MaxCroppingSize(160, 120)        Format(YUY2, 0x32595559, 30fps)
        MinCroppingSize(160, 120)        MaxCroppingSize(160, 120)        Format(YUY2, 0x8d2681, 30fps)
        MinCroppingSize(176, 144)        MaxCroppingSize(176, 144)        Format(YUY2, 0x32595559, 30fps)
        MinCroppingSize(176, 144)        MaxCroppingSize(176, 144)        Format(YUY2, 0x8d2681, 30fps)
        MinCroppingSize(320, 240)        MaxCroppingSize(320, 240)        Format(YUY2, 0x32595559, 30fps)
        MinCroppingSize(320, 240)        MaxCroppingSize(320, 240)        Format(YUY2, 0x8d2681, 30fps)
        MinCroppingSize(352, 288)        MaxCroppingSize(352, 288)        Format(YUY2, 0x32595559, 30fps)
        MinCroppingSize(352, 288)        MaxCroppingSize(352, 288)        Format(YUY2, 0x8d2681, 30fps)
        MinCroppingSize(640, 480)        MaxCroppingSize(640, 480)        Format(YUY2, 0x32595559, 30fps)
        MinCroppingSize(640, 480)        MaxCroppingSize(640, 480)        Format(YUY2, 0x8d2681, 30fps)
        Prepare config camera(1-USB2.0 VGA UVC WebCam): 320x240, 25fps
                The best video format is detected: YUY2
                SetFormat(320x240, YUY2, 25fps) = 0
                Video Config Size(320, 240)        Format(YUY2, 25fps)
        video(stream:0) init finish:320x240, YUY2, fps:30, codecid:1
        Invoke        UserCameraControl(userid=-1, bOpen=0) = 0
        Invoke        UserSpeakControl(userid=-1, bOpen=0) = 0
        Prepare leaveroom......
        userid(-1) statist info, video fps:0, video count:0, audio count:0
        Invoke        LeaveRoom(roomid=-1)=0        Elapse:16 ms
        Invoke        EnterRoom(roomid=1)
        Message        OnEnterRoom(roomid=1,errorcode=0,siteindex=1)
        Message        OnReceiveOnlineUser(count=2,roomid=1)
        Invoke        UserCameraControl(userid=-1, bOpen=1) = 0
        WaveIn Audio Capture Driver(麦克风 (Realtek High Definition)
        Audio Init, error:0, device:0, 1, 16000, 16, capmode:0
        Invoke        UserSpeakControl(userid=-1, bOpen=1) = 0
        Invoke        SetVideoPos(dwUserId:-1, hWnd:0xc0956, l:10, t:440, r:260, b:640, dwStreamIndex:0)
        Audio Playback Device Init(0, 1, 16000, 16), WaveOut Playback Driver
        Audio FX Status: VAD:1, NS:1, AGC:1, AEC:1
        MinCroppingSize(640, 480)        MaxCroppingSize(640, 480)        Format(YUY2, 0x32595559, 30fps)
        MinCroppingSize(640, 480)        MaxCroppingSize(640, 480)        Format(YUY2, 0x8d2681, 30fps)
        MinCroppingSize(160, 120)        MaxCroppingSize(160, 120)        Format(YUY2, 0x32595559, 30fps)
        MinCroppingSize(160, 120)        MaxCroppingSize(160, 120)        Format(YUY2, 0x8d2681, 30fps)
        MinCroppingSize(176, 144)        MaxCroppingSize(176, 144)        Format(YUY2, 0x32595559, 30fps)
        MinCroppingSize(176, 144)        MaxCroppingSize(176, 144)        Format(YUY2, 0x8d2681, 30fps)
        MinCroppingSize(320, 240)        MaxCroppingSize(320, 240)        Format(YUY2, 0x32595559, 30fps)
        MinCroppingSize(320, 240)        MaxCroppingSize(320, 240)        Format(YUY2, 0x8d2681, 30fps)
        MinCroppingSize(352, 288)        MaxCroppingSize(352, 288)        Format(YUY2, 0x32595559, 30fps)
        MinCroppingSize(352, 288)        MaxCroppingSize(352, 288)        Format(YUY2, 0x8d2681, 30fps)
        MinCroppingSize(640, 480)        MaxCroppingSize(640, 480)        Format(YUY2, 0x32595559, 30fps)
        MinCroppingSize(640, 480)        MaxCroppingSize(640, 480)        Format(YUY2, 0x8d2681, 30fps)
        Prepare config camera(1-USB2.0 VGA UVC WebCam): 320x240, 25fps
                The best video format is detected: YUY2
                SetFormat(320x240, YUY2, 25fps) = 0
                Video Config Size(320, 240)        Format(YUY2, 25fps)
        video(stream:0) init finish:320x240, YUY2, fps:30, codecid:1
        OnSocketClose, index(3)-errorcode(0-10035), flags:0x10601, userid(-73341), master connect:0, list:0

        OnSocketClose, index(4)-errorcode(0-0), flags:0x10601, userid(-73341), master connect:0, list:0

        OnSocketClose, index(3)-errorcode(0-183), flags:0x10601, userid(-73341), master connect:0, list:0

        Invoke        UserCameraControl(userid=-1, bOpen=0) = 0
        Invoke        UserSpeakControl(userid=-1, bOpen=0) = 0
        Prepare leaveroom......
        userid(-1) statist info, video fps:0, video count:0, audio count:0
        Invoke        LeaveRoom(roomid=-1)=0        Elapse:31 ms
        OnSocketClose, index(3)-errorcode(0-0), flags:0x10601, userid(-73341), master connect:0, list:0

        OnSocketClose, index(4)-errorcode(0-10035), flags:0x10601, userid(-73341), master connect:0, list:0

        OnSocketClose, index(3)-errorcode(0-183), flags:0x10601, userid(-73341), master connect:0, list:0

        Invoke        EnterRoom(roomid=1)
        Message        OnEnterRoom(roomid=1,errorcode=0,siteindex=2)
        Message        OnReceiveOnlineUser(count=3,roomid=1)
        Invoke        UserCameraControl(userid=-1, bOpen=1) = 0
        WaveIn Audio Capture Driver(麦克风 (Realtek High Definition)
        Audio Init, error:0, device:0, 1, 16000, 16, capmode:0
        Invoke        UserSpeakControl(userid=-1, bOpen=1) = 0
        Invoke        SetVideoPos(dwUserId:-1, hWnd:0x11038a, l:10, t:440, r:260, b:640, dwStreamIndex:0)
        Audio Playback Device Init(0, 1, 16000, 16), WaveOut Playback Driver
        Audio FX Status: VAD:1, NS:1, AGC:1, AEC:1
        MinCroppingSize(640, 480)        MaxCroppingSize(640, 480)        Format(YUY2, 0x32595559, 30fps)
        MinCroppingSize(640, 480)        MaxCroppingSize(640, 480)        Format(YUY2, 0x8d2681, 30fps)
        MinCroppingSize(160, 120)        MaxCroppingSize(160, 120)        Format(YUY2, 0x32595559, 30fps)
        MinCroppingSize(160, 120)        MaxCroppingSize(160, 120)        Format(YUY2, 0x8d2681, 30fps)
        MinCroppingSize(176, 144)        MaxCroppingSize(176, 144)        Format(YUY2, 0x32595559, 30fps)
        MinCroppingSize(176, 144)        MaxCroppingSize(176, 144)        Format(YUY2, 0x8d2681, 30fps)
        MinCroppingSize(320, 240)        MaxCroppingSize(320, 240)        Format(YUY2, 0x32595559, 30fps)
        MinCroppingSize(320, 240)        MaxCroppingSize(320, 240)        Format(YUY2, 0x8d2681, 30fps)
        MinCroppingSize(352, 288)        MaxCroppingSize(352, 288)        Format(YUY2, 0x32595559, 30fps)
        MinCroppingSize(352, 288)        MaxCroppingSize(352, 288)        Format(YUY2, 0x8d2681, 30fps)
        MinCroppingSize(640, 480)        MaxCroppingSize(640, 480)        Format(YUY2, 0x32595559, 30fps)
        MinCroppingSize(640, 480)        MaxCroppingSize(640, 480)        Format(YUY2, 0x8d2681, 30fps)
        Prepare config camera(1-USB2.0 VGA UVC WebCam): 320x240, 25fps
                The best video format is detected: YUY2
                SetFormat(320x240, YUY2, 25fps) = 0
                Video Config Size(320, 240)        Format(YUY2, 25fps)
        video(stream:0) init finish:320x240, YUY2, fps:30, codecid:1
        Message        OnUserLeaveRoom(userid=-73461,siteindex=1)
        Invoke        UserCameraControl(userid=-1, bOpen=0) = 0
        Invoke        UserSpeakControl(userid=-1, bOpen=0) = 0
        Prepare leaveroom......
        userid(-1) statist info, video fps:0, video count:0, audio count:0
        Invoke        LeaveRoom(roomid=-1)=0        Elapse:31 ms






佰锐科技-刘冬明 发表于 2018-3-14 09:44:11

您方便留下QQ号,我们远程协助帮您看看。

无知少年 发表于 2018-3-14 09:48:28

佰锐科技-刘冬明 发表于 2018-3-14 09:44
您方便留下QQ号,我们远程协助帮您看看。

那太好了 , qq 1067472997

佰锐科技-刘冬明 发表于 2018-3-14 09:53:04

无知少年 发表于 2018-3-14 09:48
那太好了 , qq 1067472997

要填您的真实名字。。。您加我吧。1066495964
页: [1]
查看完整版本: 测试 AnyChatDemoForJava.jar 的时候,摄像头打不开