summaryrefslogtreecommitdiffstats
path: root/templates/show_xspf_player.inc.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-07-05 06:05:18 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2007-07-05 06:05:18 +0000
commitedf482ff3d21c84d99f25b84884563a8781fa7ae (patch)
tree5518f19975dde4b63e87ad7a1d00ec9015911d7c /templates/show_xspf_player.inc.php
parentd24fe88905baf183892ed9fd757e698e56309904 (diff)
downloadampache-edf482ff3d21c84d99f25b84884563a8781fa7ae.tar.gz
ampache-edf482ff3d21c84d99f25b84884563a8781fa7ae.tar.bz2
ampache-edf482ff3d21c84d99f25b84884563a8781fa7ae.zip
moved back to a GPL flash player for 3.4 codebase, fixed some stream issues (non-m3u playlist types were failing) and tweaked the look of the /test.php page and fixed the xspf playlist generation
Diffstat (limited to 'templates/show_xspf_player.inc.php')
-rw-r--r--templates/show_xspf_player.inc.php18
1 files changed, 10 insertions, 8 deletions
diff --git a/templates/show_xspf_player.inc.php b/templates/show_xspf_player.inc.php
index 179b9c61..67cf3104 100644
--- a/templates/show_xspf_player.inc.php
+++ b/templates/show_xspf_player.inc.php
@@ -1,7 +1,7 @@
<?php
/*
- Copyright (c) 2001 - 2006 Ampache.org
+ Copyright (c) 2001 - 2007 Ampache.org
All rights reserved.
This program is free software; you can redistribute it and/or
@@ -22,8 +22,6 @@
<html>
<head><title>Ampache XSPF Player</title></head>
<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.
@@ -55,11 +53,15 @@ 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 id="mp3player">
+<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="170" id="xspf_player" align="middle">
+ <param name="allowScriptAccess" value="sameDomain" />
+ <param name="movie" value="xspf_player.swf" />
+ <param name="quality" value="high" />
+ <param name="bgcolor" value="#ffffff" />
+ <embed src="<?php echo Config::get('web_path'); ?>/modules/flash/xspf_player.swf?autoplay=true&playlist_url=<?php echo Config::get('web_path'); ?>/modules/flash/xspf_player.php<?php echo $play_info; ?>" quality="high" bgcolor="#ffffff" width="400" height="170" name="xspf_player" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
+</object>
</div>
</body>