WWW FAQs: How do I play streaming audio on my web page?

2006-06-26: Modern embedded audio players will automatically play music in a "streaming" fashion, instead of downloading the entire first, unless they detect that the connection is just too slow. Just follow my usual advice on how to embed sound and music in a web page and you'll automatically get streaming audio!

Older browsers once forced the user to wait for a complete download before launching the audio player. This situation is very rare today and never happens with my recommended method of embedding audio - unless the connection is too slow... and if it is, downloading the whole song first is the only practical option. No one wants to listen to music that "stutters" as dribs and drabs of data arrive late on the user's computer!

So once again, to play streaming audio on your website, just read this article: How do I embed sound and music in my web page? Everything you need to know is in that article.

Legal Note: yes, you may use sample HTML, Javascript, PHP and other code presented above in your own projects. You may not reproduce large portions of the text of the article without our express permission.

Got a LiveJournal account? Keep up with the latest articles in this FAQ by adding our syndicated feed to your friends list!