DeSales JW播放器产品嵌入代码
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了DeSales JW播放器产品嵌入代码相关的知识,希望对你有一定的参考价值。
//Embed the player //This is only called if the flash detection script is true function embed() { //File type 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>
以上是关于DeSales JW播放器产品嵌入代码的主要内容,如果未能解决你的问题,请参考以下文章