Streaming Audio/Video on Your Site

InMotion Hosting’s servers fully support the implementation of streaming media on your website. This can be done manually or through a script, which are both explained here. The best way to utilize this feature without eating your bandwidth or inconveniencing your visitors is to upload it to a third party MP3/video service and embed it into the HTML code of your site.

You can always do a manual audio/video stream, but we don’t prefer this over the embed method, as it tends to load files slowly and use a lot of bandwidth.

To Stream a Video

There are many services available for hosting and embedding a video stream into your site. The following guide outlines some of the most popular options such as YouTube (free), Internet Archive (free), and Amazon Web Service AWS (paid).

To Stream an MP3

Upload your mp3 file to your public_html directory (or to a subdirectory of your public_html 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 public_html 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 such as mysong.m3u that contains only one line of text: the fully-qualified URL of your mp3 file. For example:
    https://yourdomainname.com/media/mysongfile.mp3
  4. Then point your browser to the URL of the m3u file (using the above examples, https://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 entire mp3 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.

3 thoughts on “Streaming Audio/Video on Your Site

    1. Hello Dieter – Thanks for letting us know. We are in the process of updating articles. I will add this one to the list.

  1. This seems pretty out of date, especially since it refers to the JW flash player. Browsers haven’t supported flash for a while. The article says it was updated in 2021, but that’s really old info.

Was this article helpful? Join the conversation!