DeSales JW Player Production Embed Code


/ Published in: JavaScript
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <script type="text/javascript">
  2.  
  3. //Embed the player
  4. //This is only called if the flash detection script is true
  5. function embed() {
  6.  
  7. //File type
  8. var fileType = "<?php echo($fileType); ?>";
  9. var defaultSkin = "skins/five/five.zip";
  10.  
  11. //Embed the player
  12. var so = new SWFObject('includes/licensed/player-licensed.swf', 'player', '640', '480', '9');
  13. so.addParam('allowfullscreen','true');
  14. so.addParam('allowscriptaccess','always');
  15. so.addParam('wmode','opaque');
  16. if (fileType == "xml"){
  17. so.addVariable('playlistfile', '<?php echo($sFile); ?>&skin=' + defaultSkin);
  18. } else {
  19. so.addVariable('file','<?php echo($sFile); ?>&skin=' + defaultSkin);
  20. so.addVariable('title', 'DeSales University Media Player');
  21. so.addVariable('description', 'File: <?php echo($sFile); ?>');
  22. }
  23. so.addVariable('bufferlength', '4');
  24. so.addVariable('logo.file', 'http://deit.desales.edu/MediaPlayer/images/media_logo_watermark.png');
  25. so.addVariable('streamer','rtmp://mediasrv01.desales.edu/vod');
  26. so.addVariable('plugins', 'gapro-1');
  27. so.addVariable('gapro.accountid', 'UA-15284864-3');
  28. so.addVariable('gapro.trackstarts', 'true');
  29. so.addVariable('gapro.trackpercentages', 'true');
  30. so.addVariable('gapro.tracktime', 'true');
  31. so.write('main_player');
  32. };
  33.  
  34. </script>

URL: http://deit.desales.edu/MediaPlayer

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.