AnyChat技术支持论坛

标题: 视频连接成功,但是互相不能看到对方 [打印本页]

作者: MingleChang    时间: 2014-7-24 11:02
标题: 视频连接成功,但是互相不能看到对方
不知道什么原因,求助!
输出如下:
2014-07-24 10:52:06.513 VideoAUT[249:60b] ---------------------------AnyChat Platform Core SDK Client Log---------------------------
2014-07-24 10:52:06.516 VideoAUT[249:60b] Load libanychatcore.so success!(V5.0 Build Time:Jun 26 2014 10:47:00)
2014-07-24 10:52:06.523 VideoAUT[249:60b] Load libmediautil.so success!(V5.0 Build Time:Jun 26 2014 10:47:17)
2014-07-24 10:52:06.526 VideoAUT[249:60b] Load libmediashow.so success!(V5.0 Build Time:Jun 26 2014 10:47:13)
2014-07-24 10:52:06.528 VideoAUT[249:60b] Load libmediacore.so success!(V5.0 Build Time:Jun 26 2014 10:47:10)
2014-07-24 10:52:06.586 VideoAUT[249:60b] Invoke        BRAC_Connect(58.213.141.190,10021)=0
2014-07-24 10:52:06.587 VideoAUT[249:60b] 连接服务器 OK
2014-07-24 10:52:06.589 VideoAUT[249:60b] Invoke        LoginServer(username=Cat)
2014-07-24 10:52:06.590 VideoAUT[249:60b] 登录系统 OK
2014-07-24 10:52:06.593 VideoAUT[249:60b] Invoke        EnterRoom(2014072410524877142)
2014-07-24 10:52:06.594 VideoAUT[249:60b] 进入房间 OK
2014-07-24 10:52:06.595 VideoAUT[249:60b] whileCount: 1
2014-07-24 10:52:06.625 VideoAUT[249:541b] CheckClientSocketLink         Connect(ip=58.213.141.190,port=10021)
2014-07-24 10:52:06.844 VideoAUT[249:541b] Server version: V4.9(Build Time:2014-03-12 20:00:45, Server OS:Windows)
2014-07-24 10:52:06.847 VideoAUT[249:541b] Message        OnConnect(bSuccess:1, errorcode=0)
2014-07-24 10:52:07.053 VideoAUT[249:541b] Message        OnLoginSystem(userid=-501,errorcode=0,username=Cat), msg deliver worked(0)
2014-07-24 10:52:07.056 VideoAUT[249:541b] Load libmediautil.so success!(V5.0 Build Time:Jun 26 2014 10:47:17)
2014-07-24 10:52:07.059 VideoAUT[249:541b] Load libmediashow.so success!(V5.0 Build Time:Jun 26 2014 10:47:13)
2014-07-24 10:52:07.061 VideoAUT[249:541b] Load libmediacore.so success!(V5.0 Build Time:Jun 26 2014 10:47:10)
2014-07-24 10:52:07.097 VideoAUT[249:60b] whileCount: 2
2014-07-24 10:52:07.258 VideoAUT[249:541b] Message        OnEnterRoom(roomid=236,errorcode=0,siteindex=0)
2014-07-24 10:52:07.450 VideoAUT[249:541b] Audio Playback Device Init(0, 1, 16000, 16), ios Playback Driver
2014-07-24 10:52:07.457 VideoAUT[249:541b] Message        OnReceiveOnlineUser(count=1,roomid=236)
2014-07-24 10:52:07.600 VideoAUT[249:60b] whileCount: 3
2014-07-24 10:52:08.103 VideoAUT[249:60b] whileCount: 4
2014-07-24 10:52:08.606 VideoAUT[249:60b] whileCount: 5
2014-07-24 10:52:09.109 VideoAUT[249:60b] whileCount: 6
2014-07-24 10:52:09.612 VideoAUT[249:60b] whileCount: 7
2014-07-24 10:52:09.665 VideoAUT[249:541b] Message        OnUserEnterRoom(userid=-502,nickname=Work,siteindex=1)
2014-07-24 10:52:09.667 VideoAUT[249:541b] On Remote UserCameraControl(dwUserId:-502, bOpen:1)
2014-07-24 10:52:09.669 VideoAUT[249:541b] On Remote UserSpeakControl(dwUserId:-502, bOpen:1)
2014-07-24 10:52:10.117 VideoAUT[249:60b] Invoke        UserSpeakControl(userid=-1,bOpen=1)
2014-07-24 10:52:10.120 VideoAUT[249:60b] Audio record control:1, result:-1
2014-07-24 10:52:10.121 VideoAUT[249:60b] Invoke        BRAC_SetVideoPos(dwUserId:-1, hWnd:0xadd430, l:0, t:0, r:0, b:0)
2014-07-24 10:52:10.126 VideoAUT[249:60b] Invoke        UserCameraControl(userid=-1,bOpen=1)
2014-07-24 10:52:10.128 VideoAUT[249:60b] Invoke        UserSpeakControl(userid=-502,bOpen=1)
2014-07-24 10:52:10.131 VideoAUT[249:60b] Invoke        BRAC_SetVideoPos(dwUserId:-502, hWnd:0xae0eb0, l:0, t:0, r:0, b:0)
2014-07-24 10:52:10.134 VideoAUT[249:60b] Invoke        UserCameraControl(userid=-502,bOpen=1)
2014-07-24 10:52:10.161 VideoAUT[249:5b07] Default Audio Capture Driver()
2014-07-24 10:52:10.166 VideoAUT[249:5b07] Audio Init, error:0, device:0, 1, 16000, 16, capmode:0
2014-07-24 10:52:10.171 VideoAUT[249:5b07] Audio codec init, handle:1, 11, 1, 16000, 16, 15850
2014-07-24 10:52:10.183 VideoAUT[249:60b] Invoke        BRAC_SetSDKOption(BRAC_SO_NETWORK_P2PPOLITIC=1)
2014-07-24 10:52:10.188 VideoAUT[249:60b] Apply video parameter:192x144, bitrate:120000, quality:2, gop:24, fps:12, preset:1, codec:0
2014-07-24 10:52:10.310 VideoAUT[249:5b07] WARNING: -[<AVCaptureConnection: 0x9afac0> isVideoMinFrameDurationSupported] is deprecated.  Please use AVCaptureDevice activeFormat.videoSupportedFrameRateRanges
2014-07-24 10:52:10.314 VideoAUT[249:5b07] WARNING: -[<AVCaptureConnection: 0x9afac0> setVideoMinFrameDuration:] is deprecated.  Please use AVCaptureDevice setActiveVideoMinFrameDuration
2014-07-24 10:52:10.426 VideoAUT[249:6e03] Audio FX Status: VAD:1, NS:1, AGC:1, AEC:1
2014-07-24 10:52:11.071 VideoAUT[249:530f] Capture pixel format=NV12
2014-07-24 10:52:11.078 VideoAUT[249:5b07] video init finish: 192x144, 25fps, fmt:100, ret:0
2014-07-24 10:52:11.081 VideoAUT[249:5b07] video init finish:192x144, YUV420, fps:25
[libx264 @ 0x11b3800] using cpu capabilities: ARMv6 NEON
[libx264 @ 0x11b3800] profile Main, level 3.0
2014-07-24 10:52:11.159 VideoAUT[249:530f] video codec init:codec:1, 12fps, 192x144, bitrate:120000, quality:2, preset:1, gop:24, handle:2
2014-07-24 10:52:13.232 VideoAUT[249:541b] Warning: The UDP communication with the server abnormal!
2014-07-24 10:52:26.147 VideoAUT[249:60b]


作者: MingleChang    时间: 2014-7-24 11:07
好吧,貌似是PC端的问题
作者: 佰锐技术-高萌    时间: 2014-7-24 11:16
您好,请问两台客户端的本地视频有没有?还有UDP不通的。
作者: admin    时间: 2014-7-24 11:18
Warning: The UDP communication with the server abnormal!

是不是服务器端的UDP端口没有打开,有防火墙?
作者: MingleChang    时间: 2014-7-24 11:28
佰锐技术-高萌 发表于 2014-7-24 11:16
您好,请问两台客户端的本地视频有没有?还有UDP不通的。

都可以看到本地视频的。

我是在Virtualbox里打开XP,在XP里运行PC端的,不知道有没有影响。
找了一台Windows的电脑,直接运行PC端可以互相看到对方了。
作者: admin    时间: 2014-7-24 11:33
亲,可能是虚拟机的网络配置问题,建议用独立的PC来测试,谢谢。
作者: 佰锐技术-高萌    时间: 2014-7-24 11:34
您好,那应该是Virtualbox里打开XP登录客户端影响了UDP的通信。
作者: MingleChang    时间: 2014-7-24 11:46
佰锐技术-高萌 发表于 2014-7-24 11:34
您好,那应该是Virtualbox里打开XP登录客户端影响了UDP的通信。

可以了!

原来虚拟机网卡是NAT的,现在设置为桥接网卡。

谢谢大家!




欢迎光临 AnyChat技术支持论坛 (http://bbs.anychat.cn/) Powered by Discuz! X3