【问题标题】:jwplayer width HLS - No playable sources found. What's my mistake?jwplayer 宽度 HLS - 找不到可播放的源。我的错误是什么?
【发布时间】:2016-11-08 03:19:33
【问题描述】:

JW Player 无法播放 HLS。这是我的页面 HTML 代码:

 <!DOCTYPE> 
 <html>
    <head>
        <script src='https://content.jwplatform.com/libraries/7XBRYUMN.js'></script>
        <script>jwplayer.key="***";</script>
    </head>
    <body>
        <div id="my-video"></div>
        <script type="text/javascript">
            jwplayer("my-video").setup({
                file: "http://esioslive6-i.akamaihd.net/hls/live/202892/AL_P_ESP1_FR_FRA/playlist.m3u8",
                width: 400,
                height: 240,
                title: "video",
                hlshtml: true,
                type: "hls",
                androidhls: true
            });
        </script>
    </body>
</html>

播放器总是显示:加载播放器时出错:找不到可播放的源。 HLS在线查看http://demo.jwplayer.com/stream-tester/ HLS 正确再现。 我的错误是什么?

【问题讨论】:

  • 您使用的是免费版许可证密钥。带有 JW Player 的 HLS 至少需要一个高级版 - 每年花费 299 美元:jwplayer.com/pricing
  • 或者你可以使用clappr 或video.js

标签: video-streaming html5-video jwplayer live-streaming http-live-streaming


【解决方案1】:

我认为您在 jwplayer 上的帐户没有 HLS Adaptive Streaming 权限或 jwplayer.key 与 jwplayer js 文件不匹配。我已经检查了演示站点的帐户,并且可以正常播放

 <!DOCTYPE> 
 <html>
    <head>
        <script src="//content.jwplatform.com/libraries/V6NfEzT7.js"></script>
        <script>jwplayer.key="AIzaSyCCd7R6tUAGAwFNlq0hV_C7GWNEZNhzxa4";</script>
    </head>
    <body>
        <div id="my-video"></div>
        <script type="text/javascript">
            jwplayer("my-video").setup({
                file: "http://esioslive6-i.akamaihd.net/hls/live/202892/AL_P_ESP1_FR_FRA/playlist.m3u8",
                width: 400,
                height: 240,
                title: "video",
                hlshtml: true,
                type: "hls",
                androidhls: true
            });
        </script>
    </body>
</html>

【讨论】:

    猜你喜欢
    • 2016-09-06
    • 2015-03-02
    • 2015-09-21
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多