【发布时间】: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
谁能给我一个正确的建议?
谢谢
【问题讨论】:
-
uniqueegroup.com/hlsTest.html 只是使用一个级别。您绝对需要使用 HLS 清单。您在上面链接到的演示页面有这个示例,您可以将其用作模板 - playertest.longtailvideo.com/adaptive/bbbfull/bbbfull.m3u8
-
我已经在上面的 URL 中更改了清单,即使现在它也无法获得高清按钮。你现在可以检查一下吗? uniqueegroup.com/hlsTest.html
-
我现在收到 Flash 调试播放器错误 - 错误:在播放列表中找不到 TS 片段:54.84.148.121/mediacache/_definst_/mp4:kalturanew/content/entry/…
-
你能帮我解决什么问题吗?
-
这个文件在你自己尝试时是否有效? 54.84.148.121/mediacache/_definst_/mp4:kalturanew/content/entry/…