...

View Full Version : Windows Media Player controls



ForgottenOne
11-06-2004, 03:21 PM
I have embedded windows media player in a page and have it set to play a song when you select it from a dropdown box. This works fine, however, I want it to keep playing after it finishes the selected song by moving on to the next. I have been able to redirect the player to the url of the next song but I cannot get it to start playing automatically. You have to manually click play. I have been searching and I can't figure out what is wrong. Here is the code I am using.

<SCRIPT FOR="MediaPlayer" EVENT="EndOfStream(lResult)" LANGUAGE="JScript">

if (track < 38) {
track++;
document.MediaPlayer.FileName = songNum[track];
document.MediaPlayer.Play();
}
else {
track = 1;
document.MediaPlayer.FileName = songNum[track];
document.MediaPlayer.Play();
}
</SCRIPT>

Willy Duitt
11-06-2004, 04:28 PM
I would assume that you would use: The M3U (.m3u) Playlist File Format (http://www.google.com/search?q=%2Em3u)....

.....Willy

ForgottenOne
11-06-2004, 04:33 PM
Yea, but if I did that, wouldn't I have to create a playlist for every possible starting song? Like one starting at song5 and going on and then another starting at song6 and going. Could I tell it where to begin in the playlist and to keep repeating once it reached the end of the playlist or would it automatically start playing at the first song and not repeat the playlist?



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum