PDA

View Full Version : Coding a Playlist (or multiple sound files) to play in JavaScript



adamay
09-25-2007, 10:16 AM
hello

how can i rewrite the lines below, contained in a .ram playlist, as javascript:


http://myplaylistsite.com/sound/clip1.rm
http://myplaylistsite.com/sound/clip2.rm
http://myplaylistsite.com/sound/clip3.rm
http://myplaylistsite.com/sound/clip.... (etc.)

that is, instead of using a hyperlink to play an external .ram file (or. wax for that matter), i want to activate a script within the HTML page (via a simple click) which will iterate through the audio clips.

incidentally, the reason i need such a script, is because i want to be able to synchronize the playing of consecutive audios file with the highlighting of their corresponding texts/lyrics. and i understand this can only be done by capturing events within a javascript script.

p.s. "http://myplaylistsite.com/" doesn't really exist, just there for illustration.

thanks

littleEd
09-25-2007, 03:56 PM
interesting idea.

would it be possible for you to create something similar using flash?

djr33
09-26-2007, 02:15 AM
Flash or an external playlist are the way to go. If you need to, you could try to automatically generate the playlist, though I don't see this really working well with javascript...