AnyChat技术支持论坛

标题: 发起视频第一次没有视频,有声音,但是关闭页面后,第二次进去就是好的了 [打印本页]

作者: lhl_012    时间: 2017-10-10 16:39
标题: 发起视频第一次没有视频,有声音,但是关闭页面后,第二次进去就是好的了
这个是怎么回事呢?demo例子没有问题,但是检查后初始化过程和demo一样
作者: 佰锐科技-刘冬明    时间: 2017-10-10 16:46
麻烦发下日志瞧瞧
作者: lhl_012    时间: 2017-10-10 16:49
第一次和第二次的日志如下
[2017-10-10 16:48:13(188)][I]        ---------------------------AnyChat Platform Core SDK Client Log---------------------------
[2017-10-10 16:48:13(189)][I]        Load libanychatcore.so success!(V6.5 Build Time:Sep 14 2017 04:15:48)
[2017-10-10 16:48:13(189)][I]        Android OS SDK Version:26, Support ARMv7:0, Support Neon:0
[2017-10-10 16:48:13(212)][I]        Load libmediautil_v8.so success!(V6.5 Build Time:Sep 14 2017 04:17:20)
[2017-10-10 16:48:13(221)][I]        Load libmediashow.so success!(V6.5 Build Time:Sep 14 2017 04:16:33)
[2017-10-10 16:48:13(230)][I]        Load libmediacore.so success!(V6.5 Build Time:Sep 14 2017 04:16:38)
[2017-10-10 16:48:13(232)][I]        server net link reset...
[2017-10-10 16:48:13(232)][I]        Invoke        SetSDKOption(BRAC_SO_LOCALVIDEO_AUTOROTATION=1)
[2017-10-10 16:48:13(232)][I]        Start network engine(IPv4 mode)...
[2017-10-10 16:48:13(233)][I]        Invoke        Connect(ihomecn.rollupcn.com,8906)=0
[2017-10-10 16:48:13(349)][I]        Create anychatdnsserver connect:114.215.109.6(8906)
[2017-10-10 16:48:13(583)][I]        On pre-connection result, errorcode:0, anychatcoreserver, 114.215.109.6(8906, tcp:1)
[2017-10-10 16:48:13(699)][I]        Start anychat server(114.215.109.6:8906) connect...
[2017-10-10 16:48:13(922)][I]        On connect anychat server return, errorcode: 0, appflags:0x0, svrflags:0x0
[2017-10-10 16:48:14(005)][I]        Server version: V6.0(Build Time:2016-02-25 20:46:38, Linux server)
[2017-10-10 16:48:14(109)][I]        m_ProtocolPipeLine, userid:0, local session:-254433533, peer session:0
[2017-10-10 16:48:14(110)][I]        Message        OnConnect(errorcode=0), session:A433B3A6-2D37-BE4C-AB08-4E7F2335F1E1
[2017-10-10 16:48:14(121)][I]        Invoke        Login(username:shs)=0
[2017-10-10 16:48:14(435)][I]        Message        OnLoginSystem(userid=247141, errorcode=0, username=shs)
[2017-10-10 16:48:14(436)][I]        Server running time: 25 days, 10 hours, 36 minutes, license mode:1, certlo:0x37fff, hi:0x0)
[2017-10-10 16:48:14(508)][I]        Connection to streaming media server(114.215.109.6:8907) successfully!(udp delay:35ms)
[2017-10-10 16:48:15(617)][I]        Apply video parameter:320x240, bitrate:150kbps, quality:3, gop:40, fps:10, preset:3, codec:1
[2017-10-10 16:48:15(618)][I]        Invoke        SetSDKOption(BRAC_SO_NETWORK_P2PPOLITIC=1)
[2017-10-10 16:48:15(618)][I]        Invoke        SetSDKOption(BRAC_SO_AUDIO_ECHOCTRL,1)
[2017-10-10 16:48:15(618)][I]        Invoke        SetSDKOption(BRAC_SO_CORESDK_USEHWCODEC=0)
[2017-10-10 16:48:15(618)][I]        Invoke        SetSDKOption(BRAC_SO_LOCALVIDEO_AUTOROTATION=1)
[2017-10-10 16:48:17(083)][I]        Invoke        VideoCallControl(EventType:1, UserId:128452, ErrorCode:0, dwFlags:0, dwParam:0, UserStr=0
[2017-10-10 16:48:17(213)][I]        Message        OnVideoCallEvent(EventType:2, UserId:128452, ErrorCode:0, dwFlags:0x0, dwParam:0)
[2017-10-10 16:48:17(415)][I]        Message        OnVideoCallEvent(EventType:3, UserId:128452, ErrorCode:0, dwFlags:0x0, dwParam:15)
[2017-10-10 16:48:17(419)][I]        Invoke        EnterRoom(roomid=15)
[2017-10-10 16:48:17(639)][I]        Message        OnEnterRoom(roomid=15,errorcode=0,siteindex=5)
[2017-10-10 16:48:17(639)][I]        Audio Playback Device Init(0, 1, 16000, 16), Default Playback Driver
[2017-10-10 16:48:17(641)][I]        Message        OnReceiveOnlineUser(count=6,roomid=15)
[2017-10-10 16:48:17(661)][I]        Invoke        UserSpeakControl(userid=128452, bOpen=1) = 0
[2017-10-10 16:48:17(661)][I]        Invoke        UserSpeakControl(userid=247141, bOpen=1) = 0
[2017-10-10 16:48:17(661)][I]        Invoke        UserCameraControl(userid=128452, bOpen=1) = 0
[2017-10-10 16:48:17(662)][I]        Invoke        UserCameraControl(userid=247141, bOpen=1) = 0
[2017-10-10 16:48:17(743)][I]        Invoke        SetInputAudioFormat(1, 16000, 16, flags:0)
[2017-10-10 16:48:17(744)][I]        Audio Init, error:0, device:-1, 1, 16000, 16, capmode:0
[2017-10-10 16:48:17(744)][I]        Audio codec init, handle:1, 11, 1, 16000, 16, 15850
[2017-10-10 16:48:17(747)][I]        Invoke        SetSDKOption(BRAC_SO_CORESDK_EXTVIDEOINPUT=0)
[2017-10-10 16:48:17(811)][I]        Audio FX Status: VAD:1, NS:1, AGC:1, AEC:1
[2017-10-10 16:48:18(349)][I]        On Remote UserSpeakControl(dwUserId:128452, bOpen:1, streamindex:0)
[2017-10-10 16:48:18(412)][I]        Message        OnP2PConnectState(userid=128452, state=2)
[2017-10-10 16:48:18(443)][I]        userid(128452) video decode, codec:1, 320x240, delay:13ms
[2017-10-10 16:48:18(510)][I]        userid(128452) audio decode, codec:11, 1 channel, 16000Hz
[2017-10-10 16:48:18(601)][I]        Message        OnP2PConnectState(userid=128452, state=3)
[2017-10-10 16:48:20(095)][I]        Invoke        VideoCallControl(EventType:4, UserId:128452, ErrorCode:0, dwFlags:0, dwParam:247141, UserStr=0
[2017-10-10 16:48:20(096)][I]        Invoke        UserSpeakControl(userid=128452, bOpen=0) = 0
[2017-10-10 16:48:20(096)][I]        Invoke        UserSpeakControl(userid=247141, bOpen=0) = 0
[2017-10-10 16:48:20(097)][I]        Invoke        UserCameraControl(userid=128452, bOpen=0) = 0
[2017-10-10 16:48:20(097)][I]        Invoke        UserCameraControl(userid=247141, bOpen=0) = 0
[2017-10-10 16:48:20(097)][I]        Prepare leaveroom......
[2017-10-10 16:48:20(147)][I]        Message        OnVideoCallEvent(EventType:4, UserId:128452, ErrorCode:0, dwFlags:0x0, dwParam:247141)
[2017-10-10 16:48:20(198)][I]        userid(-1) statist info, video fps:0, video count:0, audio count:42
[2017-10-10 16:48:20(198)][I]        Invoke        LeaveRoom(roomid=15)=0        Elapse:100 ms
[2017-10-10 16:48:20(255)][I]        Invoke        SetSDKOption(BRAC_SO_CORESDK_EXTVIDEOINPUT=0)
[2017-10-10 16:48:21(042)][I]        Invoke        VideoCallControl(EventType:4, UserId:128452, ErrorCode:0, dwFlags:0, dwParam:247141, UserStr=0
[2017-10-10 16:48:21(042)][I]        Invoke        UserSpeakControl(userid=128452, bOpen=0) = 3
[2017-10-10 16:48:21(043)][I]        Invoke        UserSpeakControl(userid=247141, bOpen=0) = 3
[2017-10-10 16:48:21(043)][I]        Invoke        UserCameraControl(userid=128452, bOpen=0) = 3
[2017-10-10 16:48:21(043)][I]        Invoke        UserCameraControl(userid=247141, bOpen=0) = 3
[2017-10-10 16:48:21(043)][I]        Prepare leaveroom......
[2017-10-10 16:48:21(043)][I]        Invoke        LeaveRoom(roomid=15)=0        Elapse:0 ms
[2017-10-10 16:48:21(100)][I]        Message        OnVideoCallEvent(EventType:4, UserId:128452, ErrorCode:0, dwFlags:0x0, dwParam:247141)
[2017-10-10 16:48:24(237)][I]        Apply video parameter:320x240, bitrate:150kbps, quality:3, gop:40, fps:10, preset:3, codec:1
[2017-10-10 16:48:24(237)][I]        Invoke        SetSDKOption(BRAC_SO_NETWORK_P2PPOLITIC=1)
[2017-10-10 16:48:24(238)][I]        Invoke        SetSDKOption(BRAC_SO_AUDIO_ECHOCTRL,1)
[2017-10-10 16:48:24(238)][I]        Invoke        SetSDKOption(BRAC_SO_CORESDK_USEHWCODEC=0)
[2017-10-10 16:48:24(238)][I]        Invoke        SetSDKOption(BRAC_SO_LOCALVIDEO_AUTOROTATION=1)
[2017-10-10 16:48:25(453)][I]        Invoke        VideoCallControl(EventType:1, UserId:128452, ErrorCode:0, dwFlags:0, dwParam:0, UserStr=0
[2017-10-10 16:48:25(610)][I]        Message        OnVideoCallEvent(EventType:2, UserId:128452, ErrorCode:0, dwFlags:0x0, dwParam:0)
[2017-10-10 16:48:25(651)][I]        Message        OnVideoCallEvent(EventType:3, UserId:128452, ErrorCode:0, dwFlags:0x0, dwParam:15)
[2017-10-10 16:48:25(660)][I]        Invoke        EnterRoom(roomid=15)
[2017-10-10 16:48:25(814)][I]        Message        OnEnterRoom(roomid=15,errorcode=0,siteindex=5)
[2017-10-10 16:48:25(814)][I]        Audio Playback Device Init(0, 1, 16000, 16), Default Playback Driver
[2017-10-10 16:48:25(816)][I]        Message        OnReceiveOnlineUser(count=6,roomid=15)
[2017-10-10 16:48:25(831)][I]        Invoke        UserSpeakControl(userid=128452, bOpen=1) = 0
[2017-10-10 16:48:25(832)][I]        Invoke        UserSpeakControl(userid=247141, bOpen=1) = 0
[2017-10-10 16:48:25(832)][I]        Invoke        UserCameraControl(userid=128452, bOpen=1) = 0
[2017-10-10 16:48:25(832)][I]        Invoke        UserCameraControl(userid=247141, bOpen=1) = 0
[2017-10-10 16:48:25(846)][I]        Invoke        SetInputAudioFormat(1, 16000, 16, flags:0)
[2017-10-10 16:48:25(847)][I]        Audio Init, error:0, device:-1, 1, 16000, 16, capmode:0
[2017-10-10 16:48:25(847)][I]        Audio codec init, handle:4, 11, 1, 16000, 16, 15850
[2017-10-10 16:48:25(849)][I]        Invoke        SetSDKOption(BRAC_SO_CORESDK_EXTVIDEOINPUT=0)
[2017-10-10 16:48:25(972)][I]        Audio FX Status: VAD:1, NS:1, AGC:1, AEC:1
[2017-10-10 16:48:26(153)][I]        Message        OnP2PConnectState(userid=128452, state=2)
[2017-10-10 16:48:26(567)][I]        On Remote UserSpeakControl(dwUserId:128452, bOpen:1, streamindex:0)
[2017-10-10 16:48:26(588)][I]        Message        OnP2PConnectState(userid=128452, state=3)
[2017-10-10 16:48:26(750)][I]        userid(128452) video decode, codec:1, 320x240, delay:11ms
[2017-10-10 16:48:26(840)][I]        userid(128452) audio decode, codec:11, 1 channel, 16000Hz
[2017-10-10 16:48:27(779)][I]        Invoke        VideoCallControl(EventType:4, UserId:128452, ErrorCode:0, dwFlags:0, dwParam:247141, UserStr=0
[2017-10-10 16:48:27(788)][I]        Invoke        UserSpeakControl(userid=128452, bOpen=0) = 0
[2017-10-10 16:48:27(789)][I]        Invoke        UserSpeakControl(userid=247141, bOpen=0) = 0
[2017-10-10 16:48:27(789)][I]        Invoke        UserCameraControl(userid=128452, bOpen=0) = 0
[2017-10-10 16:48:27(790)][I]        Invoke        UserCameraControl(userid=247141, bOpen=0) = 0
[2017-10-10 16:48:27(790)][I]        Prepare leaveroom......
[2017-10-10 16:48:27(849)][I]        Message        OnVideoCallEvent(EventType:4, UserId:128452, ErrorCode:0, dwFlags:0x0, dwParam:247141)
[2017-10-10 16:48:27(890)][I]        userid(-1) statist info, video fps:0, video count:0, audio count:46
[2017-10-10 16:48:27(891)][I]        Invoke        LeaveRoom(roomid=15)=0        Elapse:101 ms
[2017-10-10 16:48:27(951)][I]        Invoke        SetSDKOption(BRAC_SO_CORESDK_EXTVIDEOINPUT=0)

作者: 佰锐科技-刘冬明    时间: 2017-10-10 17:56
服务器请升级最新版本。再重新测试下。




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