【问题标题】:JW HLS streaming with hd button带有高清按钮的 JW HLS 流式传输
【发布时间】:2014-03-19 10:22:16
【问题描述】:

伙计们,

我在我的网站上使用 JW 高级版,我想在所有设备、笔记本电脑和台式机上使用 JW 播放器流式传输我的 VOD 内容,高清按钮显示多种风格。

我用这段代码来显示播放器,

    <script type='text/javascript'>
        jwplayer('myElement').setup({
        playlist: [{
                image:"poster.jpg",

                sources: [{
              file: "http://54.84.148.121/mediacache/_definst_/mp4:kalturanew/content/entry/data/0/0/0_piphfrui_0_fkzp15ye_1.mp4/playlist.m3u8",
              label: "720p SD"
            },{file: "http://54.84.148.121/mediacache/_definst_/mp4:kalturanew/content/entry/data/0/0/0_piphfrui_0_5gg8sfep_1.mp4/playlist.m3u8",
              label: "560p SD"
            }]

           }],            
            height: "100%",
            width: "100%",
            abouttext: "Konnect+"
          });
    </script>

但我没有在播放器控制栏中获得高清按钮。

但是我使用了 http://www.longtailvideo.com/support/jw-player/29393/hls-adaptive-stream/ 中所述的 myManifest.m3u8 文件

    <div id="myElement">Loading the player...</div>
    <script type='text/javascript'>
        jwplayer('myElement').setup({
        playlist: [{
                image:"Biryani-Release-poster.jpg",
                file: "myManifest.m3u8"
           }],            
            height: "55%",
            width: "50%",
            abouttext: "Konnect+"
          });
    </script>

我的清单.m3u8:

    #EXTM3U
    #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=160000,RESOLUTION=480x256 1280/http://54.84.148.121/mediacache/_definst_/mp4:kalturanew/content/entry/data/0/0/0_piphfrui_0_fkzp15ye_1.mp4/playlist.m3u8
    #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=83200,RESOLUTION=480x256 640/http://54.84.148.121/mediacache/_definst_/mp4:kalturanew/content/entry/data/0/0/0_piphfrui_0_5gg8sfep_1.mp4/playlist.m3u8

这表示它无效的 m3ub:没有可玩的关卡.. 这是链接http://uniqueegroup.com/hlsTest.html

谁能给我一个正确的建议?

谢谢

【问题讨论】:

标签: jwplayer m3u8


【解决方案1】:

好的.m3u8之后你必须使用以下

?dimension=720p 而不是 1280/http,因为它不会检测到您 m3u8 中的 http url。我已经检查了您的演示,当您进行此更正时它会起作用。

【讨论】:

    猜你喜欢
    • 2012-02-28
    • 2017-05-26
    • 2019-03-25
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-07-02
    • 2020-10-19
    • 2013-06-29
    相关资源
    最近更新 更多