1. Open index.html in your favorite editor.
2. You will be able to find the following code snippet.
<div name=’mediaspace’ id=’mediaspace’>
<script>
var s1 = new SWFObject(‘HD FLV Player /hdplayer.swf’, ‘player’, ’640′, ’360′, ’9′);
s1.addParam(‘allowfullscreen’, ‘true’);
s1.addParam(‘allowscriptaccess’, ‘always’);
s1.addParam(‘wmode’, ‘transparent’);
s1.write(‘mediaspace’);
</script>
3. Add the below line next to s1.addParam(‘wmode’, ‘transparent’);
s1.addVariable(‘file’, ‘Your stream name goes here’);
s1.addVariable(‘streamer’, ‘lighttpd’);
4. Your final code will look as the following
<div name=’mediaspace’ id=’mediaspace’>
<script type=”text/javascript”>
var s1 = new SWFObject(‘HD FLV Player /hdplayer.swf’, ‘player’, ’640′, ’360′, ’9′);
s1.addParam(‘allowfullscreen’, ‘true’);
s1.addParam(‘allowscriptaccess’, ‘always’);
s1.addParam(‘wmode’, ‘transparent’);
s1.addVariable(‘file’, ‘Your stream name goes here’);
s1.addVariable(‘streamer’, ‘lighttpd’);
s1.write(‘mediaspace’);
</script>
v). Run index.html in your favorite browser.
Related Posts via Categories
- Supported file formats
- Error loading required skin
- Example of code which plays youtube videos from playlist.xml
- Example of code playing scanscout ads through xml
- Example of code which plays lighttpd server files from xml
- Example of code which plays rtmp server files from xml
- Example of code which plays Pre-roll, Post-roll, Mid-roll from xml
- Example of code which plays videos from playlist.xml
- Example of code which plays YouTube videos from flashvars
- Example of code playing scanscout ads through flashvars