- 需求的场景描述(希望解决的问题)
<live-pusher wx:if="{{pushrtmpUrl!==''}}" url="{{pushrtmpUrl}}" mode="RTC" autopush muted="{{pushMutedStatus}}" enable-camera="{{disable}}" bindstatechange="pusherstatechange" bindnetstatus="pushernetstatus" style="display:none"
/>
经确认过网络正常的情况下,使用livepusher进行推流时(camera是关掉的),发现如果30s没有音频流,会触发-1307断开连接,一般用户使用iPhone手机,连接耳麦,然后不说话比较容易重现,请问有什么办法使30s没有音频流也不断开链接吗?跟使用autopush有关系吗?谢谢
部分日志如下:
2018-10-8 16:10:31 [log] 2018/10/08 16:10:31 221 room ["pushernetstatus: {\"info\":{\"videoBitrate\":0,\"audioBitrate\":6,\"videoFPS\":0,\"videoGOP\":0,\"netSpeed\":6,\"videoWidth\":368,\"videoHeight\":640}}"]
2018-10-8 16:10:33 [log] 2018/10/08 16:10:33 220 room ["pushernetstatus: {\"info\":{\"videoBitrate\":0,\"audioBitrate\":6,\"videoFPS\":0,\"videoGOP\":0,\"netSpeed\":6,\"videoWidth\":368,\"videoHeight\":640}}"]
2018-10-8 16:10:35 [log] 2018/10/08 16:10:35 220 room ["pushernetstatus: {\"info\":{\"videoBitrate\":0,\"audioBitrate\":6,\"videoFPS\":0,\"videoGOP\":0,\"netSpeed\":6,\"videoWidth\":368,\"videoHeight\":640}}"]
2018-10-8 16:10:37 [log] 2018/10/08 16:10:37 220 room ["pushernetstatus: {\"info\":{\"videoBitrate\":0,\"audioBitrate\":3,\"videoFPS\":0,\"videoGOP\":0,\"netSpeed\":3,\"videoWidth\":368,\"videoHeight\":640}}"]
2018-10-8 16:10:39 [log] 2018/10/08 16:10:39 220 room ["pushernetstatus: {\"info\":{\"videoBitrate\":0,\"audioBitrate\":0,\"videoFPS\":0,\"videoGOP\":0,\"netSpeed\":0,\"videoWidth\":368,\"videoHeight\":640}}"]
2018-10-8 16:10:41 [log] 2018/10/08 16:10:41 221 room ["pushernetstatus: {\"info\":{\"videoBitrate\":0,\"audioBitrate\":0,\"videoFPS\":0,\"videoGOP\":0,\"netSpeed\":0,\"videoWidth\":368,\"videoHeight\":640}}"]
2018-10-8 16:10:43 [log] 2018/10/08 16:10:43 221 room ["pushernetstatus: {\"info\":{\"videoBitrate\":0,\"audioBitrate\":0,\"videoFPS\":0,\"videoGOP\":0,\"netSpeed\":0,\"videoWidth\":368,\"videoHeight\":640}}"]
2018-10-8 16:10:45 [log] 2018/10/08 16:10:45 221 room ["pushernetstatus: {\"info\":{\"videoBitrate\":0,\"audioBitrate\":0,\"videoFPS\":0,\"videoGOP\":0,\"netSpeed\":0,\"videoWidth\":368,\"videoHeight\":640}}"]
2018-10-8 16:10:47 [log] 2018/10/08 16:10:47 221 room ["pushernetstatus: {\"info\":{\"videoBitrate\":0,\"audioBitrate\":0,\"videoFPS\":0,\"videoGOP\":0,\"netSpeed\":0,\"videoWidth\":368,\"videoHeight\":640}}"]
2018-10-8 16:10:49 [log] 2018/10/08 16:10:49 220 room ["pushernetstatus: {\"info\":{\"videoBitrate\":0,\"audioBitrate\":0,\"videoFPS\":0,\"videoGOP\":0,\"netSpeed\":0,\"videoWidth\":368,\"videoHeight\":640}}"]
2018-10-8 16:10:51 [log] 2018/10/08 16:10:51 221 room ["pushernetstatus: {\"info\":{\"videoBitrate\":0,\"audioBitrate\":0,\"videoFPS\":0,\"videoGOP\":0,\"netSpeed\":0,\"videoWidth\":368,\"videoHeight\":640}}"]
2018-10-8 16:10:53 [log] 2018/10/08 16:10:53 221 room ["pushernetstatus: {\"info\":{\"videoBitrate\":0,\"audioBitrate\":0,\"videoFPS\":0,\"videoGOP\":0,\"netSpeed\":0,\"videoWidth\":368,\"videoHeight\":640}}"]
2018-10-8 16:10:55 [log] 2018/10/08 16:10:55 221 room ["pushernetstatus: {\"info\":{\"videoBitrate\":0,\"audioBitrate\":0,\"videoFPS\":0,\"videoGOP\":0,\"netSpeed\":0,\"videoWidth\":368,\"videoHeight\":640}}"]
2018-10-8 16:10:57 [log] 2018/10/08 16:10:57 222 room ["pushernetstatus: {\"info\":{\"videoBitrate\":0,\"audioBitrate\":0,\"videoFPS\":0,\"videoGOP\":0,\"netSpeed\":0,\"videoWidth\":368,\"videoHeight\":640}}"]
2018-10-8 16:10:59 [log] 2018/10/08 16:10:59 221 room ["pushernetstatus: {\"info\":{\"videoBitrate\":0,\"audioBitrate\":0,\"videoFPS\":0,\"videoGOP\":0,\"netSpeed\":0,\"videoWidth\":368,\"videoHeight\":640}}"]
2018-10-8 16:11:1 [log] 2018/10/08 16:11:01 220 room ["pushernetstatus: {\"info\":{\"videoBitrate\":0,\"audioBitrate\":0,\"videoFPS\":0,\"videoGOP\":0,\"netSpeed\":0,\"videoWidth\":368,\"videoHeight\":640}}"]
2018-10-8 16:11:3 [log] 2018/10/08 16:11:03 220 room ["pushernetstatus: {\"info\":{\"videoBitrate\":0,\"audioBitrate\":0,\"videoFPS\":0,\"videoGOP\":0,\"netSpeed\":0,\"videoWidth\":368,\"videoHeight\":640}}"]
2018-10-8 16:11:5 [log] 2018/10/08 16:11:05 220 room ["pushernetstatus: {\"info\":{\"videoBitrate\":0,\"audioBitrate\":0,\"videoFPS\":0,\"videoGOP\":0,\"netSpeed\":0,\"videoWidth\":368,\"videoHeight\":640}}"]
2018-10-8 16:11:6 [log] 2018/10/08 16:11:06 264 room ["pusherstatechange: {\"code\":-1307,\"message\":\"30秒没有视频数据,主动断开连接\"}"]
- 希望提供的能力
希望有参数控制30s没有音频流也不断开链接
这是网络断链了,需要手动重启推流
但是我们从日志上看,这个用户对其他音频流的拉流和对服务器其他socket的通讯是正常的,应该不是网络问题哦。日志如下:
2018-10-8 16:11:4 [log] 2018/10/08 16:11:04 877 UUMicService ["reqMicSeatHeartbeat() invoke"]
2018-10-8 16:11:4 [log] 2018/10/08 16:11:04 881 TTRequestData ["seq: 761, cmd: 1007, packetType: 1511, priority: 0, packet total len:44"]
2018-10-8 16:11:4 [log] 2018/10/08 16:11:04 885 TTConnection ["send socket pb message success. seq: 761, cmd: 1007, packetType: 1511, priority: 0"]
2018-10-8 16:11:4 [log] 2018/10/08 16:11:04 899 TTConnection ["received response msg seq:761, cmd:1007, total len:32"]
2018-10-8 16:11:4 [log] 2018/10/08 16:11:04 902 UUMicService ["reqMicSeatHeartbeat() result promise fulfilled","{\"status\":\"fulfilled\"}"]
2018-10-8 16:11:5 [log] 2018/10/08 16:11:05 220 room ["pushernetstatus: {\"info\":{\"videoBitrate\":0,\"audioBitrate\":0,\"videoFPS\":0,\"videoGOP\":0,\"netSpeed\":0,\"videoWidth\":368,\"videoHeight\":640}}"]
2018-10-8 16:11:5 [log] 2018/10/08 16:11:05 394 room ["playernetstatus: {\"info\":{\"videoBitrate\":0,\"audioBitrate\":69,\"videoFPS\":0,\"videoGOP\":0,\"netSpeed\":69,\"netJitter\":0,\"videoWidth\":0,\"videoHeight\":0}}"]
2018-10-8 16:11:5 [log] 2018/10/08 16:11:05 418 room ["playernetstatus: {\"info\":{\"videoBitrate\":0,\"audioBitrate\":2,\"videoFPS\":0,\"videoGOP\":0,\"netSpeed\":2,\"netJitter\":0,\"videoWidth\":0,\"videoHeight\":0}}"]
2018-10-8 16:11:5 [log] 2018/10/08 16:11:05 534 room ["playernetstatus: {\"info\":{\"videoBitrate\":0,\"audioBitrate\":61,\"videoFPS\":0,\"videoGOP\":0,\"netSpeed\":61,\"netJitter\":0,\"videoWidth\":0,\"videoHeight\":0}}"]
2018-10-8 16:11:5 [log] 2018/10/08 16:11:05 665 room ["playernetstatus: {\"info\":{\"videoBitrate\":0,\"audioBitrate\":2,\"videoFPS\":0,\"videoGOP\":0,\"netSpeed\":2,\"netJitter\":0,\"videoWidth\":0,\"videoHeight\":0}}"]
2018-10-8 16:11:6 [log] 2018/10/08 16:11:06 264 room ["pusherstatechange: {\"code\":-1307,\"message\":\"30秒没有视频数据,主动断开连接\"}"]
2018-10-8 16:11:6 [log] 2018/10/08 16:11:06 295 room ["playernetstatus: {\"info\":{\"videoBitrate\":0,\"audioBitrate\":2,\"videoFPS\":0,\"videoGOP\":0,\"netSpeed\":2,\"netJitter\":0,\"videoWidth\":0,\"videoHeight\":0}}"]
2018-10-8 16:11:6 [log] 2018/10/08 16:11:06 367 room ["playernetstatus: {\"info\":{\"videoBitrate\":0,\"audioBitrate\":61,\"videoFPS\":0,\"videoGOP\":0,\"netSpeed\":61,\"netJitter\":0,\"videoWidth\":0,\"videoHeight\":0}}"]
2018-10-8 16:11:6 [log] 2018/10/08 16:11:06 710 UUAVService ["[\"Mon Oct 08 2018 16:11:06 GMT+0800 (CST) [BLIND]: \",\"send message: \",\"{\\\"command\\\":\\\"ping\\\",\\\"requestId\\\":572,\\\"appId\\\":\\\"a63a71a3867848f68eaed07a38ebf60b\\\",\\\"cname\\\":\\\"1173169\\\",\\\"uid\\\":\\\"1000063\\\",\\\"sid\\\":\\\"AB7B23072A53443F8BFDF00D2F2C7644\\\",\\\"ts\\\":1538986266}\"]"]
2018-10-8 16:11:6 [log] 2018/10/08 16:11:06 750 UUAVService ["[\"Mon Oct 08 2018 16:11:06 GMT+0800 (CST) [BLIND]: \",\"receive message: \",\"{\\\"data\\\":\\\"{\\\\\\\"command\\\\\\\":\\\\\\\"pong\\\\\\\",\\\\\\\"requestId\\\\\\\":572,\\\\\\\"appId\\\\\\\":\\\\\\\"a63a71a3867848f68eaed07a38ebf60b\\\\\\\",\\\\\\\"cname\\\\\\\":\\\\\\\"1173169\\\\\\\",\\\\\\\"uid\\\\\\\":\\\\\\\"1000063\\\\\\\",\\\\\\\"sid\\\\\\\":\\\\\\\"AB7B23072A53443F8BFDF00D2F2C7644\\\\\\\",\\\\\\\"ts\\\\\\\":1538986266,\\\\\\\"code\\\\\\\":200,\\\\\\\"serverTs\\\\\\\":1538986266722}\\\"}\"]"]
2018-10-8 16:11:7 [log] 2018/10/08 16:11:07 395 room ["playernetstatus: {\"info\":{\"videoBitrate\":0,\"audioBitrate\":60,\"videoFPS\":0,\"videoGOP\":0,\"netSpeed\":60,\"netJitter\":-7,\"videoWidth\":0,\"videoHeight\":0}}"]
2018-10-8 16:11:7 [log] 2018/10/08 16:11:07 419 room ["playernetstatus: {\"info\":{\"videoBitrate\":0,\"audioBitrate\":2,\"videoFPS\":0,\"videoGOP\":0,\"netSpeed\":2,\"netJitter\":0,\"videoWidth\":0,\"videoHeight\":0}}"]
你好,小程序运行在企业微信后live-pusher 无法正常推流状态码code 是-1313 ,这是什么意思,文档上也没有写
是自动推流还是点击调方法推流呢 建议改成点击调API方法推流
我也遇到这个问题 推流才3-10S就报-1307断了 改为点击后才推流也一样 我看腾讯视频云那个小程序没有这个问题 很稳定
这个问题你解决了么,
我改成点击推流解决了 不知道你的问题和我一样么 音频我没试过
微信这边是不是有比如30秒没有音频和视频码率就自动关闭链接之类的机制?
苹果耳机上比较容易出现,是不是是因为耳机采集的声音比较小,被他们做降噪处理后音频码率就没了,这样导致触发30秒没有音频和视频码率自动关闭链接的机制?
这个问题有没有解决,我现在也遇到同样的问题,推流才3-10S就报-1307断了
我们解决是,是推流服务器的bug
yaojunlibin这是我的微信号,能否微信上详聊
抱歉呀,帮不上你,我们的推流服务是第三方提供的,bug是第三方修复的。
推流服务不就是腾讯云的么,还是还有第三方,