The JW player from version 5.3 on has offered a new way to embed it's player and allows it to use JS instead of an object to embed it. With this they allow a fail over method that allows for html5 compatible browsers and IOS to play videos natively in place of the flash player.
Embedding this is a 2 part issue for me.
1 I would like to get the embed to work
2. I would like it to be 99% size of the open window, and when I change the browser size, the size of the video changes as well
so on too 1.
Here is how the new code works:
Code: Select all
<script type='text/javascript' src='/jwplayer/jwplayer.js'></script>
<div id='mediaplayer'></div>
<script type="text/javascript">
jwplayer('mediaplayer').setup({
'id': 'playerID',
'width': '480',
'height': '270',
'file': '/videos/bunny.mp4',
'image': '/thumbs/bunny.jpg',
'modes': [
{type: 'html5'},
{type: 'flash', src: 'player.swf'},
{type: 'download'}
]
});
</script>
( I am sure this will help many if we can find a solution, as no other lightbox type system out there has made this work yet )
Regards
-D