Jwplayer配置设置失败,rtmp连接

时间:2016-12-21 11:49:31

标签: javascript jwplayer

我有以下回复并使用这些字段我正在设置jwplayer。但它没有显示视频流并且丢失误差。

  

加载流错误,无法加载服务器。

下面是iframe正确地挖掘网址。但我希望在jwplayer中打开这个网址。

<iframe class="embed-responsive-item"
 src="https://stream.robertsstream.com/streamflash.php?stream=gulfstream_mbr&amp;referer=XpressBet&amp;t=1482322598&amp;h=f49a4561c2f23e3bed6b61960a6bd3cd&amp;usr=1486564&amp;optp=siteid%3Aqaxb%7Coriginid%3ADRF&amp;width=100%&amp;height=100%"></iframe>

在加载iframe后,我在控制台中获得低于响应。使用此控制台响应我试图获取rtmp连接路径并尝试使用jwplayer打开它。

 ConnectionManager::connect -> server array:
  rtmp://robertscc.fc.llnwd.net:1935/robertscc
  rtmp://robertscc.fc.llnwd.net:443/robertscc
  rtmp://robertscc.fc.llnwd.net:80/robertscc
  rtmpt://robertscc.fc.llnwd.net:1935/robertscc
  rtmpt://robertscc.fc.llnwd.net:80/robertscc
  rtmpt://robertscc.fc.llnwd.net:443/robertscc
 _authoInfo:
 response:
   result: success
   resultinfo: Success
   connectionpath: rtmp://robertscc.fc.llnwd.net/robertscc
   subscribe: true
   numstreams: 2
   streams: 
       s_gulfstream_fm_771 |   cust=XpressBet&type=live&user=1486564&ip=114.143.191.202&e=1482392553&optp=sitei d:qaxb|originid:DRF&h=756e42184c5cd0a1551e83286d370acb | 771
       s_gulfstream_fm_400 | cust=XpressBet&type=live&user=1486564&ip=114.143.191.202&e=1482392553&optp=siteid:qaxb|originid:DRF&h=d4b0855a025d4217b9d8db2aacaf1c2c | 400
  platform: SD

使用此响应参数我正在设置jwplayer

 jwplayer("bigVideo").setup({
      'flashplayer': "/jwplayer/jwplayer.flash.swf",
      'autostart': 'false',
      'width': "100%",
      'height': "325",
      'provider': 'rtmp',
      'streamer': ['s_gulfstream_fm_771 | cust=XpressBet&type=live&user=1486564&ip=114.143.191.202&e=1482384563&optp=siteid:qaxb|originid:DRF&h=9ae0b89056478edcdb3218540662da2d | 771',
's_gulfstream_fm_400 | cust=XpressBet&type=live&user=1486564&ip=114.143.191.202&e=1482384563&optp=siteid:qaxb|originid:DRF&h=46addb82ea9af100df25423827282fea | 400'],
      'file': 'rtmp://robertscc.fc.llnwd.net/robertscc',
      'rtmp': {
        subscribe: true
      }
    });

如何在jwplayer中打开此直播流? 我是以错误的方式给出流光阵列吗?

0 个答案:

没有答案