View Full Version : My music won't play...


VillesChick
07-31-2005, 10:13 PM
i can't get my playlist to work. some of them are videos so does that have anything to do with it? here's my code, if you can help me that would be great. for some reason my computer never lets me hear windows media on xanga so i have to use the real player

<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="5" 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>
</p>
<form name="form">
<p style="text-align: center">
<select style="FONT-SIZE: 8pt; BACKGROUND:#FFFFFF; WIDTH: 260; COLOR: #00000; font-face: verdana; height:174" name="playlist" size="1">
<option value="0">Heartache Every Moment - HIM</option>
<option value="1">The Sacrament - HIM</option>
<option value="2">Solitary Man - HIM</option>
<option value="3">And Love Said No - HIM</option>
<option value="4">Buried Alive By Love - HIM </option>
<option value="5">Bittersweet</option>
<option value="6">I'm Not Ok (I Promise) - My Chemical Romance</option>
<option value="7">Vampires Will Never Hurt You - My Chemical Romance</option>
<option value="8">A Decade Under the Influence - Taking Back Sunday</option>
<option value="9">Taking Back Sunday</option>
<option value="10">Scars- Papa Roach</option>
<option value="11">Until The Day I Die- Story of the Year</option>
<option value="12">Flesh Into Gear - CKY</option>
<option value="13">Swing Swing- All American Rejects</option>
<option value="14">Californication- Red Hot Chili Peppers</option>
<option value="15">Scar Tissue- Red Hot Chili Peppers</option>
<option value="16">Iris - Goo Goo Dolls</option>
<option value= "17">Pressing on - Relient K</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
// unlimited songs, just copy and paste the song line and change the number
songs=new Array();
songs[0]="http://www.viva.tv/index.php?action=webclips_play_stream&id=2026&type=rlp_isdn"
songs[1]="http://www.viva.tv/index.php?action=webclips_play_stream&id=9340&type=rlp_isdn"
songs[2]="http://www.viva.tv/index.php?action=webclips_play_stream&id=10196&type=rlp_isdn"
songs[3]="http://www.viva.tv/index.php?action=webclips_play_stream&id=12038&type=rlp_isdn"
songs[4]="http://www.viva.tv/index.php?action=webclips_play_stream&id=9706&type=rlp_isdn"
songs[5]="http://www.viva.tv/index.php?action=webclips_play_stream&id=11514&type=rlp_isdn"
songs[6]="http://www.bbc.co.uk/totp/full_length/bb/my_chemical_romance_im_not_ok_16x9_bb.ram"
songs[7]="http://64.27.65.90:8080/ramgen/eyeballrecords/mychemreal56k.rm"
songs[8]="http://www.redmusic.com/streams/TakingBackSunday/DecadeUnderTheInfluence.ram"
songs[9]="http://www.redmusic.com/streams/TakingBackSunday/BonusMosh.ram"
songs[10]="http://www.allaccess.com/sounds/papascar.ram"
songs[11]="http://demand1.stream.aol.com/ramgen/aol/us/aolmusic/artists/wmg/storyoftheyear/storyoftheyear_thedayidie.rm"
songs[12]="http://demand1.stream.aol.com/ramgen/aol/us/aolmusic/artists/universal/cky/cky_fleshintogear_nb.rm"
songs[13]="http://demand1.stream.aol.com/ramgen/aol/us/aolmusic/artists/universal/allamericanrejects/allamericanrejects_swing.rm"
songs[14]="http://pgoh.free.fr/californication.ram"
songs[15]="http://ramhurl.real.com/smildemohurl.html?file=ra8/artistdirect/redhotchilipepers_scartissue_320x180_ss300.rm"
songs[16]="http://pgoh.free.fr/iris_goo.ram"
songs[17]="http://dojesus.com/videos/R/pressingon.ram"

if (shuffle == 1) {
var randsg = Math.floor(Math.random()* songs.length);
document.darkplayer.FileN ame = 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.FileN ame = songs[snum];
document.darkplayer.scr = songs[snum];
}
playstate = 1;
}
//-->
</script>

tokyo bleu
07-31-2005, 10:20 PM
http://www.viva.tv/index.php?action=webclips _play_stream&id=2026&type=rlp_isdn

Those type of URLs definitely won't work. You can't just expect the video to play if it's linked to a Web page and not the direct video itself.

VillesChick
07-31-2005, 10:25 PM
oh that really sucks, thanks.

VillesChick
07-31-2005, 11:09 PM
ok i changed the links and made sure they worked but my playlist still won't play

DemolitionMan50
08-03-2005, 07:59 PM
After the " in the URL's, you need the ;