summaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorpb1dft <pb1dft@ampache>2006-11-13 17:48:51 +0000
committerpb1dft <pb1dft@ampache>2006-11-13 17:48:51 +0000
commit095bc809d6ad3149fb5fe8e5bce32e2865e62f3d (patch)
tree5e6696767173d5742a9e445779ba81ed56d9446d /modules
parent868f2b2a2029ea3453e6ef219c96e8bfeb6097e7 (diff)
downloadampache-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 'modules')
-rw-r--r--modules/flash/FMP3.swfbin0 -> 8103 bytes
-rw-r--r--modules/flash/license.txt52
-rw-r--r--modules/flash/readme.txt49
-rw-r--r--modules/flash/swfobject.js138
-rw-r--r--modules/flash/xspf_player.swfbin57616 -> 7469 bytes
5 files changed, 232 insertions, 7 deletions
diff --git a/modules/flash/FMP3.swf b/modules/flash/FMP3.swf
new file mode 100644
index 00000000..c7ba021c
--- /dev/null
+++ b/modules/flash/FMP3.swf
Binary files differ
diff --git a/modules/flash/license.txt b/modules/flash/license.txt
index 12d609e1..47c76ace 100644
--- a/modules/flash/license.txt
+++ b/modules/flash/license.txt
@@ -1,10 +1,48 @@
-Copyright (c) 2005, Fabricio Zuardi
-All rights reserved.
+XSPF Player + FMP3 by Enrico Lai http://www.enricolai.com
-Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
- * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
- * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
- * Neither the name of the author nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
+XSPF & FMP3 SWF files are released under Creative Commons License:
+http://creativecommons.org/licenses/by-nc-nd/2.5/
+
+EnricoLai.com is NOT responsible of the content diffused with XSPF - FMP3 Player.
+Please check twice that you have legal rights to diffuse what you're willing to.
+
+EnricoLai.com given the permission to integrate and distribute XSPF player into http://www.ampache.org Project.
+
+So you can redistribute XSPF player only with the entire project. For other purpose please contact the author.
+
+
+ ¤ You may not:
+======================
+
+ * re-copy, decompil/disassemble, rename, change, redistribute all XSPF Player files without a direct EnricoLai.com authorization.
+ * Re-sale XSPF Player
+ * Use XSPF Player to diffuse illegal MP3 Files
+ * Use XSPF - FMP3 Player without respect the conditions specified here
+
+
+ ¤ You may:
+======================
+
+ * Install XSPF Player everywhere you need to.
+
+
+
+ ¤ PayPal donations:
+======================
+
+http://www.ampache.org/team.php
+
+http://www.enricolai.com/fmp3/xspf-flash-mp3-player.asp
+
+
+
+
+ ¤ Disclaimer
+======================
+
+For more information about Disclaimer, License and Conditions
+
+http://www.enricolai.com/FMP3/
+http://www.enricolai.com/fmp3/xspf-flash-mp3-player.asp
-THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
diff --git a/modules/flash/readme.txt b/modules/flash/readme.txt
new file mode 100644
index 00000000..50be68b3
--- /dev/null
+++ b/modules/flash/readme.txt
@@ -0,0 +1,49 @@
+XSPF Player - Extended Version
+
+This version is completely similar, like functionality, to the previous version
+but it adds the possibility to visualize the photo of album (a JPG 80x80 pixel)
+beyond that the eventual one link to the page of information.
+
+XSPF Player does not have need of no language scripting server side.
+
+XSPF Player is not open source (the .fla is not disclosed), can be unloaded and used free of charge in the Creative respect of the license Commons
+and in the respect of the Conditions of I use indicated to the end of this page. See license.txt for more information.
+
+Parameters to pass to the SWF
+
+variable value
+folder Absolute distance that it indicates where finds the rows FMP3.swf
+ (http://www.enricolai.com/FMP3/) as an example.
+ The rows that come tried must be called .fmp3.swf. therefore not rinominate the rows.
+playlist Absolute URL of the playlist in format XSPF to read.
+ As an example http://www.enricolai.com/FMP3/kahvi.xml
+ (rows XML must reside in the same domain in which the application is found).
+ In contrary case you must use one script server side that functions from Gateway.
+ The URL can also make reference to a dynamic script that gives back playlist the XSPF to the flight.
+color Hexdecimal color (as an example FFCC00) in order to change the color of the background of the player.
+loop possible values: yes | not | playlist
+ If it comes set up yes the rows mp3 comes reproduced from the every beginning which time arrives to the term.
+ If it comes no instead set up contrary of yes.
+ If it comes set up on playlist the player it passes to the successive trace once finished a trace
+ and continues therefore on the entire list of rows mp3.
+lma (loop mode active) possible values: yes | no
+ it allows to activate or less the key of the Loop mode that it allows to the customer of set or less the Loop option.
+textcolor Hexdecimal color (as an example FFCC00) in order to change the color of the text and the icon Audio.
+action possible values: play | stop
+ The player sets up so that the trace mp3 leaves endured or not.
+ In modality stop the customer must click to play in order to start the trace.
+vol (volume begins them) is possible to set up a value for the volume from 0 to 100.
+ If the value is not set up the player it reproduces the rows mp3 to maximum volume (100)
+display Example 1@. - @0@ - @. It tightens that it allows to personalize the visualization of the list.
+ Default the player it visualizes the values of the tag annotation present in playlist the XSPF.
+ The first value before the @ indicates if to visualize or less the progressive numeration for every trace (1, 2, 3 etc etc).
+ According to value it indicates tightens to use in order to separate it the numerical value of the trace from the text.
+ The third value is a numerical value that allows to choose the tag of the XML to visualize using as separatory it tightens
+ it specified in the fourth value. The possible values for the third parameter are:
+ 0 - it visualizes the values of the tag title
+ 1 - |separatore 4° valore| + visualizes the values of tag creator + title
+ 2 - |separatore 4° valore| + visualizes the values of tag title + creator
+ 3 - |separatore 4° valore| + visualizes the values of tag album + title
+ 4 - |separatore 4° valore| + visualizes the values of tag title + album
+viewinfo If set on true it visualizes push-button INFO on the photo of the album and allows to activate
+ the link to the page specified in the tag info of rows XSPF.
diff --git a/modules/flash/swfobject.js b/modules/flash/swfobject.js
new file mode 100644
index 00000000..7345ef05
--- /dev/null
+++ b/modules/flash/swfobject.js
@@ -0,0 +1,138 @@
+/**
+ * SWFObject v1.4.4: Flash Player detection and embed - http://blog.deconcept.com/swfobject/
+ *
+ * SWFObject is (c) 2006 Geoff Stearns and is released under the MIT License:
+ * http://www.opensource.org/licenses/mit-license.php
+ *
+ * **SWFObject is the SWF embed script formerly known as FlashObject. The name was changed for
+ * legal reasons.
+ */
+if(typeof deconcept=="undefined"){var deconcept=new Object();}
+if(typeof deconcept.util=="undefined"){deconcept.util=new Object();}
+if(typeof deconcept.SWFObjectUtil=="undefined"){deconcept.SWFObjectUtil=new Object();}
+deconcept.SWFObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a,_b){if(!document.getElementById){return;}
+this.DETECT_KEY=_b?_b:"detectflash";
+this.skipDetect=deconcept.util.getRequestParameter(this.DETECT_KEY);
+this.params=new Object();
+this.variables=new Object();
+this.attributes=new Array();
+if(_1){this.setAttribute("swf",_1);}
+if(id){this.setAttribute("id",id);}
+if(w){this.setAttribute("width",w);}
+if(h){this.setAttribute("height",h);}
+if(_5){this.setAttribute("version",new deconcept.PlayerVersion(_5.toString().split(".")));}
+this.installedVer=deconcept.SWFObjectUtil.getPlayerVersion();
+if(c){this.addParam("bgcolor",c);}
+var q=_8?_8:"high";
+this.addParam("quality",q);
+this.setAttribute("useExpressInstall",_7);
+this.setAttribute("doExpressInstall",false);
+var _d=(_9)?_9:window.location;
+this.setAttribute("xiRedirectUrl",_d);
+this.setAttribute("redirectUrl","");
+if(_a){this.setAttribute("redirectUrl",_a);}};
+deconcept.SWFObject.prototype={setAttribute:function(_e,_f){
+this.attributes[_e]=_f;
+},getAttribute:function(_10){
+return this.attributes[_10];
+},addParam:function(_11,_12){
+this.params[_11]=_12;
+},getParams:function(){
+return this.params;
+},addVariable:function(_13,_14){
+this.variables[_13]=_14;
+},getVariable:function(_15){
+return this.variables[_15];
+},getVariables:function(){
+return this.variables;
+},getVariablePairs:function(){
+var _16=new Array();
+var key;
+var _18=this.getVariables();
+for(key in _18){_16.push(key+"="+_18[key]);}
+return _16;},getSWFHTML:function(){var _19="";
+if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){
+if(this.getAttribute("doExpressInstall")){
+this.addVariable("MMplayerType","PlugIn");}
+_19="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";
+_19+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";
+var _1a=this.getParams();
+for(var key in _1a){_19+=[key]+"=\""+_1a[key]+"\" ";}
+var _1c=this.getVariablePairs().join("&");
+if(_1c.length>0){_19+="flashvars=\""+_1c+"\"";}_19+="/>";
+}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");}
+_19="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";
+_19+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";
+var _1d=this.getParams();
+for(var key in _1d){_19+="<param name=\""+key+"\" value=\""+_1d[key]+"\" />";}
+var _1f=this.getVariablePairs().join("&");
+if(_1f.length>0){_19+="<param name=\"flashvars\" value=\""+_1f+"\" />";}_19+="</object>";}
+return _19;
+},write:function(_20){
+if(this.getAttribute("useExpressInstall")){
+var _21=new deconcept.PlayerVersion([6,0,65]);
+if(this.installedVer.versionIsValid(_21)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){
+this.setAttribute("doExpressInstall",true);
+this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));
+document.title=document.title.slice(0,47)+" - Flash Player Installation";
+this.addVariable("MMdoctitle",document.title);}}
+if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){
+var n=(typeof _20=="string")?document.getElementById(_20):_20;
+n.innerHTML=this.getSWFHTML();return true;
+}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}
+return false;}};
+deconcept.SWFObjectUtil.getPlayerVersion=function(){
+var _23=new deconcept.PlayerVersion([0,0,0]);
+if(navigator.plugins&&navigator.mimeTypes.length){
+var x=navigator.plugins["Shockwave Flash"];
+if(x&&x.description){_23=new deconcept.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}
+}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}
+catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");
+_23=new deconcept.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}
+catch(e){if(_23.major==6){return _23;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}
+catch(e){}}if(axo!=null){_23=new deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}
+return _23;};
+deconcept.PlayerVersion=function(_27){
+this.major=_27[0]!=null?parseInt(_27[0]):0;
+this.minor=_27[1]!=null?parseInt(_27[1]):0;
+this.rev=_27[2]!=null?parseInt(_27[2]):0;
+};
+deconcept.PlayerVersion.prototype.versionIsValid=function(fv){
+if(this.major<fv.major){return false;}
+if(this.major>fv.major){return true;}
+if(this.minor<fv.minor){return false;}
+if(this.minor>fv.minor){return true;}
+if(this.rev<fv.rev){
+return false;
+}return true;};
+deconcept.util={getRequestParameter:function(_29){
+var q=document.location.search||document.location.hash;
+if(q){var _2b=q.substring(1).split("&");
+for(var i=0;i<_2b.length;i++){
+if(_2b[i].substring(0,_2b[i].indexOf("="))==_29){
+return _2b[i].substring((_2b[i].indexOf("=")+1));}}}
+return "";}};
+deconcept.SWFObjectUtil.cleanupSWFs=function(){if(window.opera||!document.all){return;}
+var _2d=document.getElementsByTagName("OBJECT");
+for(var i=0;i<_2d.length;i++){_2d[i].style.display="none";for(var x in _2d[i]){
+if(typeof _2d[i][x]=="function"){_2d[i][x]=function(){};}}}};
+deconcept.SWFObjectUtil.prepUnload=function(){__flash_unloadHandler=function(){};
+__flash_savedUnloadHandler=function(){};
+if(typeof window.onunload=="function"){
+var _30=window.onunload;
+window.onunload=function(){
+deconcept.SWFObjectUtil.cleanupSWFs();_30();};
+}else{window.onunload=deconcept.SWFObjectUtil.cleanupSWFs;}};
+if(typeof window.onbeforeunload=="function"){
+var oldBeforeUnload=window.onbeforeunload;
+window.onbeforeunload=function(){
+deconcept.SWFObjectUtil.prepUnload();
+oldBeforeUnload();};
+}else{window.onbeforeunload=deconcept.SWFObjectUtil.prepUnload;}
+if(Array.prototype.push==null){
+Array.prototype.push=function(_31){
+this[this.length]=_31;
+return this.length;};}
+var getQueryParamValue=deconcept.util.getRequestParameter;
+var FlashObject=deconcept.SWFObject;
+var SWFObject=deconcept.SWFObject;
diff --git a/modules/flash/xspf_player.swf b/modules/flash/xspf_player.swf
index f03790a4..da45a0d1 100644
--- a/modules/flash/xspf_player.swf
+++ b/modules/flash/xspf_player.swf
Binary files differ