AnyChat技术支持论坛
标题:
3G 和Wifi 互通问题
[打印本页]
作者:
永不言弃
时间:
2014-1-17 11:54
标题:
3G 和Wifi 互通问题
环境:两个手机,一个3G和一个Wifi ,进入可视电话,点击,无法看到对方的图像,但是两个都在3G或者2G或者Wifi 的网络下是通的
作者:
admin
时间:
2014-1-17 12:01
您好,请上传没有视频时双方的日志文件:BRAnyChatCore.log,谢谢。
作者:
永不言弃
时间:
2014-1-17 14:24
这个是一个手机的日志:
[2014-01-17 14:16:50(225)] ---------------------------AnyChat Platform Core SDK Client Log---------------------------
[2014-01-17 14:16:50(227)] Load libanychatcore.so success!(V4.9 Build Time:Jan 16 2014 06:36:25)
[2014-01-17 14:16:50(228)] Android OS SDK Version:16, Support ARMv7:2, Support Neon:4
[2014-01-17 14:16:50(246)] Load libmediautil_v7.so success!(V4.9 Build Time:Jan 16 2014 06:37:31)
[2014-01-17 14:16:50(251)] Load libmediashow_4.0.so success!(V4.9 Build Time:Jan 16 2014 06:36:56)
[2014-01-17 14:16:50(260)] Load libmediacore_4.1.so success!(V4.9 Build Time:Jan 16 2014 06:37:14)
[2014-01-17 14:16:50(265)] CPU:2391.00 MIPS, Hardware:k3v2oem1
[2014-01-17 14:16:53(116)] Invoke BRAC_Connect(192.168.1.172,8906)=0
[2014-01-17 14:16:53(118)] Invoke LoginServer(username=10002)
[2014-01-17 14:16:53(221)] CheckClientSocketLink Connect(ip=192.168.1.172,port=8906)
[2014-01-17 14:16:53(434)] Server version: V4.9(Build Time:2014-01-02 23:02:53, Server OS:Linux)
[2014-01-17 14:16:53(556)] Message OnConnect(bSuccess:1, errorcode=0)
[2014-01-17 14:16:53(803)] Message OnLoginSystem(userid=-9,errorcode=0,username=10002), msg deliver worked(0)
[2014-01-17 14:16:53(867)] Connection to streaming media server successfully!(udp delay:31ms)
[2014-01-17 14:16:53(948)] Apply video parameter:320x240, bitrate:150000, quality:3, gop:40, fps:10, preset:3, codec:0
[2014-01-17 14:16:53(948)] Invoke BRAC_SetSDKOption(BRAC_SO_NETWORK_P2PPOLITIC=0)
[2014-01-17 14:16:53(949)] Invoke SetSDKOption(BRAC_SO_AUDIO_ECHOCTRL,1)
[2014-01-17 14:16:53(949)] Invoke BRAC_SetSDKOption(BRAC_SO_CORESDK_USEHWCODEC=0)
[2014-01-17 14:16:57(119)] Invoke EnterRoom(roomid=2)
[2014-01-17 14:16:57(315)] Message OnEnterRoom(roomid=2,errorcode=0,siteindex=0)
[2014-01-17 14:16:57(319)] Audio Playback Device Init(0, 1, 16000, 16), Default Playback Driver
[2014-01-17 14:16:57(323)] Message OnReceiveOnlineUser(count=1,roomid=2)
[2014-01-17 14:16:57(816)] Message OnUserEnterRoom(userid=-8,nickname=10001,siteindex=1)
[2014-01-17 14:16:59(318)] socket error, disconnected by peer!, bTcp(1) - userid(-1)
[2014-01-17 14:17:00(165)] On Remote UserCameraControl(dwUserId:-8, bOpen:1)
[2014-01-17 14:17:00(228)] On Remote UserSpeakControl(dwUserId:-8, bOpen:1)
[2014-01-17 14:17:02(826)] Invoke UserCameraControl(userid=-8,bOpen=1)
[2014-01-17 14:17:02(827)] Invoke UserSpeakControl(userid=-8,bOpen=1)
[2014-01-17 14:17:02(829)] Invoke UserCameraControl(userid=-1,bOpen=1)
[2014-01-17 14:17:02(831)] Invoke UserSpeakControl(userid=-1,bOpen=1)
[2014-01-17 14:17:03(632)] video init finish:320x240, NV21, fps:25
[2014-01-17 14:17:03(642)] video init finish:320x240, NV21, fps:25
[2014-01-17 14:17:03(647)] Audio Init, error:0, device:-1, 1, 16000, 16, capmode:0
[2014-01-17 14:17:03(648)] Audio codec init, handle:1, 11, 1, 16000, 16, 15850
[2014-01-17 14:17:03(796)] Audio FX Status: VAD:1, NS:1, AGC:1, AEC:1
[2014-01-17 14:17:03(960)] video codec init:codec:1, 10fps, 320x240, bitrate:150000, quality:3, preset:3, gop:40, handle:2
[2014-01-17 14:17:14(005)] Invoke UserCameraControl(userid=-8,bOpen=0)
[2014-01-17 14:17:14(006)] Invoke UserSpeakControl(userid=-8,bOpen=0)
[2014-01-17 14:17:14(007)] Invoke UserCameraControl(userid=-1,bOpen=0)
[2014-01-17 14:17:14(010)] Invoke UserSpeakControl(userid=-1,bOpen=0)
[2014-01-17 14:17:16(295)] On Remote UserCameraControl(dwUserId:-8, bOpen:0)
[2014-01-17 14:17:16(408)] On Remote UserSpeakControl(dwUserId:-8, bOpen:0)
这个是另一个手机的日志
[2013-01-17 14:16:05(587)] ---------------------------AnyChat Platform Core SDK Client Log---------------------------
[2013-01-17 14:16:05(600)] Load libanychatcore.so success!(V4.9 Build Time:Jan 16 2014 06:36:25)
[2013-01-17 14:16:05(601)] Android OS SDK Version:16, Support ARMv7:2, Support Neon:4
[2013-01-17 14:16:05(660)] Load libmediautil_v7.so success!(V4.9 Build Time:Jan 16 2014 06:37:31)
[2013-01-17 14:16:05(669)] Load libmediashow_4.0.so success!(V4.9 Build Time:Jan 16 2014 06:36:56)
[2013-01-17 14:16:05(695)] Cannot load library: reloc_library[1307]: 1748 cannot locate '_ZN7android6Camera7connectEi'...
[2013-01-17 14:16:05(703)] Load libmediacore.so success!(V4.9 Build Time:Jan 16 2014 06:36:59)
[2013-01-17 14:16:05(708)] CPU:1592.52 MIPS, Hardware:SMDK4210
[2013-01-17 14:16:07(401)] Invoke BRAC_Connect(192.168.1.172,8906)=0
[2013-01-17 14:16:07(405)] Invoke LoginServer(username=10001)
[2013-01-17 14:16:07(463)] CheckClientSocketLink Connect(ip=192.168.1.172,port=8906)
[2013-01-17 14:16:07(574)] Server version: V4.9(Build Time:2014-01-02 23:02:53, Server OS:Linux)
[2013-01-17 14:16:07(625)] Message OnConnect(bSuccess:1, errorcode=0)
[2013-01-17 14:16:07(756)] Message OnLoginSystem(userid=-8,errorcode=0,username=10001), msg deliver worked(0)
[2013-01-17 14:16:07(791)] Connection to streaming media server successfully!(udp delay:17ms)
[2013-01-17 14:16:07(876)] Apply video parameter:320x240, bitrate:150000, quality:3, gop:40, fps:10, preset:3, codec:0
[2013-01-17 14:16:07(876)] Invoke BRAC_SetSDKOption(BRAC_SO_NETWORK_P2PPOLITIC=1)
[2013-01-17 14:16:07(876)] Invoke SetSDKOption(BRAC_SO_AUDIO_ECHOCTRL,1)
[2013-01-17 14:16:07(876)] Invoke BRAC_SetSDKOption(BRAC_SO_CORESDK_USEHWCODEC=0)
[2013-01-17 14:16:56(172)] Invoke EnterRoom(roomid=2)
[2013-01-17 14:16:56(300)] Message OnEnterRoom(roomid=2,errorcode=0,siteindex=1)
[2013-01-17 14:16:56(300)] Audio Playback Device Init(0, 1, 16000, 16), Default Playback Driver
[2013-01-17 14:16:56(300)] Message OnReceiveOnlineUser(count=2,roomid=2)
[2013-01-17 14:16:58(604)] Invoke UserCameraControl(userid=-9,bOpen=1)
[2013-01-17 14:16:58(605)] Invoke UserSpeakControl(userid=-9,bOpen=1)
[2013-01-17 14:16:58(607)] Invoke UserCameraControl(userid=-1,bOpen=1)
[2013-01-17 14:16:58(607)] Invoke UserSpeakControl(userid=-1,bOpen=1)
[2013-01-17 14:16:59(609)] video init finish:320x240, NV21, fps:25
[2013-01-17 14:16:59(625)] Audio Init, error:0, device:-1, 1, 16000, 16, capmode:0
[2013-01-17 14:16:59(626)] Audio codec init, handle:1, 11, 1, 16000, 16, 15850
[2013-01-17 14:16:59(978)] Audio FX Status: VAD:1, NS:1, AGC:1, AEC:1
[2013-01-17 14:17:00(176)] video codec init:codec:1, 10fps, 320x240, bitrate:150000, quality:3, preset:3, gop:40, handle:2
[2013-01-17 14:17:01(468)] On Remote UserCameraControl(dwUserId:-9, bOpen:1)
[2013-01-17 14:17:01(632)] On Remote UserSpeakControl(dwUserId:-9, bOpen:1)
[2013-01-17 14:17:12(567)] On Remote UserCameraControl(dwUserId:-9, bOpen:0)
[2013-01-17 14:17:12(661)] On Remote UserSpeakControl(dwUserId:-9, bOpen:0)
[2013-01-17 14:17:14(721)] Invoke UserCameraControl(userid=-9,bOpen=0)
[2013-01-17 14:17:14(721)] Invoke UserSpeakControl(userid=-9,bOpen=0)
[2013-01-17 14:17:14(721)] Invoke UserCameraControl(userid=-1,bOpen=0)
[2013-01-17 14:17:14(722)] Invoke UserSpeakControl(userid=-1,bOpen=0)
作者:
admin
时间:
2014-1-17 14:35
您好!从log看,您是连接一个局域网的服务器(192.168.1.172),如果是3G网的话,应该只能连接外网的IP,您做了NAT端口映射?是否有将UDP(默认是:8907)也进行NAT映射?
另外3G手机、WiFi手机都连接我们公开的服务器:demo.anychat.cn 是否正常呢?
作者:
永不言弃
时间:
2014-1-21 09:38
你好,关于你说用demo.anychat.cn ,我测试了没有图像,跟我测试的结果一样,我是用公网服务器测试的,这个你可以放心。
作者:
佰锐技术-卓剑锐
时间:
2014-1-21 10:50
用3g网络的设备,视频参数设置低一些看看,码率用80Kbps
作者:
永不言弃
时间:
2014-1-23 18:25
这个问题已经解决,是局域网限制的问题,不知道是否有什么方案可以不受这些限制???期待回复
欢迎光临 AnyChat技术支持论坛 (http://bbs.anychat.cn/)
Powered by Discuz! X3