rtsp推流出错: Video source is lost. times:5
jp1017 opened this issue · comments
wifi下推流正常, 2G, 3G网络推流报这个错,然后重连,推不上去
网友建议降低码率
码率降低仍不行, 有提示日志:
D/libEasyPusher: RTSP interaction is complete. Prepare to send RTP...
D/libEasyPusher: EasyStreamPusher rcvpos: 0
D/libEasyPusher: EasyStreamPusher: 139 exit 0..
D/libEasyPusher: EasyStreamPusher rcvpos: 0
D/libEasyPusher: EasyStreamPusher: 133 exit 0..
还有这些日志:
D/libEasyPusher: RTSP interaction is complete. Prepare to send RTP...
D/libEasyPusher: RTP State error. 0
D/libEasyPusher: RTP State error. 0
D/libEasyPusher: RTP State error. 0
D/libEasyPusher: RTP State error. 0
D/libEasyPusher: EasyStreamPusher rcvpos: 0
D/libEasyPusher: EasyStreamPusher: 133 exit 0..
E/easypusher_jni: ____isActivated__....... userPtr=1136631808
代码问题,已解决!
@jp1017 类似问题,你是代码那块出现问题?我在unity打包easypusher到apk中出现如下的问题。重复连接远端rstp服务器。
2020-04-16 11:29:36.822 4210-4332/org.easydarwin.easypusher.forunity I/chatty: uid=10036(org.easydarwin.easypusher.forunity) UnityGfxDeviceW identical 1 line 2020-04-16 11:29:36.921 4210-4332/org.easydarwin.easypusher.forunity I/chatty: uid=10036(org.easydarwin.easypusher.forunity) UnityGfxDeviceW identical 4 lines 2020-04-16 11:29:37.021 4210-4332/org.easydarwin.easypusher.forunity I/chatty: uid=10036(org.easydarwin.easypusher.forunity) UnityGfxDeviceW identical 4 lines 2020-04-16 11:29:37.088 4210-4332/org.easydarwin.easypusher.forunity I/chatty: uid=10036(org.easydarwin.easypusher.forunity) UnityGfxDeviceW identical 2 lines 2020-04-16 11:29:37.118 4210-4950/org.easydarwin.easypusher.forunity D/libEasyPusher: EasyStreamPusher rcvpos: 0 2020-04-16 11:29:37.119 4210-4950/org.easydarwin.easypusher.forunity D/libEasyPusher: EasyStreamPusher: 52 exit 0.. 2020-04-16 11:29:37.119 4210-4950/org.easydarwin.easypusher.forunity E/easypusher_jni: ____isActivated__....... userPtr=-830058496 2020-04-16 11:29:37.123 4210-4950/org.easydarwin.easypusher.forunity D/libEasyPusher: close socket.. 2020-04-16 11:29:37.123 4210-4950/org.easydarwin.easypusher.forunity D/libEasyPusher: init rtspSock: -1