嗨,我有一个问题,我的JW播放器没有显示在我的浏览器中,我尝试了其他浏览器,它仍然没有显示,有一个<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')