收藏
回答

live-pusher 推流总是失败?

您好:

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


回答关注问题邀请回答
收藏

6 个回答

  • 小程序技术专员-binnie
    小程序技术专员-binnie
    2020-03-10

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


    2020-03-10
    有用 1
    回复 11
    • quqingyu
      quqingyu
      2020-03-10
      调好了 谢谢您
      2020-03-10
      回复
    • L-Man
      L-Man
      2020-06-08
      哥哥 也帮我看看好不,我这里也是一样的经常断,被骂死了
      2020-06-08
      回复
    • 禾+米
      禾+米
      2020-06-29回复quqingyu
      你好,请问怎么解决的呢? 也遇到了相同的问题
      2020-06-29
      回复
    • 吾往矣
      吾往矣
      2020-06-30
      同问
      2020-06-30
      回复
    • 禾+米
      禾+米
      2020-06-30回复吾往矣
      找到问题了,后端生成的推流地址不对,使用正确的推流地址,就没有问题了
      2020-06-30
      回复
    查看更多(6)
  • 展昭
    展昭
    2020-11-10

    你好 请问你这个解决了吗? 是什么原因?

    2020-11-10
    有用
    回复
  • 栉风
    栉风
    2020-09-23

    code在哪查啊 2029和2027 啥意思啊

    2020-09-23
    有用
    回复 1
    • 萱儿👑👗
      萱儿👑👗
      2020-12-17
      你解决了吗?我现在也遇到了2027
      2020-12-17
      回复
  • cimencao
    cimencao
    2020-08-30

    Q channel send fail ertCode[-105]

    帮忙看看这是啥问题 我也是同楼主一样自主拼接生成的地址,在微信官方小程序测试报这个错误

    2020-08-30
    有用
    回复
  • 小明同学
    小明同学
    2020-03-13

    请问你是怎么解决的?

    2020-03-13
    有用
    回复
  • quqingyu
    quqingyu
    2020-03-10

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

    2020-03-10
    有用
    回复 2
    • 吾往矣
      吾往矣
      2020-06-30
      我这边主要是IOS会报RTMP无法连接,也是重试3次后报3002
      2020-06-30
      回复
    • 光富
      光富
      2020-07-07
      怎么解决的?
      2020-07-07
      回复
登录 后发表内容
问题标签