Jw Player 根本没有出现
Jw Player not showing up at all
嗨,我有一个问题,我的 JW Player 没有出现在我的浏览器中,我尝试了其他浏览器,但它仍然没有出现,有一个 <div>
包裹它,所以我设置了宽度和高度到 div 但它仍然没有出现,我也尝试移动视频播放器但它仍然没有出现。
这是我的代码:
<div class="videoplayerwrap">
<div id="se_video"></div>
<script type="text/javascript" src="//embed.scaleengine.net/user/barakyah-channel/7.x/jwplayer.js"></script>
<script>jwplayer.key="Z20sg3$ggS5FsdfDFGdR3tuktyDk5ne4vuRLfk50g=32="</script>
<script type="text/javascript">
jwplayer('#se_video').setup({
autostart: 'false',
sources: [
{ file: 'rtmp://barakyah-channel.videocdn.scaleengine.net/barakyah-channel/live/mp4:kollosal'},
{ file: 'http://barakyah-channel.videocdn.scaleengine.net/barakyah-channel/live/kollosal/playlist.m3u8'}
],
rtmp: {
'bufferlength': '5'
},
width: "100%",
aspectratio: "16:9",
androidhls: "true",
primary: "flash"
});
</script>
</div>
css
.videoplayerwrap {
float: left;
width: 808px;
}
删除设置元素前的#
jwplayer('#se_video') -> jwplayer('se_video')
嗨,我有一个问题,我的 JW Player 没有出现在我的浏览器中,我尝试了其他浏览器,但它仍然没有出现,有一个 <div>
包裹它,所以我设置了宽度和高度到 div 但它仍然没有出现,我也尝试移动视频播放器但它仍然没有出现。
这是我的代码:
<div class="videoplayerwrap">
<div id="se_video"></div>
<script type="text/javascript" src="//embed.scaleengine.net/user/barakyah-channel/7.x/jwplayer.js"></script>
<script>jwplayer.key="Z20sg3$ggS5FsdfDFGdR3tuktyDk5ne4vuRLfk50g=32="</script>
<script type="text/javascript">
jwplayer('#se_video').setup({
autostart: 'false',
sources: [
{ file: 'rtmp://barakyah-channel.videocdn.scaleengine.net/barakyah-channel/live/mp4:kollosal'},
{ file: 'http://barakyah-channel.videocdn.scaleengine.net/barakyah-channel/live/kollosal/playlist.m3u8'}
],
rtmp: {
'bufferlength': '5'
},
width: "100%",
aspectratio: "16:9",
androidhls: "true",
primary: "flash"
});
</script>
</div>
css
.videoplayerwrap {
float: left;
width: 808px;
}
删除设置元素前的#
jwplayer('#se_video') -> jwplayer('se_video')