live-pusher 推流总是失败?
发布于 6 年前 作者 zhouguiying 6969 次浏览 来自 官方Issues

您好:

live-pusher 推流总是失败。

说明:网络没有问题, 推流地址已用 腾讯云工具包 和 腾讯视频云 测试 可用。

服务器地址: “rtmp://livepush.daxiangxiaojia.cn/live/******?txSecret=*******************************&txTime=********” 

说明: *** 符号表示自己的可变参数。

帮忙分析一下,已上传日志。

微信号: quqingyu_v

测试时间: 2020 年 03 月 10 日 10:57  左右

上传日志时间: 2020 年 03 月 10 日 11:13 开始上传

在真机调试的时候:

 1、live-pusher code: 1005 推流动态调整分辨率

 2、live-pusher code: 1003 背景音资源(BGM)加载失败

 3、live-pusher code: 1007 首帧画面采集完成

 4、live-pusher code: 1008 编码器启动

 5、live-pusher code: 1001 已经连接推流服务器

 6、live-pusher code: 1002 已经与服务器握手完毕,开始推流

 7、live-pusher code: 3005 RTMP 读/写失败

 …

 live-pusher code: 1101 网络状况不佳:上行带宽太小,上传数据受阻

 live-pusher code: 3005 RTMP 读/写失败

 …

 live-pusher code: -1326   这个表示什么?没查到

 …

 live-pusher code: -1307 表示网络断连,且经三次抢救无效,可以放弃治疗,更多重试请自行重启推流

请问是什么原因呢?谢谢!

重复几次以后,最后返回-1307(表示网络断连,且经三次抢救无效,可以放弃治疗,更多重试请自行重启推流)。返回的日志信息如下图:

完整日志如下:

跳转到推流

runtime.js?devtools_ignore=true:1 [Violation] 'message' handler took 347ms

runtime.js?devtools_ignore=true:1 [Violation] 'message' handler took 245ms

index.js? [sm]:24 live-pusher code: 1005

index.js? [sm]:24 live-pusher code: 1003

index.js? [sm]:24 live-pusher code: 1007

index.js? [sm]:24 live-pusher code: 1008

index.js? [sm]:24 live-pusher code: 1001

index.js? [sm]:24 live-pusher code: 1002

2index.js? [sm]:24 live-pusher code: 3005

index.js? [sm]:24 live-pusher code: 1102

index.js? [sm]:24 live-pusher code: 1001

index.js? [sm]:24 live-pusher code: 1002

2index.js? [sm]:24 live-pusher code: 3005

index.js? [sm]:24 live-pusher code: 1102

index.js? [sm]:24 live-pusher code: 1001

index.js? [sm]:24 live-pusher code: 1002

index.js? [sm]:24 live-pusher code: -1326

index.js? [sm]:24 live-pusher code: 3005

index.js? [sm]:24 live-pusher code: 1102

index.js? [sm]:24 live-pusher code: 1001

index.js? [sm]:24 live-pusher code: 1002

index.js? [sm]:24 live-pusher code: -1326

index.js? [sm]:24 live-pusher code: 3005

index.js? [sm]:24 live-pusher code: 1102

index.js? [sm]:24 live-pusher code: 1001

index.js? [sm]:24 live-pusher code: 1002

index.js? [sm]:24 live-pusher code: -1326

index.js? [sm]:24 live-pusher code: 3005

index.js? [sm]:24 live-pusher code: 1102

index.js? [sm]:24 live-pusher code: 1001

index.js? [sm]:24 live-pusher code: 1002

index.js? [sm]:24 live-pusher code: -1326

index.js? [sm]:24 live-pusher code: 3005

index.js? [sm]:24 live-pusher code: 1102

index.js? [sm]:24 live-pusher code: 1001

index.js? [sm]:24 live-pusher code: 1002

index.js? [sm]:24 live-pusher code: -1326

index.js? [sm]:24 live-pusher code: 3005

index.js? [sm]:24 live-pusher code: 1102

index.js? [sm]:24 live-pusher code: 1001

index.js? [sm]:24 live-pusher code: 1002

index.js? [sm]:24 live-pusher code: -1326

index.js? [sm]:24 live-pusher code: 3005

index.js? [sm]:24 live-pusher code: -1307

3 回复

可以给下推流地址我们试试吗

请问你是怎么解决的?

补充: 有时候不报 -1326 也是三次重连 然后 报 -1307。

回到顶部