问题模块 框架类型 问题类型 API/组件名称 终端类型 微信版本 基础库版本
API和组件 微信小程序 需求 live-pusher 客户端 6.7.3 2.3.0
- 需求的场景描述(希望解决的问题)
/>
经确认过网络正常的情况下,使用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没有音频流也不断开链接
微信小程序开发问题解答
本文网址:http://www.91bianli.com/kaifazhinan/74774.html