/ Published in: JavaScript
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
<script type="text/javascript">
//Embed the player
//This is only called if the flash detection script is true
function embed() {
//File type
var fileType = "<?php echo($fileType); ?>";
var defaultSkin = "skins/five/five.zip";
//Embed the player
var so = new SWFObject('includes/licensed/player-licensed.swf', 'player', '640', '480', '9');
so.addParam('allowfullscreen','true');
so.addParam('allowscriptaccess','always');
so.addParam('wmode','opaque');
if (fileType == "xml"){
so.addVariable('playlistfile', '<?php echo($sFile); ?>&skin=' + defaultSkin);
} else {
so.addVariable('file','<?php echo($sFile); ?>&skin=' + defaultSkin);
so.addVariable('title', 'DeSales University Media Player');
so.addVariable('description', 'File: <?php echo($sFile); ?>');
}
so.addVariable('bufferlength', '4');
so.addVariable('logo.file', 'http://deit.desales.edu/MediaPlayer/images/media_logo_watermark.png');
so.addVariable('streamer','rtmp://mediasrv01.desales.edu/vod');
so.addVariable('plugins', 'gapro-1');
so.addVariable('gapro.accountid', 'UA-15284864-3');
so.addVariable('gapro.trackstarts', 'true');
so.addVariable('gapro.trackpercentages', 'true');
so.addVariable('gapro.tracktime', 'true');
so.write('main_player');
};
</script>
URL: http://deit.desales.edu/MediaPlayer
Comments
 Subscribe to comments
                    Subscribe to comments
                
                