I want to shuffle play streaming links one after another in an embedded WMP. I found the code below which provides for a playlist with shuffle start capability. It works in IE but will not work in Firefox since the embed code portion for Mozilla based browsers is not included. It also just plays the first random song and then you have to choose another song to play. What I would like is to shuffle continuous play (one stream link after another) that will work in all browsers. Can this code be modified or is there another way to have an ASX file shuffle play different streams? Thanks for any help you can provide.
<center>
<object id="darkplayer" codeBase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" type="application/x-oleobject" height="450" standby="Loading Microsoft Windows Media Player components..." width="590" classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95">
<param NAME VALUE>
<param NAME="Autostart" VALUE="true">
<param NAME="ShowControls" VALUE="false">
<param NAME="ShowStatusBar" VALUE="true">
<param NAME="ShowDisplay" VALUE="false">
<param NAME="DefaultFrame" VALUE="Slide">
<param NAME="Loop" VALUE="False">
</object>
</center>
<form name="form"><table align="center">
<select style="FONT-SIZE: 8pt; BACKGROUND:#FFFFFF; WIDTH: 300; COLOR: #00000; font-face: verdana; height:15" name="playlist" size="1">
<option value="0">Wake Me Up When September Ends - Green Day</option>
<option value="1">She Says - Unwritten Law</option>
<option value="2">I Caught Fire - The Used</option>
<option value="3">Sugar We're Goin' Down - Fall Out Boy</option>
<option value="4">Question! - System of a Down</option>
<option value="5">Bat Country - Avenged Sevenfold</option>
<option value="6">Lose Control - Missy Elliott feat. Ciara & Fat Man Scoop</option>
<option value="7">Happens All The Time - Cold</option>
<option value="8">Ghost Of You - My Chemical Romance</option>
<option value="9">Right Here - Staind</option>
<option value="10">Here By Me - 3 Doors Down</option>
<option value="11">Stricken - Disturbed</option>
<option value="12">Crazy - Simple Plan</option>
<option value="13">My Humps - Black Eyed Peas</option>
<option value="14">Who I Am Hates Who I've Been - Relient K</option>
<option value="15">Hypnotize - System of a Down</option>
<option value="16">Jesus of Suburbia - Green Day</option>
<option value="17">Lights And Sounds - Yellowcard</option>
</select>
<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;"></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
// www.xanga.com/smartypants91780
// unlimited songs, just copy and paste the song line and change the number
songs=new Array();
songs[0]="http://www.warnerreprise.com/asx/greenday_wakemeupwhenseptemberends-video_450-v.asx"
songs[1]="http://wm.atlrec.com/unwritten_law/video/shesays_450.wmv"
songs[2]="http://www.warnerreprise.com/asx/theused_icaughtfirevideo_450-v.asx"
songs[3]="http://playlist.yahoo.com/makeplaylist.dll%3Fsid=16470399&pt=url&xdata=6D.xf E5hFQP5sy.qTP.dOw-32046894-1200276552&s=396500550&b=18fsofp1m07m2&wmp=10&tick et=4167ce86d227a265d00994680f355b6e&zz=a.asx"
songs[4]="http://www.systemofadown.com/Videos/SystemOfADown_QuestionVidFull_450.asx"
songs[5]="http://www.warnerreprise.com/asx/avengedsevenfold_batcountryvideo2_450-v.asx"
songs[6]="http://wm.atlrec.com/missyelliott/video/lose_control-450.wmv"
songs[7]="http://wm.atlrec.com/cold/videos/happensallthetime_450.wmv"
songs[8]="http://www.warnerreprise.com/asx/jdhfurhskj_whosdafrala_450-v.asx"
songs[9]="http://wm.atlrec.com/staind/video/righthere_450.wmv"
songs[10]="http://boss.streamos.com/wmedia/universalmotown/3dd_hbm_psa.asx"
songs[11]="http://www.warnerreprise.com/asx/disturbed_stricken_450-v.asx"
songs[12]="http://wm.atlrec.com/simple_plan/video/crazy-450.wmv"
songs[13]="http://boss.streamos.com/wmedia/interscope/blackeyedpeas/monkeybusiness/video/myhumps/00_myhumps.asx"
songs[14]="http://boss.streamos.com/wmedia/capi001/relientk/whoiamhates/video/whoiam_v300.asx"
songs[15]="http://systemofadown.com/Videos/SystemOfADown_Hypnotize_VidFull_450.asx"
songs[16]="http://www.warnerreprise.com/asx/greenday_jesusofsuburbiaxmxcmx_450-v.asx"
songs[17]="http://boss.streamos.com/wmedia/capi001/yellowcard/lightsandsounds/vid/lights-and-sounds_yc_v300.asx"
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>
+ Reply to Thread
Results 1 to 1 of 1
Thread
-
Similar Threads
-
How to record streaming WMV/ASF/MMS-links using VLC Media Player
By Baldrick in forum User guidesReplies: 49Last Post: 30th Dec 2011, 12:56 -
WMP Error Code C00D119D: unable to play streaming video
By cheerful in forum Software PlayingReplies: 4Last Post: 20th Jun 2006, 13:48 -
Shuffle / Random play with TMPG DVD Author?
By socal_local in forum Authoring (DVD)Replies: 1Last Post: 20th Apr 2004, 06:11 -
MP3 shuffle/random play feature
By moriva in forum DVD & Blu-ray PlayersReplies: 3Last Post: 30th Aug 2002, 12:22 -
mp3 shuffle play feature
By moriva in forum DVD & Blu-ray PlayersReplies: 0Last Post: 4th Jul 2002, 02:11
-



Quote