【发布时间】:2015-04-09 12:40:56
【问题描述】:
如果直播不可用,我想使用我的 JWPLAYER 6 pro 播放直播并切换到 vod 下载备用。
这是我的简单代码:
<div id='playervideo' style="max-height:800px !important; max-width:1365 !important; min-height:392 !important; min-width:640 !important">
<script type='text/javascript'>
jwplayer('playervideo').setup({
playlist: [{
image: "http://domain.com/directabouttostar.jpg",
sources: [{
file: "http://oxygenstream.fr/live2.f4m"
},{
file: "http://oxygenstream.fr/live2.m3u8"
},{
file: "http://oxygenstream.fr/vod.mp4"
}]
}],
primary: "flash",
androidhls: true,
autostart: true,
fallback: true,
width: '100%',
aspectratio: "16:9",
abouttext: ':::: OXYGENSTREAM.FR ::::',
aboutlink: 'http://oxygenstream.fr'
});
</script></div>
【问题讨论】:
标签: jwplayer http-live-streaming fallback m3u8 video-on-demand