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 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.write(‘mediaspace’);
</script>
3. Add the below line next to s1.addParam (‘wmode’, ‘transparent’);
s1.addVariable(‘file’, ‘Your video file path goes here’);
s1.addVariable(‘id’, ‘Your video id goes here’);
s1.addVariable(‘title’, ‘Your video title goes here’);
s1.addVariable(‘vast’, ‘true’);
s1.addVariable(‘vast_partnerid’, ‘Your scanscout partner id goes here’);
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 video file path goes here’);
s1.addVariable(‘id’, ‘Your video id goes here’);
s1.addVariable(‘title’, ‘Your video title goes here’);
s1.addVariable(‘vast’, ‘true’);
s1.addVariable(‘vast_partnerid’, ‘Your scanscout partner id goes here’);
s1.write(‘mediaspace’);
</script>
5. 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 which plays lighttpd server files from flashvars