Haza Haza - 1 month ago 12
CSS Question

Jw Player not showing up at all

Hi i am having a problem my JW Player is not showing up in my browser i tried other browsers and it still does not show up, there is a

<div>
that wraps it so i set a width and height to that div and it still does not show up, i also tried moving the video player and it still did not show up.

Here is my code:

<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;
}

Answer

Delete # before setup element

jwplayer('#se_video') -> jwplayer('se_video')