当把mp3播放器文件/e/DownSys/play/mplayer.php中的地址写成真实地址<?=trueurl?>时则可以播放,但谁都可以看得见文件地址 : <object id="mPlayer1" width=430 height=64 classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6"> <param name="URL" value="http://sound.cco8.com/d1/file/zzsj/sanjingjie.mp3"> <param name="rate" value="1"> <param name="balance" value="0"> .....
若改成加密形式<?=url?>,查看代码是加密了:
<object id="mPlayer1" width=430 height=64 classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6"> <param name="URL" value="../../enews/?enews=GetSofturl&classid=134&id=7838&pathid=0&pass=e9ba970cb67b281afa545f3a03706040&p=:::&onlinetime=1294878510&onlinepass=b11526f664831f1e95d0885313e27add"> <param name="rate" value="1"> <param name="balance" value="0"> .....
但却播放不出来,仅显示准备就绪。何故啊?下载的是加密了。
急!
我的mp3 播放器文件代码为: <?php if(!defined('InEmpireCMS')) { exit(); } ?> <script language="javascript" src="js/var.js"></script> <script language="javascript" src="js/player.js"></script> <script language="javascript" src="js/timer.js"></script> <script language="javascript" src="js/wmplayer.js"></script> <script language="javascript">Init();</script> <HTML> <HEAD>
<TITLE><?=$r[title]?>-媒体播放器></TITLE> <meta http-equiv="Content-Type" content="text/html; charset=gb2312" /> <META HTTP-EQUIV="Expires" CONTENT="0"> <link rel="stylesheet" href="js/player.css"> <script language="javascript"> window.resizeTo( 443 , 543 ); window.moveTo( 100 , 100 ); window.focus() </script> <SCRIPT language=javascript> function click() { if (event.button==2) { alert('对不起,您想做什么?') } } document.onmousedown=click </SCRIPT>
<style type="text/css"> <!-- .main { height: auto; width: 444px; float: left; } .#thisbody .md { height: 64px; width: 428px; float: left; } #thisbody { height: 330px; width: 660px; margin: 0px; padding: 0px; } --> </style>
</HEAD> <BODY id=thisbody bgcolor="#000000" topMargin=0 leftMargin=0 rightMargin=0 bottomMargin=0 style="scroll:no; overflow: hidden;" ondragstart="self.event.returnValue=false" onselectstart="self.event.returnValue=false" onmousedown="WindowMove_Start()" onmouseup="WindowMove_End()" onmousemove="WindowMove()"> <div class="main"> <div class="md">
<object id="mPlayer1" width=430 height=64 classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6"> <param name="URL" value="<?=$trueurl?>"> <param name="rate" value="1"> <param name="balance" value="0"> <param name="currentPosition" value="0"> <param name="defaultFrame" value=""> <param name="playCount" value="100"> <param name="autoStart" value="-1"> <param name="currentMarker" value="0"> <param name="invokeURLs" value="-1"> <param name="baseURL" value=""> <param name="volume" value="100"> <param name="mute" value="0"> <param name="uiMode" value="full"> <param name="stretchToFit" value="0"> <param name="windowlessVideo" value="0"> <param name="enabled" value="-1"> <param name="enableContextMenu" value="0"> <param name="fullScreen" value="0"> <param name="SAMIStyle" value=""> <param name="SAMILang" value=""> <param name="SAMIFilename" value=""> <param name="captioningID" value=""> <param name="BufferingTime" value="5"> <embed src="<?=$trueurl?>" type="audio/x-pn-realaudio-plugin" width="300" height="61" controls="ControlPanel" console="cons" > </embed> </object> </div> </div> </body> </html>
以上为可以播放的不加密形式,若加密则地址写成src="<?=$url?>" 此时是加密了,但播放不了。把
|