AnyChat技术支持论坛

标题: 视频断开后立即重连的问题 [打印本页]

作者: jycainiao    时间: 2016-5-20 14:30
标题: 视频断开后立即重连的问题
如题,视频断开后立即重连,就没反应  
但是如果   断开五六秒钟后  就可以正常接通  为什么

作者: 佰锐科技-苏晴    时间: 2016-5-20 14:37
您好,这个异步加载的问题。
作者: jycainiao    时间: 2016-5-20 14:50
意思是我要写个延时消息?   还是说anychat里面有什么方法可以搞定?  延时多久?

作者: 佰锐科技-闫洪亮    时间: 2016-5-20 17:19
您是自己挂断视频的,还是网络异常断开的?
作者: jycainiao    时间: 2016-5-20 17:49
自己挂断的  调用了 视频和音频的关闭方法   视频连接的断开方法   都调用了
另外   手动挂断和自动断开的处理方法还不一样吗
作者: admin    时间: 2016-5-22 09:12
如题,视频断开后立即重连,就没反应  
请提供没有反应时的日志信息(BRAnyChatCore.log),我们帮您分析一下,谢谢。
作者: jycainiao    时间: 2016-5-23 13:39
我再真机测试的  日志哪里找啊

作者: jycainiao    时间: 2016-5-23 13:45
[2016-05-23 13:43:22(537)]        ---------------------------AnyChat Platform Core SDK Client Log---------------------------
[2016-05-23 13:43:22(538)]        Load libanychatcore.so success!(V6.0 Build Time:Mar 22 2016 10:51:35)
[2016-05-23 13:43:22(540)]        Android OS SDK Version:19, Support ARMv7:2, Support Neon:4
[2016-05-23 13:43:22(559)]        Load libmediautil_v7.so success!(V6.0 Build Time:Mar 22 2016 10:54:01)
[2016-05-23 13:43:22(568)]        Load libmediashow.so success!(V6.0 Build Time:Mar 22 2016 10:53:38)
[2016-05-23 13:43:22(577)]        Load libmediacore.so success!(V6.0 Build Time:Mar 22 2016 10:53:43)
[2016-05-23 13:43:22(578)]        HM 2A(Xiaomi) lc1860  4.4.4
[2016-05-23 13:43:22(584)]        Apply video parameter:176x144, bitrate:60kbps, quality:0, gop:40, fps:10, preset:1, codec:0
[2016-05-23 13:43:22(584)]        Invoke        SetSDKOption(BRAC_SO_NETWORK_P2PPOLITIC=1)
[2016-05-23 13:43:22(585)]        Invoke        SetSDKOption(BRAC_SO_AUDIO_ECHOCTRL,1)
[2016-05-23 13:43:22(586)]        Invoke        SetSDKOption(BRAC_SO_CORESDK_USEHWCODEC=0)
[2016-05-23 13:43:23(999)]        Invoke        Connect(192.168.1.104,8021)=0
[2016-05-23 13:43:25(036)]        Create anychatdnsserver connect:192.168.1.104(8021)
[2016-05-23 13:43:25(276)]        On pre-connection result, errorcode:0, anychatcoreserver, 192.168.1.104(8021, tcp:1)
[2016-05-23 13:43:25(350)]        CheckClientSocketLink         Connect(ip=192.168.1.104,port=8021)
[2016-05-23 13:43:25(402)]        Server version: V5.2(Build Time:2015-01-26 19:33:17, Server OS:Windows)
[2016-05-23 13:43:25(445)]        Message        OnConnect(bSuccess:1, errorcode=0)
[2016-05-23 13:43:25(467)]        Invoke        Login(username:AnyChat-DJY)=0
[2016-05-23 13:43:25(855)]        Message        OnLoginSystem(userid=-13,errorcode=0,username=AnyChat-DJY), msg deliver worked(0)
[2016-05-23 13:43:25(857)]        Server running time: 0 days, 3 hours, 5 minutes, license mode:0
[2016-05-23 13:43:25(917)]        Connection to streaming media server successfully!(udp delay:26ms)
[2016-05-23 13:43:25(968)]        Invoke        EnterRoom(roomid=1)
[2016-05-23 13:43:26(366)]        Message        OnEnterRoom(roomid=1,errorcode=0,siteindex=1)
[2016-05-23 13:43:26(367)]        Audio Playback Device Init(0, 1, 16000, 16), Default Playback Driver
[2016-05-23 13:43:26(368)]        Message        OnReceiveOnlineUser(count=2,roomid=1)
[2016-05-23 13:43:26(420)]        Invoke        UserSpeakControl(userid=-1,bOpen=1)
[2016-05-23 13:43:26(422)]        Invoke        UserSpeakControl(userid=35,bOpen=1)
[2016-05-23 13:43:26(469)]        Invoke        SetInputAudioFormat(1, 16000, 16, flags:0)
[2016-05-23 13:43:26(470)]        Audio Init, error:0, device:-1, 1, 16000, 16, capmode:0
[2016-05-23 13:43:26(471)]        Audio codec init, handle:1, 11, 1, 16000, 16, 15850
[2016-05-23 13:43:26(590)]        Audio FX Status: VAD:1, NS:1, AGC:1, AEC:1
[2016-05-23 13:43:26(822)]        Message        OnP2PConnectState(userid=-11, state=1)
[2016-05-23 13:43:26(885)]        Message        OnP2PConnectState(userid=-11, state=3)
[2016-05-23 13:43:28(151)]        APPLOG        Camera Preview size: 1280 x 960
[2016-05-23 13:43:28(152)]        APPLOG        Camera Preview size: 1280 x 720
[2016-05-23 13:43:28(152)]        APPLOG        Camera Preview size: 768 x 432
[2016-05-23 13:43:28(153)]        APPLOG        Camera Preview size: 720 x 480
[2016-05-23 13:43:28(154)]        APPLOG        Camera Preview size: 640 x 480
[2016-05-23 13:43:28(155)]        APPLOG        Camera Preview size: 640 x 352
[2016-05-23 13:43:28(159)]        APPLOG        Camera Preview size: 352 x 288
[2016-05-23 13:43:28(160)]        APPLOG        Camera Preview size: 320 x 240
[2016-05-23 13:43:28(161)]        APPLOG        Camera Preview size: 1
作者: 佰锐科技-苏晴    时间: 2016-5-23 13:59
本帖最后由 佰锐科技-苏晴 于 2016-5-23 14:15 编辑

您好,只请求了音频没有视频。
作者: jycainiao    时间: 2016-5-23 17:58
[2016-05-23 17:56:50(324)]        ---------------------------AnyChat Platform Core SDK Client Log---------------------------
[2016-05-23 17:56:50(325)]        Load libanychatcore.so success!(V6.0 Build Time:Mar 22 2016 10:51:35)
[2016-05-23 17:56:50(327)]        Android OS SDK Version:19, Support ARMv7:2, Support Neon:4
[2016-05-23 17:56:50(348)]        Load libmediautil_v7.so success!(V6.0 Build Time:Mar 22 2016 10:54:01)
[2016-05-23 17:56:50(356)]        Load libmediashow.so success!(V6.0 Build Time:Mar 22 2016 10:53:38)
[2016-05-23 17:56:50(365)]        Load libmediacore.so success!(V6.0 Build Time:Mar 22 2016 10:53:43)
[2016-05-23 17:56:50(367)]        HM 2A(Xiaomi) lc1860  4.4.4
[2016-05-23 17:56:50(370)]        Apply video parameter:320x240, bitrate:150kbps, quality:0, gop:40, fps:10, preset:3, codec:0
[2016-05-23 17:56:50(370)]        Invoke        SetSDKOption(BRAC_SO_NETWORK_P2PPOLITIC=1)
[2016-05-23 17:56:50(371)]        Invoke        SetSDKOption(BRAC_SO_AUDIO_ECHOCTRL,1)
[2016-05-23 17:56:50(371)]        Invoke        SetSDKOption(BRAC_SO_CORESDK_USEHWCODEC=0)
[2016-05-23 17:56:57(876)]        Invoke        Connect(192.168.1.104,8021)=0
[2016-05-23 17:56:58(944)]        Create anychatdnsserver connect:192.168.1.104(8021)
[2016-05-23 17:56:59(016)]        On pre-connection result, errorcode:0, anychatcoreserver, 192.168.1.104(8021, tcp:1)
[2016-05-23 17:56:59(047)]        CheckClientSocketLink         Connect(ip=192.168.1.104,port=8021)
[2016-05-23 17:56:59(079)]        Server version: V5.2(Build Time:2015-01-26 19:33:17, Server OS:Windows)
[2016-05-23 17:56:59(111)]        Message        OnConnect(bSuccess:1, errorcode=0)
[2016-05-23 17:56:59(133)]        Invoke        Login(username:AnyChat-DJY)=0
[2016-05-23 17:56:59(335)]        Message        OnLoginSystem(userid=-37,errorcode=0,username=AnyChat-DJY), msg deliver worked(0)
[2016-05-23 17:56:59(336)]        Server running time: 0 days, 7 hours, 18 minutes, license mode:0
[2016-05-23 17:56:59(364)]        Connection to streaming media server successfully!(udp delay:13ms)
[2016-05-23 17:56:59(366)]        Invoke        EnterRoom(roomid=1)
[2016-05-23 17:56:59(610)]        Message        OnEnterRoom(roomid=1,errorcode=0,siteindex=1)
[2016-05-23 17:56:59(611)]        Audio Playback Device Init(0, 1, 16000, 16), Default Playback Driver
[2016-05-23 17:56:59(612)]        Message        OnReceiveOnlineUser(count=2,roomid=1)
[2016-05-23 17:56:59(660)]        Invoke        UserSpeakControl(userid=-1,bOpen=1)
[2016-05-23 17:56:59(661)]        Invoke        UserSpeakControl(userid=-36,bOpen=1)
[2016-05-23 17:56:59(703)]        Invoke        SetInputAudioFormat(1, 16000, 16, flags:0)
[2016-05-23 17:56:59(704)]        Audio Init, error:0, device:-1, 1, 16000, 16, capmode:0
[2016-05-23 17:56:59(705)]        Audio codec init, handle:1, 11, 1, 16000, 16, 15850
[2016-05-23 17:56:59(827)]        Message        OnP2PConnectState(userid=-36, state=1)
[2016-05-23 17:56:59(835)]        Audio FX Status: VAD:1, NS:1, AGC:1, AEC:1
[2016-05-23 17:56:59(869)]        Message        OnP2PConnectState(userid=-36, state=3)
[2016-05-23 17:56:59(924)]        userid(-36) audio decode, codec:11, 1 channel, 16000Hz
[2016-05-23 17:57:08(781)]        APPLOG        Camera Preview size: 1280 x 960
[2016-05-23 17:57:08(784)]        APPLOG        Camera Preview size: 1280 x 720
[2016-05-23 17:57:08(785)]        APPLOG        Camera Preview size: 768 x 432
[2016-05-23 17:57:08(786)]        APPLOG        Camera Preview size: 720 x 480
[2016-05-23 17:57:08(786)]        APPLOG        Camera Preview size: 640 x 480
[2016-05-23 17:57:08(788)]        APPLOG        Camera Preview size: 640 x 352
[2016-05-23 17:57:08(790)]        APPLOG        Camera Preview size: 352 x 288
[2016-05-23 17:57:08(791)]        APPLOG        Ca
作者: jycainiao    时间: 2016-5-23 18:05
视频可以显示  但是视频和音频都关了之后   再次重新申请打开   就不行了   一直不显示登陆成功的提示 也没有视频和声音的输出
2016-05-23 18:01:47(504)]        ---------------------------AnyChat Platform Core SDK Client Log---------------------------
[2016-05-23 18:01:47(507)]        Load libanychatcore.so success!(V6.0 Build Time:Mar 22 2016 10:51:35)
[2016-05-23 18:01:47(508)]        Android OS SDK Version:19, Support ARMv7:2, Support Neon:4
[2016-05-23 18:01:47(538)]        Load libmediautil_v7.so success!(V6.0 Build Time:Mar 22 2016 10:54:01)
[2016-05-23 18:01:47(551)]        Load libmediashow.so success!(V6.0 Build Time:Mar 22 2016 10:53:38)
[2016-05-23 18:01:47(580)]        Load libmediacore.so success!(V6.0 Build Time:Mar 22 2016 10:53:43)
[2016-05-23 18:01:47(584)]        HM 2A(Xiaomi) lc1860  4.4.4
[2016-05-23 18:01:47(587)]        Apply video parameter:320x240, bitrate:150kbps, quality:0, gop:40, fps:10, preset:3, codec:0
[2016-05-23 18:01:47(588)]        Invoke        SetSDKOption(BRAC_SO_NETWORK_P2PPOLITIC=1)
[2016-05-23 18:01:47(589)]        Invoke        SetSDKOption(BRAC_SO_AUDIO_ECHOCTRL,1)
[2016-05-23 18:01:47(590)]        Invoke        SetSDKOption(BRAC_SO_CORESDK_USEHWCODEC=0)
[2016-05-23 18:02:11(081)]        Invoke        Connect(192.168.1.104,8021)=0
[2016-05-23 18:02:12(105)]        Create anychatdnsserver connect:192.168.1.104(8021)
[2016-05-23 18:02:15(160)]        On pre-connection result, errorcode:0, anychatcoreserver, 192.168.1.104(8021, tcp:1)
[2016-05-23 18:02:15(186)]        CheckClientSocketLink         Connect(ip=192.168.1.104,port=8021)
[2016-05-23 18:02:15(219)]        Server version: V5.2(Build Time:2015-01-26 19:33:17, Server OS:Windows)
[2016-05-23 18:02:15(263)]        Message        OnConnect(bSuccess:1, errorcode=0)
[2016-05-23 18:02:15(306)]        Invoke        Login(username:AnyChat-DJY)=0
[2016-05-23 18:02:15(740)]        Message        OnLoginSystem(userid=-38,errorcode=0,username=AnyChat-DJY), msg deliver worked(0)
[2016-05-23 18:02:15(742)]        Server running time: 0 days, 7 hours, 24 minutes, license mode:0
[2016-05-23 18:02:15(754)]        Connection to streaming media server successfully!(udp delay:5ms)
[2016-05-23 18:02:15(758)]        Invoke        EnterRoom(roomid=1)
[2016-05-23 18:02:15(787)]        Message        OnEnterRoom(roomid=1,errorcode=0,siteindex=1)
[2016-05-23 18:02:15(788)]        Audio Playback Device Init(0, 1, 16000, 16), Default Playback Driver
[2016-05-23 18:02:15(789)]        Message        OnReceiveOnlineUser(count=2,roomid=1)
[2016-05-23 18:02:15(967)]        Invoke        UserSpeakControl(userid=-1,bOpen=1)
[2016-05-23 18:02:15(968)]        Invoke        UserSpeakControl(userid=-36,bOpen=1)
[2016-05-23 18:02:16(000)]        Invoke        SetInputAudioFormat(1, 16000, 16, flags:0)
[2016-05-23 18:02:16(000)]        Audio Init, error:0, device:-1, 1, 16000, 16, capmode:0
[2016-05-23 18:02:16(001)]        Audio codec init, handle:1, 11, 1, 16000, 16, 15850
[2016-05-23 18:02:16(060)]        userid(-36) audio decode, codec:11, 1 channel, 16000Hz
[2016-05-23 18:02:16(200)]        Message        OnP2PConnectState(userid=-36, state=2)
[2016-05-23 18:02:16(252)]        Message        OnP2PConnectState(userid=-36, state=3)
[2016-05-23 18:02:17(311)]        Audio FX Status: VAD:1, NS:1, AGC:1, AEC:1
[2016-05-23 18:02:28(170)]        APPLOG        Camera Preview size: 1280 x 960
[2016-05-23 18:02:28(172)]        APPLOG        Camera Preview size: 1280 x 720
[2016-05-23 18:02:28(173)]        APPLOG        Camera Preview size: 768 x 432
[2016-05-23 18:02:28(174)]        APPLOG        Camera Preview size: 720 x 480
[2016-05-23 18:02:28(176)]        APPLOG        Camera Preview size: 640 x 480
[2016-05-23 18:02:28(177)]        APPLOG        Camera Preview size: 640 x 352
[2016-05-23 18:02:28(178)]        APPLOG        Camera Preview size: 352 x 288
[2016-05-23 18:02:28(179)]        APPLOG        Cam
作者: jycainiao    时间: 2016-5-24 10:01
退出房间后 需不需要重新连接啊  还是说退出房间后  只需要重新进入房间就好了
作者: 佰锐科技-苏晴    时间: 2016-5-24 10:10
您好,退出房间后,在进入房间就可以了。




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