views:

100

answers:

4

i want to have an MP3 constantly playing and looping in an HTML page after a page has been loaded. I also want to control this sound with HTML interface for PLAY\STOP and if i can tune up down the volume as well then it would be great but that's an optional. Is there a way to first load the sound file first and play it in a loop or every sound has to be streamed.

All you people with due respect, please! please! stick to HTML and Javascript, please make no suggestions like have a Flash in your page or have a hidden Flash in your page or have Windows API calls to adjust volumes.

How can i make this method light enough to also work well for 56K Dial-up Modems.

+3  A: 

Short of HTML5, you can't do this with just HTML and Javascript.

Even Google uses Flash for their embedded audio player.

Jweede
+1  A: 

So, just HTML and JavaScript and no third party stuff…

Use the poorly supported (and draft) audio element and watch as people who have supporting browsers flee from the noise. Making it light enough for 56k modem users is more a question of making the sound file tiny than anything else — but those users probably won't have upgraded to browsers that support the audio element anyway.

David Dorward
A: 

This, this may get you started. However, youre dreaming if you want users with 56k to be able to play any MP3's at a decent quality (except for maybe talk shows on the radio).

mauro.dec
Those options lack the required ability to start/pause the playback.
David Dorward
+2  A: 

in html you cannot playback MP3 files - you're looking for some javascript that does this job. script.aculo.us frameworks has some built-in features for this or otherwise I'd suggest you this tutorial, which covers the basics...

O'Reilly Media

Gnark