Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Nov 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Windows Media Player controls

    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>

  • #2
    Banned
    Join Date
    Sep 2003
    Posts
    3,620
    Thanks
    0
    Thanked 0 Times in 0 Posts
    I would assume that you would use: The M3U (.m3u) Playlist File Format....

    .....Willy

  • #3
    New to the CF scene
    Join Date
    Nov 2004
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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?


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •