Winamp Web Player Code

Source: Internet
Author: User
Tags array object eval min return setinterval tostring window
Web

Haha, 5 o'clock in the morning wake up to sleep, to www.real2000.org listen to music, see the player is good, so it was deducted out. ^_^
Originally is a few JS file calls, in order to paste code convenient, I put in a file: A total of 2 files and dozens of pictures.
Online Demo: Http://music.lzr.com.cn/Apple/Winamp
Packaged Downloads: Http://music.lzr.com.cn/Apple/File/Winamp.rar
In addition to the demo is a new album of Jay Chou, "November Chopin", which "hair as snow" very good, I like to recommend you listen to, Xi hee.
OK, now start pasting code:
The main file default.htm is as follows:




<html>


<head>


<meta http-equiv= "Content-type" content= "text/html"; charset=gb2312 ">


<title>winamp Web Player </title>


<meta name= "Author" content= "Winamp Web Player" >


<meta name= "Keywords" content= "Dicky.CnBlogs.Com" >


<meta name= "Description" content= "Winamp Web Player" >


<style type= "Text/css" >


<!--


Body {} {background-color: #000000;}


P {} {text-align:center;}


. Title {} {font-family: "XXFarEastFont-font-size:9pt; color: #ffffff;}


. Time {font-family: ' Tahoma ', ' Verdana ', ' Arial '; font-size:9pt; color: #000000;}


-->


</style>


<script type= "Text/javascript" language= "JavaScript" >


<!--


///original Exobud.js Added by Dicky 2005-11-7 7:09:21


var objmminfo = null;


var intmmcnt = 0;


var intselmmcnt = 0;


var intactmmcnt = 0;


var cactidx = 0;


var cacttit = "NAnT";


var strmminfo = "Media archive Information";


var BLNFPL = false;


var blnenabled = false;


var blneot = false;


var arrselmm = null;


var arractmm = null;


var intexobudstat = 0;


var tidtlab = null;


var tiderr = null;


var tidmsg = null;


var interrcnt = 0;


var blnrept = false;


//This is the "automatic continuous playback" setting. In general, playing a piece of music will automatically jump to the next one when it is finished.


//But if the media you want to play is a video file (for example, MV), it's best to change this setting to False.


//true = automatic continuous playback of


//False = Do not play automatically continuously, let the user select the next track


var blnautoproc = true;


//sets the length of time displayed on the playback panel, and the preset is displayed in normal (elapse) or reciprocal (lapse) mode:


//True = Displays the length of time in the normal way, that is, dynamically showing when the track has been played


//False = To display the length of time in a reciprocal manner, that is, to dynamically display the remaining time of the track


var blnelaps = true;


//sets the latency (Delay time) between each track in the playback unit in milliseconds (msec).


//per 100 milliseconds for 0.1 seconds, the default is 500 milliseconds (or 0.5 seconds), and at least 100 milliseconds.


var intdelay = 500;


//Wmpinit () function: Setting up environment settings using wmp-obj v7.x link library


function Wmpinit () {


var wmps = exobud.settings;


var wmpc = exobud.closedcaption;


Wmps.autostart = true;


wmps.balance = 0;


Wmps.enableerrordialogs = false;


Wmps.invokeurls = false;


Wmps.mute = false;


wmps.playcount = 1;


wmps.rate = 1;


wmps.volume = 100;


if (blnusesmi) {wmpc.captioningid= "captext"; captext.style.display= "";}


exobud.enabled = true;


}


//Mkmmpath () function: Ready to build Multi-Object array


function Mkmmpath (u,t,f,s) {


This.mmurl = "mms://218.75.129.247/www.ppzy.com/" +UNGM (U);


this.mmtit = t;


This.mmdur = 0;


this.selmm = f;


THIS.ACTMM = f;


if (blnusesmi) {this.mmsmi=s;}


}


//Mklist () function: Set up an array of multi-object


function Mklist (u,t,s,f) {


var cu = u;


var ct = t;


var cs = s;


var cf = f;


var idx = 0;


if (objmminfo = = null) {objmminfo=new Array (); idx=0;}


else {idx=objmminfo.length;}


if (u== "| | | u==null) {cu=" mms://";}


if (t== "| | | t==null) {ct=" NAnT ";}


if (f== "F" | | | f== "F") {cf= "F";}


else {cf= "T"; intselmmcnt++;}


if (blnusesmi) {


objmminfo[idx]=new Mkmmpath (CU,CT,CF,CS);


} else {


objmminfo[idx]=new Mkmmpath (CU,CT,CF);


}


intactmmcnt = intselmmcnt;


intmmcnt = objmminfo.length;


}


//Mksel () function: Establish an array of selected playback items (Selected Media)


function Mksel () {


arrselmm = null;


intselmmcnt = 0;


var selidx = 0;


if (intmmcnt<=0) {intexobudstat=1; blnenabled=false; return;}//No playlist item


arrselmm = new Array ();


for (var i=0 i<intmmcnt; i++) {


if (objmminfo[i].selmm = = "T") {arrselmm[selidx]=i;selidx++;}


}


Intselmmcnt=arrselmm.length;


if (intselmmcnt<=0) {blnenabled=false; intexobudstat=2; arrselmm=null; return;}


else {blnenabled=true; Mkact ();}


}


//Mkact () function: Establish an array of enabled playback items (activated Media)


function Mkact () {


ARRACTMM = null;


intactmmcnt = 0;


var selidx = 0;


var actidx = 0;


if (blnenabled) {


arractmm=new Array ();


for (var i=0 i<intselmmcnt; i++) {


Selidx=arrselmm[i];


if (objmminfo[selidx].actmm== "T") {arractmm[actidx]=selidx; actidx++;}


}


intactmmcnt=arractmm.length;


}


else {return;}


if (intactmmcnt<=0) {blneot=true;arractmm=null;}


else {blneot=false;}


}


//Chkallsel () function: Select all playlist items All


function Chkallsel () {


for (var i=0 i<intmmcnt; i++) {


objmminfo[i].selmm= "T";


objmminfo[i].actmm= "T";


}


Mksel ();


}


//Chkalldesel () function: Do not select all playlist items


function Chkalldesel () {


for (var i=0 i<intmmcnt; i++) {


objmminfo[i].selmm= "F";


objmminfo[i].actmm= "F";


}


Mksel ();


}


//Chkitemsel () function: Select or do not select a playlist item


function Chkitemsel (idx) {


if (objmminfo[idx].selmm = = "T") {


objmminfo[idx].selmm= "F"; objmminfo[idx].actmm= "F";


} else {


objmminfo[idx].selmm= "T"; objmminfo[idx].actmm= "T";


}


Mksel ();


}


//Chkitemact () function: Freeze an enabled playback item (activated Media)


function Chkitemact (idx) {


objmminfo[idx].actmm= "F";


mkact ();


}


Mkselact () Function: Add selected playback items (Selected media) to the enabled playback item (activated media)


function Mkselact () {


var idx=0;


for (var i=0 i<intselmmcnt; i++) {


Idx=arrselmm[i];


objmminfo[idx].actmm= "T";


}


mkact ();


}


//Initexobud () function: Initialize exobud MP Media Player


function Initexobud () {


Wmpinit ();


Mksel ();


BLNFPL = false;


if (!blnshowvolctrl) {


document.images[' vmute '].style.display = "none";


document.images[' vdn '].style.display = "none";


document.images[' vup '].style.display = "none";


}


if (!blnshowplist) {document.images[' plist '].style.display = ' none ';}


if (blnrept) {imgchange (' rept ', 1);}


else {imgchange (' rept ', 0);}


if (blnrndplay) {imgchange (' pmode ', 1);}


else {imgchange (' pmode ', 0);}


Showtlab ();


disp1.innerhtml = "aboutplayer.com Truth for your service";


if (blnstatusbar) {window.status= (' aboutplayer.com true to your service ');}


if (blnautostart) {Startexobud ();}


}


//Startexobud () function: Start playing track


function Startexobud () {


var wmps = exobud.playstate;


if (wmps==2) {


Exobud.controls.play ();


try{clearinterval (play_time)}catch (e) {}


return;


}


if (wmps==3) {return;}


Blnfpl=false;


if (!blnenabled) {waitmsg (); return;}


if (blneot) {mkselact ();}


if (interrcnt>0) {interrcnt=0;tiderr=settimeout (' Retryplay (), 1000 '); return;


if (blnrndplay) {Rndplay ();}


else {cactidx=arractmm[0]; Selmmplay (CACTIDX);}


}


//Selmmplay () function: Handling Media headers


function Selmmplay (idx) {


cleartimeout (Tiderr);


Cactidx=idx;


var trknum=idx+1;


var ctit =objmminfo[idx].mmtit;


if (ctit== "NAnT") {ctit= (no media title)}


if (blnusesmi) {Exobud.ClosedCaption.SAMIFileName = Objmminfo[idx].mmsmi;}


Exobud.url = Objmminfo[idx].mmurl;


cacttit = Trknum + "." + ctit;


disp1.innerhtml = cacttit;


if (blnstatusbar) {window.status= (cacttit);}


chkitemact (CACTIDX);


}


//Wmpplay () function: Play track with wmp-obj v7.x link library


function Wmpplay () {Exobud.controls.play ();}


//Wmpstop () function: Stop playing the track and display the Ready status message


function Wmpstop () {


interrcnt=0;


cleartimeout (Tiderr);


clearinterval (Tidtlab);


Imgchange ("stopt", 1);


Imgchange ("Pauzt", 0);


imgchange ("Scope", 0);


Showtlab ();


mkselact ();


Exobud.controls.stop ();


Exobud.close ();


coursebutton.style.pixelleft=0


disp1.innerhtml = "<font class=title>aboutplayer.com truth for your service </font>";


if (blnstatusbar) {window.status= (' aboutplayer.com true to your service '); return true;}


}


//Wmppause () function: Suspend track play using Wmp-obj v7.x link library


function Wmppause () {Exobud.controls.pause ();}


//WMPPP () function: Toggles between pausing and continuing the playback


function Wmppp () {


var wmps = exobud.playstate;


var wmpc = exobud.controls;


clearinterval (Tidtlab);


cleartimeout (tidmsg);


if (wmps==2) {Wmpc.play ();}


if (wmps==3) {wmpc.pause (); disp2.innerhtml= "<font color= #FFFFFF ><b> suspend </b></font>"; Tidmsg=settimeout (' Rtntlab () ', 1500);}


return;


}


//Rndplay () function: Random playback (Random play) operation mode


function Rndplay () {


if (!blnenabled) {waitmsg (); return;}


interrcnt=0;


var Idx=math.floor (math.random () * intactmmcnt);


Cactidx=arractmm[idx];


Selmmplay (CACTIDX);


}


//Playauto () function: To perform automatic continuous playback of an enabled playback item


//This is the action based on the set value of the Blnautoproc above.


function Playauto () {


if (blnrept) {selmmplay (CACTIDX); return;}


if (!blnautoproc) {wmpstop (); return;}


if (BLNFPL) {wmpstop (); return;}


if (!blnenabled) {wmpstop (); return;}


if (blneot) {


if (BLNLOOPTRK) {Startexobud ();}


else {wmpstop ();}


} else {


if (blnrndplay) {Rndplay ();}


else {cactidx=arractmm[0]; Selmmplay (CACTIDX);}


}


}


//Player Click on a single track selected on the playlist


function Selplplay (idx) {


blnfpl=true;


selmmplay (IDX);


}


//Playprev () function: Play previous enabled playback item


function Playprev () {


var wmps = exobud.playstate;


if (wmps==2 | | wmps==3) {Exobud.controls.stop ();}


Blnfpl=false;


if (!blnenabled) {waitmsg (); return;}


if (blneot) {mkselact ();}


interrcnt=0;


if (blnrndplay) {Rndplay ();}


else {


var idx=cactidx;


var blnfind=false;


for (Var i=0;i<intselmmcnt;i++) {if (Cactidx==arrselmm[i]) {idx=i-1; blnfind=true;}}


if (!blnfind) {startexobud (); return;}


if (idx<0) {idx=intselmmcnt-1;cactidx=arrselmm[idx];}


else {cactidx=arrselmm[idx];}


Selmmplay (CACTIDX);


}


}


//PlayNext () function: Play the next play-enabled item


function PlayNext () {


var wmps = exobud.playstate;


if (wmps==2 | | wmps==3) {Exobud.controls.stop ();}


Blnfpl=false;


if (!blnenabled) {waitmsg (); return;}


if (blneot) {mkselact ();}


interrcnt=0;


if (blnrndplay) {Rndplay ();}


else {


var idx=cactidx;


var blnfind=false;


for (Var i=0;i<intselmmcnt;i++) {if (Cactidx==arrselmm[i]) {idx=i+1; blnfind=true;}}


if (!blnfind) {startexobud (); return;}


if (idx>=intselmmcnt) {idx=0;cactidx=arrselmm[idx];}


else {cactidx=arrselmm[idx];}


Selmmplay (CACTIDX);


}


}


//Retryplay () function: Try again online to media archive


function Retryplay () {


Selmmplay (CACTIDX);


}


//Chkrept () function: Toggle whether the current track is repeated (playback items are enabled)


function chkrept () {


var wmps = exobud.playstate;


if (wmps==3) {clearinterval (Tidtlab);}


if (blnrept) {


Blnrept=false; Imgchange (' rept ', 0); Disp2.innerhtml= "<font color= #FFFFFF ><b> do not repeat playback </b></font>";


} else {


blnrept=true; Imgchange (' rept ', 1); Disp2.innerhtml= "<font color= #FFFFFF ><b> repeat play </b></font>";


}


tidmsg=settimeout (' Rtntlab () ', 1000);


}


//Chgpmode () function: Toggles the media item to be played in sequential (sequential) or random (Random) mode


function Chgpmode () {


var wmps = exobud.playstate;


if (wmps==3) {clearinterval (Tidtlab);}


if (blnrndplay) {


Blnrndplay=false; Imgchange (' Pmode ', 0); Disp2.innerhtml= "<font color= #FFFFFF ><b> sequential play </b></font>";


} else {


blnrndplay=true; Imgchange (' pmode ', 1); Disp2.innerhtml= "<font color= #FFFFFF ><b> random play </b></font>";


}


tidmsg=settimeout (' Rtntlab () ', 1000);


}


Evtoschg () Function: Displays media file information as a pop-up window


function Evtoschg (f) {


//Below is a description of the status value (f):


//0 (undefined) 8 (converted media) 9 (in Search of media) 10 (in online media) 11 (Loaded media)


//12 (Open Media) 13 (media turned on) 20 (Waiting for play) 21 (opening unknown link)


if (f==8) {captext.innerhtml= "<p class=title>copyright©2004-2005™";}


if (f==13) {


var strtitle = Exobud.currentMedia.getItemInfo ("Title");


if (strtitle.length <= 0) {strtitle = "(Unnamed caption)"}


var strauthor = Exobud.currentMedia.getItemInfo ("Author");


if (strauthor.length <= 0) {strauthor = "(Unnamed performer)"}


var strcopy = Exobud.currentMedia.getItemInfo ("Copyright");


if (strcopy.length <= 0) {strcopy = "(no copyright Information)"}


var strtype = Exobud.currentMedia.getItemInfo ("mediatype");


var Strdur = Exobud.currentMedia.durationString;


var strurl = Exobud.url;


var trknum = cactidx+1;


var ctit = objmminfo[cactidx].mmtit;


if (ctit== "NAnT") {


objmminfo[cactidx].mmtit = strauthor + "-" + strtitle;


ctit = strauthor + "-" + strtitle;


cacttit = Trknum + "." + ctit;


disp1.innerhtml = cacttit;


}


strmminfo = "title:" + strtitle + "(form:" + strtype + ")" + "\ n";


Strmminfo + = "Performer:" + Strauthor + "\ n";


Strmminfo + = "File location:" + strURL + "\ n";


Strmminfo + = "Copyright:" + strcopy + "\ n";


Strmminfo + = "Length of time:" + Strdur + "\n\n\n";


Strmminfo + + brought to and by Exobud MP (II). \ n ";


Strmminfo + = "Copyright (C) 1999-2003 jinwoong yu.\n";


Strmminfo + = "all RIGHTS reserved.\n";


if (blnshowmminfo) {alert (strmminfo);}


}


}


//Evtpschg () function: Toggle the action of the Playback program


function Evtpschg (f) {


//Below is a description of the status value (f):


//0 (undefined) 1 (Stopped playing) 2 (paused) 3 (in play) 4 (forward) 5 (search backward)


//6 (in buffer) 7 (Waiting) 8 (finished) 9 (in conversion track) 10 (Ready state)


switch (f) {


Case 1:


Evtstop ();


break;


Case 2:


Evtpause ();


break;


Case 3:


Evtplay ();


break;


Case 8:


settimeout (' Playauto () ', intdelay);


break;


}


}


//Evtwmpbuff () function: Buffer The media file (buffering) Action


function Evtwmpbuff (f) {


if (f) {


disp2.innerhtml = "Buffer processing";


var msg = cacttit;


disp1.innerhtml = msg;


if (blnstatusbar) {window.status= (msg);}


} else {


disp1.innerhtml = cacttit; Showtlab ();


}


}


Evtwmperror () Function: Displays an error message when the media file cannot be brought online


function Evtwmperror () {


interrcnt++;


Exobud.Error.clearErrorQueue ();


if (interrcnt<=3) {


disp2.innerhtml = "Try to go online (+ interrcnt +)";


var msg = "(Try the first" + interrcnt + "secondary online)" + cacttit;


disp1.innerhtml = "< cannot play >" + cacttit;


if (blnstatusbar) {window.status= (msg);}


tiderr=settimeout (' Retryplay () ', 1000);


} else {


cleartimeout (Tiderr);


Interrcnt=0;showtlab ();


var msg = "has been discarded trying to go online again." The next track will now play. ";


if (blnstatusbar) {window.status= (msg);}


settimeout (' Playauto () ', 1000);}


}


//Evtstop () function: Stop playing


function Evtstop () {


cleartimeout (Tiderr);


clearinterval (Tidtlab);


Showtlab ();


interrcnt=0;


Imgchange ("Pauzt", 0);


Imgchange ("Playt", 0);


imgchange ("Scope", 0);


disp1.innerhtml = "<font class=title> waiting ...</font>";


if (blnstatusbar) {window.status= (' wait ... '); return true;}


}


//Evtpause () function: Pause playback


function Evtpause () {


Imgchange ("Pauzt", 1)


Imgchange ("Playt", 0);


Imgchange ("stopt", 0);


imgchange ("Scope", 0);


clearinterval (Tidtlab);


Showtlab ();


}


//Evtplay () function: Start playing


function Evtplay () {


Imgchange ("Pauzt", 0)


Imgchange ("Playt", 1);


Imgchange ("stopt", 0);


imgchange ("Scope", 1);


tidtlab=setinterval (' Showtlab () ', 1000);


}


//Showtlab () function: Display the length of time


function Showtlab () {


var ps = exobud.playstate;


if (ps==2 | | ps==3) {


var cp=exobud.controls.currentposition;


var cps=exobud.controls.currentpositionstring;


var dur=exobud.currentmedia.duration;


var durs=exobud.currentmedia.durationstring;


if (blnelaps) {


disp2.innerhtml = "<font color= #FFFFFF ><b>" +cps + "|" + durs+ "</b></font>";


var msg = "<font color= #FFFFFF ><b>" +cacttit + "(" + CPS + "|" + Durs + ") </b></font>";


if (ps==2) {msg = ' (paused) + msg;}


if (blnstatusbar) {


//window.status= (msg);


Coursebutton.style.pixelleft=math.round (coursebuttonbox.offsetwidth-coursebutton.offsetwidth) * Exobud.controls.currentposition/exobud.currentmedia.duration)


return true;


}


} else {


var laps = DUR-CP;


var strlaps = wmptime (laps);


disp2.innerhtml = "<font color= #FFFFFF ><b>" +strlaps + "|" + durs+ "</b></font>";


var msg = "<font color= #FFFFFF ><b>" +cacttit + "(" + Strlaps + "|" + Durs + ") </b></font>";


if (ps==2) {msg = ' (paused) + msg;}


if (blnstatusbar) {


//window.status= (msg);


Coursebutton.style.pixelleft=math.round (coursebuttonbox.offsetwidth-coursebutton.offsetwidth) * Exobud.controls.currentposition/exobud.currentmedia.duration)


return true;}


}


} else {


disp2.innerhtml = "<font color= #FFFFFF ><b>00:00 | 00:00</b></font> ";


}


}


//Chgtimefmt () function: How long to change the length of the display


function chgtimefmt () {


var wmps = exobud.playstate;


if (wmps==3) {clearinterval (Tidtlab);}


if (blnelaps) {


Blnelaps=false; Disp2.innerhtml= "<font color= #FFFFFF ><b> reciprocal way </b></font>";


} else {


blnelaps=true; Disp2.innerhtml= "<font color= #FFFFFF ><b> normal way </b></font>";


}


tidmsg=settimeout (' Rtntlab () ', 1000);


}


//Rtntlab () function: Return length of Time


function Rtntlab () {


cleartimeout (tidmsg);


var wmps = exobud.playstate;


if (wmps==3) {tidtlab=setinterval (' Showtlab () ', 1000);}


else {Showtlab ();}


}


//Wmptime () function: Calculate the length of time


function Wmptime (dur) {


var hh, min, sec, Timelabel;


Hh=math.floor (dur/3600);


Min=math.floor (DUR/60)%60;


Sec=math.floor (dur%60);


if (isNaN (min)) {return "00:00";}


if (isNaN (hh) | | | hh==0) {timelabel= "";}


else {


if (hh>9) {Timelabel = hh.tostring () + ":";}


else {Timelabel = "0" + hh.tostring () + ":";}


}


if (min>9) {Timelabel = Timelabel + min.tostring () + ":";}


else {Timelabel = Timelabel + "0" + min.tostring () + ":";}


if (sec>9) {Timelabel = Timelabel + sec.tostring ();}


else {Timelabel = Timelabel + "0" + sec.tostring ();}


return Timelabel;


}

//scroll bar event


var eventobject=0,old_x,new_x;


function Button_down () {//Drag button press event


eventobject=event.srcelement;


Old_x=event.clientx;


eventobject.setcapture ();


    }


function Button_move () {//Drag button move event


if (eventobject) {


New_x=event.clientx;


var movepels=eventobject.style.pixelleft+new_x-old_x;


var maxbound=document.all (eventobject.id+ "box"). Offsetwidth-eventobject.offsetwidth;


if (eventobject&&movepels<=maxbound&&movepels>=0) {


Eventobject.style.pixelleft=movepels;


eval (eventobject.id+ "Event" ("+eventobject.style.pixelleft+", "+maxbound+") ");


old_x=new_x;


            }


        }


    }


function button_up () {//Drag button to release event


if (eventobject) {


eventobject.releasecapture ();


eventobject=0;


        }


    }


function Coursebuttonevent (l,m) {//Playback Process Control


Exobud.controls.currentposition=math.round (exobud.currentmedia.duration*l/m);


    }


function Volumebuttonevent (l,m) {//Volume control


var wmps=exobud.playstate;


if (WMPs = = 3) {clearinterval (Tidtlab);}


var ps = exobud.settings;


Ps.volume=math.round ((l/m) *100);


disp2.innerhtml = "<font color= #FFFFFF ><b> Volume:" + Ps.volume + "%</b></font>";


    }


function Trackbuttonevent (l,m) {//channel control


var n=math.round (l/m*100);


var ps = exobud.settings;


ps.balance=n==50?0:n>50? (n-50) *1.8:n<50?-(50-n) *1.8:0;


    }

Varray = new Array ();
Varray[0] = 0;
VARRAY[1] = 10;
VARRAY[2] = 20;
VARRAY[3] = 30;
VARRAY[4] = 40;
VARRAY[5] = 50;
VARRAY[6] = 60;
VARRAY[7] = 70;
VARRAY[8] = 80;
VARRAY[9] = 90;
VARRAY[10] = 100;

function SetVolume (index)


{


var wmps=exobud.playstate;


if (WMPs = = 3) {clearinterval (Tidtlab);}


var ps = exobud.settings;


ps.volume = Varray[index];


document.images["meter"].SRC = eval ("meter" + index + ". src");


disp2.innerhtml= "<font color= #FFFFFF ><b>vol." + Ps.volume + "%</b></font>";


if (ps.volume!= 0 && ps.mute) {Ps.mute = False;imgchange ("Vmute", 0);}


if (Ps.volume = = 0 &&!ps.mute) {ps.mute = true;disp2.innerhtml= "<font color= #FFFFFF ><b> Mute mode </b></font> "; Imgchange ("Vmute", 1);}


tidmsg=settimeout (' Rtntlab () ', 1000);


}


function Meterclick (n)


{


setvolume (n);


}


//Wmpmute () function: Mute mode (Mute)


function Wmpmute () {


var wmps=exobud.playstate;


if (WMPs = = 3) {clearinterval (Tidtlab);}


var ps = exobud.settings;


if (!ps.mute) {Ps.mute = true;disp2.innerhtml= "<font color= #FFFFFF ><b> Mute mode startup </b></font> "; Imgchange ("Vmute", 1);}


else {ps.mute = false;disp2.innerhtml= "<font color= #FFFFFF ><b> Mute mode off </b></font>"; Imgchange ("Vmute", 0);}


tidmsg=settimeout (' Rtntlab () ', 1000);


}


//function Wmpmute () {


//var wmps = exobud.playstate;


//if (wmps==3) {clearinterval (Tidtlab);}


//var PS = exobud.settings;


//if (!ps.mute) {


//Ps.mute=true; Disp2.innerhtml= "Open mute mode"; Imgchange ("Vmute", 1);


//else {


//Ps.mute=false; Disp2.innerhtml= "Turn off mute mode"; Imgchange ("Vmute", 0);


// }


//Tidmsg=settimeout (' Rtntlab () ', 1000);


//}


//Waitmsg () function: Displays a message that cannot be played because the playlist is blank


function waitmsg () {


captext.innerhtml= "<p class=title>copyright©2004-2005™";


if (intexobudstat==1) {disp1.innerhtml = "cannot play-no tracks are set on the playlist. ";}


if (intexobudstat==2) {disp1.innerhtml = "cannot play-you did not select any of the tracks on the playlist." ";}


if (blnstatusbar) {


if (intexobudstat==1) {window.status= (' cannot play-no tracks are set on the playlist. '); return true;}


if (intexobudstat==2) {window.status= Not playable-you did not select any of the tracks on the playlist. '); return true;}


}


}


//Openplist () function: Displays the contents of the playlist in a pop-up window


function Openplist () {


window.open ("exobudpl.htm", "Mplist", "Top=50,left=320,width=400,height=400,scrollbars=no,resizable=yes, Copyhistory=no ");


}


//Chkwmpstate () function: Returns the Playstate status value when the player action changes


function Chkwmpstate () {


//Below is a description of the status value:


//0 (undefined) 1 (Stopped playing) 2 (paused) 3 (in play) 4 (forward) 5 (search backward)


//6 (in buffer) 7 (Waiting) 8 (finished) 9 (in conversion track) 10 (Ready state)


return exobud.playstate;


}


//Chkwmpostate () function: Returns the Openstate status value when the playback program opens the media file for playback


function Chkwmpostate () {


//Below is a description of the status value:


//0 (undefined) 8 (converted media) 9 (in Search of media) 10 (in online media) 11 (Loaded media)


//12 (Open Media) 13 (media turned on) 20 (Waiting for play) 21 (opening unknown link)


return exobud.openstate;


}


//Chkonline () function: Check the online status of the consumer (not necessarily every panel will be used)


function Chkonline () {


//Return value: True (online to Internet) false (not online to Internet)


return exobud.isonline;


}


//Vizexobud () function: Click to the official website of the original author of the Exobud MP player [Korean] (not necessarily every panel will be used)


function Vizexobud () {


//Usage Example: <span style= "Cursor:hand" title= "aboutplayer.com" >


window.open ("http://aboutplayer.com", "Vizexobud");


}


///original Exobud.js Added by Dicky 2005-11-7 7:09:21

Original Set.js Added by Dicky 2005-11-7 7:09:21
Do you want to play it automatically?
Set whether to automatically play (auto Start) media files when the player loads the page:
true = Auto Playback (general webmaster will choose this way)
false = Do not play automatically, manually by the consumer
var Blnautostart = true;

var blnrndplay = false;

var blnstatusbar = false;

var Blnshowvolctrl = true;

var blnshowplist = true;

Do you want to use the caption function to open the caption box?
Set whether to use the smil caption function (Closed captioning-must be used with a plain text file with the extension "SMI"):
true = Display synchronized lyrics or text messages in the caption box (or include pictures, etc.) using the caption feature
false = Closed Caption function
var Blnusesmi = true;

var blnlooptrk = true;

Do pop-up windows display media archive information?
Set whether to pop up a window to display media profile information when you start playing each track:
true = Display media file information (please think carefully, because viewers may be bored, this feature is only suitable for testing)
false = Media Archive information is not displayed
var blnshowmminfo =false;

Next page







Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.