收藏
回答

rtmp的直播流在ios上为什么不能播放?

小程序使用的蜻蜓FM提供的一个rtmp格式的音频直播流,经过测试在android手机上没有问题,可以正常播放音频直播,但是在ios设备上不能播放音频。地址:

rtmp://220.249.108.56/live/aa


直播代码段:

<live-player muted="false"  class='audio_live' src="rtmp://220.249.108.56/live/aa"  id="player" mode="live" autoplay='true' bindstatechange="statechange" binderror="error" />


最后一次编辑于  11-20
回答关注问题邀请回答
收藏

1 个回答

  • 社区技术运营专员-灵芝
    社区技术运营专员-灵芝
    11-21

    具体报错信息是什么呢?打开 debug 属性看看,或看 statechange 的状态码有没有异常

    11-21
    赞同
    回复 1
    • 胡冰
      胡冰
      11-26
      没有异常。我看返回的statechange的状态码跟Android的都是一样的。但是Android的就能正常的播放。




      live-player code: 2007
      audio.js? [sm]:52 live-player code: 2008
      audio.js? [sm]:52 live-player code: 2005
      audio.js? [sm]:52 live-player code: 2005
      audio.js? [sm]:52 live-player code: 2001
      audio.js? [sm]:52 live-player code: 2002
      audio.js? [sm]:68 play success
      18audio.js? [sm]:52 live-player code: 2005
      audio.js? [sm]:52 live-player code: 2002
      audio.js? [sm]:52 live-player code: 2004
      audio.js? [sm]:52 live-player code: 2005
      audio.js? [sm]:52 live-player code: 2007
      39audio.js? [sm]:52 live-player code: 200
      audio.js? [sm]:52 live-player code: 2005

      audio.js? [sm]:52 live-player code: 2007
      39audio.js? [sm]:52 live-player code: 2005
      audio.js? [sm]:52 live-player code: 3005
      8audio.js? [sm]:52 live-player code: 2005
      audio.js? [sm]:52 live-player code: 2103
      2audio.js? [sm]:52 live-player code: 2005
      audio.js? [sm]:52 live-player code: 2001
      audio.js? [sm]:52 live-player code: 2002
      20audio.js? [sm]:52 live-player code: 2005
      audio.js? [sm]:52 live-player code: 2002
      146audio.js? [sm]:52 live-player code: 2005
      audio.js? [sm]:52 live-player code: 3005
      7audio.js? [sm]:52 live-player code: 2005
      audio.js? [sm]:52 live-player code: 2103
      2audio.js? [sm]:52 live-player code: 2005
      audio.js? [sm]:52 live-player code: 2001
      audio.js? [sm]:52 live-player code: 2002
      17audio.js? [sm]:52 live-player code: 2005
      audio.js? [sm]:52 live-player code: 2002
      30audio.js? [sm]:52 live-player code: 2005
      11-26
      回复
问题标签