|
从日志[2017-02-18 17:42:43(261)] Message OnUserLeaveRoom(userid=-8285,siteindex=0) 看出,应该是对端断网离开房间。
正常挂掉退出房间时,报错:[2017-02-18 17:44:37(339)] socket error, disconnected by peer!, bTcp(1) - userid(-1)
[2017-02-18 17:44:37(340)] OnSocketClose, index(2)-errorcode(0-3), flags:0x10041, bTcp(1),userid(-1), list:0
再次链接[2017-02-18 17:45:16(040)] Invoke Connect(197.3.155.94,8021)=0,始终未收到服务区回调
请帮分析什么问题?
日志如下:
[2017-02-18 17:42:22(534)] ---------------------------AnyChat Platform Core SDK Client Log---------------------------
[2017-02-18 17:42:22(537)] Load libanychatcore.so success!(V6.1 Build Time:Jul 27 2016 21:28:54)
[2017-02-18 17:42:22(543)] Load libmediautil.so success!(V6.1 Build Time:Jun 12 2016 16:47:31)
[2017-02-18 17:42:22(548)] Load libmediashow.so success!(V6.1 Build Time:Jun 12 2016 12:14:43)
[2017-02-18 17:42:22(550)] Load libmediacore.so success!(V6.1 Build Time:Jun 12 2016 12:14:41)
[2017-02-18 17:42:22(629)] Invoke SetSDKOption(BRAC_SO_NETWORK_AUTORECONNECT=0)
[2017-02-18 17:42:22(633)] Start network engine(IPv4 mode)...
[2017-02-18 17:42:22(635)] Invoke Connect(197.3.155.94,8021)=0
[2017-02-18 17:42:23(696)] Create anychatdnsserver connect:197.3.155.94(8021)
[2017-02-18 17:42:23(769)] On pre-connection result, errorcode:0, anychatcoreserver, 197.3.155.94(8021, tcp:1)
[2017-02-18 17:42:23(804)] CheckClientSocketLink Connect(ip=197.3.155.94,port=8021)
[2017-02-18 17:42:23(842)] Server version: V6.1(Build Time:2016-06-30 14:55:59, Windows server)
[2017-02-18 17:42:23(849)] Message OnConnect(bSuccess:1, errorcode=0)
[2017-02-18 17:42:23(852)] Invoke Login(username:Kxd)=0
[2017-02-18 17:42:23(875)] Message OnLoginSystem(userid=-8286,errorcode=0,username=Kxd), msg deliver worked(0)
[2017-02-18 17:42:23(877)] Load libmediautil.so success!(V6.1 Build Time:Jun 12 2016 16:47:31)
[2017-02-18 17:42:23(880)] Load libmediashow.so success!(V6.1 Build Time:Jun 12 2016 12:14:43)
[2017-02-18 17:42:23(881)] Load libmediacore.so success!(V6.1 Build Time:Jun 12 2016 12:14:41)
[2017-02-18 17:42:23(884)] Server running time: 152 days, 3 hours, 2 minutes, license mode:0
[2017-02-18 17:42:23(888)] Invoke EnterRoom(35200010220170218000009)
[2017-02-18 17:42:23(903)] Connection to streaming media server successfully!(udp delay:8ms)
[2017-02-18 17:42:23(915)] Message OnEnterRoom(roomid=2523,errorcode=0,siteindex=1)
[2017-02-18 17:42:24(711)] Init iOS audio finish(1, 16000, 16), capture size:640
[2017-02-18 17:42:24(714)] Audio Playback Device Init(0, 1, 16000, 16), ios Playback Driver
[2017-02-18 17:42:24(719)] Message OnReceiveOnlineUser(count=2,roomid=2523)
[2017-02-18 17:42:24(728)] Invoke UserSpeakControl(userid=-8285,bOpen=1)
[2017-02-18 17:42:24(736)] Invoke SetSDKOption(BRAC_SO_AUDIO_NSCTRL,1)
[2017-02-18 17:42:24(738)] Invoke UserSpeakControl(userid=-1,bOpen=1)
[2017-02-18 17:42:24(741)] Invoke UserSpeakControl(userid=-8285,bOpen=1)
[2017-02-18 17:42:24(745)] Default Audio Capture Driver()
[2017-02-18 17:42:24(746)] Audio Init, error:0, device:0, 1, 16000, 16, capmode:0
[2017-02-18 17:42:24(764)] Audio codec init, handle:1, 11, 1, 16000, 16, 15850
[2017-02-18 17:42:24(797)] Audio FX Status: VAD:1, NS:1, AGC:0, AEC:0
[2017-02-18 17:42:25(064)] userid(-8285) audio decode, codec:11, 1 channel, 16000Hz
[2017-02-18 17:42:26(929)] On Remote UserCameraControl(dwUserId:-8285, bOpen:1)
[2017-02-18 17:42:26(970)] On Remote UserSpeakControl(dwUserId:-8285, bOpen:1)
[2017-02-18 17:42:43(261)] Message OnUserLeaveRoom(userid=-8285,siteindex=0)
[2017-02-18 17:43:55(721)] Message OnUserEnterRoom(userid=-8287,nickname=vta_d62041ee-58fc-44be-8947-1923f18ac75c,siteindex=0)
[2017-02-18 17:43:56(039)] Invoke SelectVideoCapture(2-Front Facing Camera)
[2017-02-18 17:43:56(040)] Invoke SetSDKOption(BRAC_SO_LOCALVIDEO_AUTOROTATION=1)
[2017-02-18 17:43:56(042)] Apply video parameter:640x480, bitrate:400kbps, quality:3, gop:45, fps:20, preset:3, codec:1
[2017-02-18 17:43:56(043)] Invoke SetSDKOption(BRAC_SO_AUDIO_NSCTRL,1)
[2017-02-18 17:43:56(044)] Invoke UserSpeakControl(userid=-1,bOpen=1)
[2017-02-18 17:43:56(045)] Invoke SetVideoPos(dwUserId:-1, hWnd:0x1838800, l:0, t:0, r:0, b:0, dwStreamIndex:0)
[2017-02-18 17:43:56(046)] Invoke UserCameraControl(userid=-1, bOpen=1, stream=0)
[2017-02-18 17:43:56(047)] Invoke UserSpeakControl(userid=-8287,bOpen=1)
[2017-02-18 17:43:56(048)] Invoke SetVideoPos(dwUserId:-8287, hWnd:0xc3f090, l:0, t:0, r:0, b:0, dwStreamIndex:0)
[2017-02-18 17:43:56(049)] Invoke UserCameraControl(userid=-8287, bOpen=1, stream=0)
[2017-02-18 17:43:56(069)] On Remote UserCameraControl(dwUserId:-8287, bOpen:1)
[2017-02-18 17:43:56(101)] On Remote UserSpeakControl(dwUserId:-8287, bOpen:1)
[2017-02-18 17:43:56(258)] userid(-8287) audio decode, codec:11, 1 channel, 16000Hz
[2017-02-18 17:43:56(980)] video init finish: 640x480, 25fps, fmt:100, ret:0
[2017-02-18 17:43:57(143)] video init finish:640x480, YUV420, fps:25, codecid:1
[2017-02-18 17:43:57(223)] userid(-8287) video decode, codec:1, 640x480, delay:63ms
[2017-02-18 17:43:57(261)] video codec init:codec:1, 20fps, 640x480, bitrate:400kbps, quality:3, preset:3, gop:45, handle:7
[2017-02-18 17:44:01(513)] Invoke SelectVideoCapture(2-Front Facing Camera)
[2017-02-18 17:44:01(515)] Invoke SetSDKOption(BRAC_SO_LOCALVIDEO_AUTOROTATION=1)
[2017-02-18 17:44:01(516)] Apply video parameter:640x480, bitrate:400kbps, quality:3, gop:45, fps:20, preset:3, codec:1
[2017-02-18 17:44:01(663)] Invoke SetSDKOption(BRAC_SO_AUDIO_NSCTRL,1)
[2017-02-18 17:44:01(664)] Invoke UserSpeakControl(userid=-1,bOpen=1)
[2017-02-18 17:44:01(666)] Invoke SetVideoPos(dwUserId:-1, hWnd:0x1838800, l:0, t:0, r:0, b:0, dwStreamIndex:0)
[2017-02-18 17:44:01(668)] Invoke UserCameraControl(userid=-1, bOpen=1, stream=0)
[2017-02-18 17:44:01(669)] Invoke UserSpeakControl(userid=-8287,bOpen=1)
[2017-02-18 17:44:01(685)] Invoke SetVideoPos(dwUserId:-8287, hWnd:0xc3f090, l:0, t:0, r:0, b:0, dwStreamIndex:0)
[2017-02-18 17:44:01(688)] Invoke UserCameraControl(userid=-8287, bOpen=1, stream=0)
[2017-02-18 17:44:02(030)] video init finish: 640x480, 25fps, fmt:100, ret:0
[2017-02-18 17:44:02(153)] video init finish:640x480, YUV420, fps:25, codecid:1
[2017-02-18 17:44:02(239)] video codec init:codec:1, 20fps, 640x480, bitrate:400kbps, quality:3, preset:3, gop:45, handle:10
[2017-02-18 17:44:11(358)] Message OnUserLeaveRoom(userid=-8287,siteindex=0)
[2017-02-18 17:44:36(952)] Invoke UserSpeakControl(userid=-1,bOpen=0)
[2017-02-18 17:44:36(958)] Invoke UserCameraControl(userid=-1, bOpen=0, stream=0)
[2017-02-18 17:44:36(959)] Invoke UserSpeakControl(userid=-1,bOpen=0)
[2017-02-18 17:44:36(963)] Invoke UserCameraControl(userid=-1, bOpen=0, stream=0)
[2017-02-18 17:44:37(084)] Invoke UserSpeakControl(userid=-8287,bOpen=0)
[2017-02-18 17:44:37(086)] Invoke UserCameraControl(userid=-8287, bOpen=0, stream=0)
[2017-02-18 17:44:37(086)] Invoke UserSpeakControl(userid=-8287,bOpen=0)
[2017-02-18 17:44:37(089)] Invoke UserCameraControl(userid=-8287, bOpen=0, stream=0)
[2017-02-18 17:44:37(339)] socket error, disconnected by peer!, bTcp(1) - userid(-1)
[2017-02-18 17:44:37(340)] OnSocketClose, index(2)-errorcode(0-3), flags:0x10041, bTcp(1),userid(-1), list:0
[2017-02-18 17:45:16(037)] Invoke SetSDKOption(BRAC_SO_NETWORK_AUTORECONNECT=0)
[2017-02-18 17:45:16(040)] Invoke Connect(197.3.155.94,8021)=0
[2017-02-18 17:45:59(544)] Invoke UserSpeakControl(userid=-1,bOpen=0)
[2017-02-18 17:45:59(547)] Invoke UserCameraControl(userid=-1, bOpen=0, stream=0)
[2017-02-18 17:45:59(548)] Invoke UserSpeakControl(userid=-8288,bOpen=0)
[2017-02-18 17:45:59(549)] Invoke UserCameraControl(userid=-8288, bOpen=0, stream=0)
[2017-02-18 17:45:59(550)] Invoke UserSpeakControl(userid=-1,bOpen=0)
[2017-02-18 17:45:59(553)] Invoke UserCameraControl(userid=-1, bOpen=0, stream=0)
[2017-02-18 17:45:59(554)] Invoke UserSpeakControl(userid=-1,bOpen=0)
[2017-02-18 17:45:59(558)] Invoke UserSpeakControl(userid=-8288,bOpen=0)
[2017-02-18 17:45:59(560)] Invoke UserCameraControl(userid=-1, bOpen=0, stream=0)
[2017-02-18 17:45:59(560)] Invoke UserCameraControl(userid=-8288, bOpen=0, stream=0)
[2017-02-18 17:45:59(563)] Invoke UserSpeakControl(userid=-8288,bOpen=0)
[2017-02-18 17:45:59(564)] Invoke UserCameraControl(userid=-8288, bOpen=0, stream=0)
|
|