Results 1 to 3 of 3

Thread: continuous music playing on a website,

  1. #1
    Join Date
    Jan 2013

    continuous music playing on a website,

    Does someone know the code so a list of mp3's will automatically play back to back in any window media player on a website? The ones I found require the listener to press play for the next mp3.


  2. #2
    Join Date
    Mar 2005
    Behind you...
    This could obviously be done with flash/actionscript and there is likely a few players out there for this. It would be relatively simple to code such a thing though with basic controls and you would merely need to check if the current song has reached the end, possibly have a short delay and then play the next song in a list.

    If flash isn't your thing HTML5 is fully capable of doing this as well. Though you would cut off your system to anyone not using a modern browser but that's your personal decision.
    With HTML5 <audio> you can embed an mp3 easily and using javascript you can create an array to hold the list of songs you wish to play. Javascript can detect the current position in an <audio> element as well as the duration of the song, thus you could easily check to see if a song is done or not, if so simply load the next song in your array.

    When I get home later tonight I could always write up some code if you somehow feel you can't research any of this or just have no clue on how to begin coding either solution.
    "Given billions of tries, could a spilled bottle of ink ever fall into the words of Shakespeare?"

  3. #3
    Join Date
    Oct 2012
    I use Cincopa music player. You can choose the songs that will be playing one after another. You can also choose the look of your music player

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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