How to Stream MP3

How to Stream MP3

[REMINDER: The transmission, storage, or presentation of any information, data or material in violation of any United States Federal, State or local law is strictly prohibited under the terms and conditions of your hosting account. This includes copyrighted material used without permission.]

To stream an mp3 file, upload your mp3 file to your www directory (or to a subdirectory of your www directory) in BINARY format. Then create a text file with a .m3u extension. The .m3u file should contain only the URL to your mp3 file, and it should be uploaded in ASCII format.

For example:

  1. Create a subdirectory (e.g., media) in your www directory.
  2. Then, upload your mp3 file named (e.g., mysongfile.mp3 into that directory. Be sure to upload The mp3 file in BINARY format.
  3. Finally, create a text file (e.g., mysong.m3u) that contains only one line of text: the fully-qualified URL of your mp3 file (e.g.,http://yourdomainname.com/media/mysongfile.mp3).
  4. Then point your browser to the URL of the m3u file (using the above examples, http:///yourdomainname.com/mysong.m3u) and the .mp3 file will buffer and play.

Note that if you bypass the m3u file and point your browser directly to the mp3 file, the file will not stream — the visitor will have to download the entiremp3 file before the media will play.

In the case of mp3 media, the buffering is determined by the media player on the listener’s computer — it’s not a server-side function.