diff options
author | pb1dft <pb1dft@ampache> | 2006-11-13 17:48:51 +0000 |
---|---|---|
committer | pb1dft <pb1dft@ampache> | 2006-11-13 17:48:51 +0000 |
commit | 095bc809d6ad3149fb5fe8e5bce32e2865e62f3d (patch) | |
tree | 5e6696767173d5742a9e445779ba81ed56d9446d /templates/show_xspf_player.inc.php | |
parent | 868f2b2a2029ea3453e6ef219c96e8bfeb6097e7 (diff) | |
download | ampache-095bc809d6ad3149fb5fe8e5bce32e2865e62f3d.tar.gz ampache-095bc809d6ad3149fb5fe8e5bce32e2865e62f3d.tar.bz2 ampache-095bc809d6ad3149fb5fe8e5bce32e2865e62f3d.zip |
Added new flash player and fixed a lot of other problems. Implemented Export to ItunesDB
Diffstat (limited to 'templates/show_xspf_player.inc.php')
-rw-r--r-- | templates/show_xspf_player.inc.php | 49 |
1 files changed, 41 insertions, 8 deletions
diff --git a/templates/show_xspf_player.inc.php b/templates/show_xspf_player.inc.php index 0602c4dd..179b9c61 100644 --- a/templates/show_xspf_player.inc.php +++ b/templates/show_xspf_player.inc.php @@ -21,13 +21,46 @@ ?> <html> <head><title>Ampache XSPF Player</title></head> -<body style="margin:0px; padding:0px; border:0px;"> -<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="400" height="168"> -<param name="allowScriptAccess" value="sameDomain"/> -<param name="movie" value="<?php echo conf('web_path'); ?>/modules/flash/xspf_player.swf?playlist_url=<?php echo conf('web_path'); ?>/song.php<?php echo $play_info; ?>&autoplay=true&autoload=true"/> -<param name="quality" value="high"/> -<param name="bgcolor" value="#E6E6E6"/> -<embed src="<?php echo conf('web_path'); ?>/modules/flash/xspf_player.swf?playlist_url=<?php echo conf('web_path'); ?>/modules/flash/xspf_player.php<?php echo $play_info; ?>&autoplay=true&autoload=true" quality="high" bgcolor="#E6E6E6" name="xspf_player" allowscriptaccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" align="center" height="168" width="400"></embed> -</object> +<body style="margin:0px; padding:0px; border:0px; background-color: #000000"> +<div id="mp3player"> +<script type="text/javascript" src="<?php echo conf('web_path'); ?>/modules/flash/swfobject.js"></script> +<script language=JavaScript> +<!-- +//Disable right mouse click Script to hide the source url for the flash player it prevents ripping music a bit. +//When used together with locked songs this will help just a bit more. +function clickIE4(){ +if (event.button==2){ +return false; +} +} + +function clickNS4(e){ +if (document.layers||document.getElementById&&!document.all){ +if (e.which==2||e.which==3){ +return false; +} +} +} + +if (document.layers){ +document.captureEvents(Event.MOUSEDOWN); +document.onmousedown=clickNS4; +} +else if (document.all&&!document.getElementById){ +document.onmousedown=clickIE4; +} + +document.oncontextmenu=new Function("return false") + +// --> +</script> +<script type="text/javascript"> +<!-- +var flashObj = new SWFObject ("<?php echo conf('web_path'); ?>/modules/flash/xspf_player.swf?action=play&playlist=<?php echo conf('web_path'); ?>/modules/flash/xspf_player.php<?php echo $play_info; ?>&folder=<?php echo conf('web_path'); ?>/modules/flash/&textcolor=033066&color=E6E6E6&loop=playlist&lma=yes&viewinfo=true&vol=30&display=1@. - @2@ - @", "FMP3", "350", "300", 7, "#000000", true); +flashObj.write ("mp3player"); +// --> +</script> +</div> + </body> </html> |