sorry/help with darkplayer, Delay in sound? |
sorry/help with darkplayer, Delay in sound? |
Jan 16 2005, 09:32 PM
Post
#1
|
|
|
Newbie ![]() Group: Member Posts: 1 Joined: Jan 2005 Member No: 85,585 |
There's a huge delay in sound.
The player itself is fine, the code is fine, the links are fine. But it took at least a half an hour for the music to start playing. I mean; I know my computer may be slow, but there's no way it's THAT slow.. Is there anything in the coding that could effect this, or is there nothing I can do? If it helps; my code: <object id="darkplayer" codeBase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1, 52,701" type="application/x-oleobject" height="0" standby="Loading Microsoft Windows Media Player components..." width="0" classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"> <param NAME VALUE> <param NAME="ShowControls" VALUE="0"> <param NAME="ShowStatusBar" VALUE="0"> <param NAME="ShowDisplay" VALUE="0"> <param NAME="DefaultFrame" VALUE="Slide"> <param NAME="Autostart" VALUE="1"> <param NAME="Loop" VALUE="True"> </object> <form name="form"> <p style="text-align: center"> <select style="FONT-SIZE: 8pt; BACKGROUND:#FC8C8C; WIDTH: 180; COLOR: #000000; font-face: arial; height:174" name="playlist" size="1"> <option value="0">Automatic Lover/Vibrators</option> <option value="1">Sonic Reducer/Dead Boys</option> <option value="2">Aint nuthin to do/Dead Boys</option> <option value="3">Someone's gunna die/Blitz</option> <option value="4">England/Adicts</option> <option value="5">the army song/Abrasive wheels</option> <option value="6">Drinking and driving/Business</option> <option value="7">Oi oi oi/Cockney rejects</option> <option value="8">Lexicon Devil/Germs</option> <option value="9">17 years of hell/Partisans</option> <option value="10">If the kids are united/Sham69</option> <option value="11">Riot Squad/Cick Sparrer</option> </select><br> <input TYPE="BUTTON" NAME="darkplay" VALUE="play" OnClick="play(document.forms['form'].playlist);"> <input TYPE="BUTTON" NAME="darkpause" VALUE="pause" OnClick="document.darkplayer.pause (); playstate=2;"> <input TYPE="BUTTON" NAME="darkstop" VALUE="stop" OnClick="document.darkplayer.stop( ); playstate=2;"></p> </form><script language="JavaScript"> <!-- var playstate = 1; shuffle = 1; // set to 0 to always play first song in list // set to 1 to randomly choose the first song to play songs=new Array(); songs[0]="http://punkrockmusic.free.fr/vibrators2.mp3"; songs[1]="http://punk76.free.fr/deadboys3.mp3"; songs[2]="http://punksounds.free.fr/deadboys2.mp3"; songs[3]="http://realpunk.free.fr/blitz1.mp3"; songs[4]="http://realpunk.free.fr/adicts3.mp3"; songs[5]="http://punksounds.free.fr/abrasivewheels3.mp3"; songs[6]="http://realpunk.free.fr/business2.mp3"; songs[7]="http://realpunk.free.fr/cockneyrejects1.mp3"; songs[8]="http://punkinulster.free.fr/germs3.mp3"; songs[9]="http://realpunk.free.fr/partisans1.mp3"; songs[10]="http://punky78.free.fr/sham69_2.mp3"; songs[11]="http://punkrockmusic.free.fr/cocksparrer3.mp3"; if (shuffle == 1) { var randsg = Math.floor(Math.random()* songs.length); document.darkplayer.FileName = songs[randsg]; document.darkplayer.scr = songs[randsg]; document.forms['form'].playlist.options[randsg].selected = true; } function play(list) { if (playstate == 2) { document.darkplayer.Play( ); } else { var snum = list.options[list.selectedIndex].value document.darkplayer.FileName = songs[snum]; document.darkplayer.scr = songs[snum]; } playstate = 1; } //--> </script> |
|
|
|
Ziggy_Oi_77 sorry/help with darkplayer Jan 16 2005, 09:32 PM
ryan_73 i just tried your code. all the songs play just fi... Jan 16 2005, 11:20 PM
ckling It load quite fast for the songs, should be the pr... Jan 17 2005, 04:57 AM
sunkist6548 Heeheehee Ya know if ya wanna make it easier to re... Jan 17 2005, 05:28 PM![]() ![]() |