This is the code I use for JWPlayer6. I'm using JWPlayer6 Pro but the free version will work identically.
<script src="/jwplayer/jwplayer.js"></script>
<div id='my-video'></div>
<script type='text/javascript'>
jwplayer('my-video').setup({
file: 'path/to/your/video/folder/{param}',
width: '480',
height: '270'
});
</script>
{param} is the filename of the video/audio file to be passed to the code.
All you need do is to make sure the video is uploaded into the folder you specify in the code, type the filename in a forum post, highlight it and click the icon.
Works very well indeed. If you reduce the height to 30 the player will switch into audio mode and display the audio control bar so you can also add an [AUDIO] tag if you wish.
Hope this helps
Jeff.
|