HTTP Streaming overview

Overview

All hosting plans at DreamHost support HTTP streaming media (also known as Progressive Download). You can use your DreamHost server to stream audio and video as long as they do not violate any Copyright laws.

If you have a music act or business, streaming media is a far more powerful tool than allowing MP3 downloads from your web sites. When you stream an audio or video file the user of that file is able to hear or see that file almost immediately because it plays as it downloads. When you download an MP3, you must wait until the entire file is loaded before you can use it.

Streaming HTML5 audio

You can easily stream audio with HTML5. Visit the following link for details:

The audio file you wish to stream must be in a format that a browser is able to read. For music files, mp3 is the standard.

Here is a very simple example that creates an audio control box:

  • Place the following code in the <body> of your HTML document
  • Make sure the .mp3 file is in the same directory as the file. Otherwise you must adjust the src= attribute
<audio controls>
<source src="Für_Elise.mp3" type="audio/mpeg">
</audio>

The <audio> and <source> tags also have several attributes you can adjust:

Streaming HTML5 video

You can stream video using HTML5 in the same way. Visit the following link for details:

The video file you wish to stream must be in a format that a browser is able to read. For video files, mp4 is the standard.

Here is a very simple example that creates a video control box:

  • Place the following code in the <body> of your HTML document
  • Make sure the .mp4 file is in the same directory as the file. Otherwise you must adjust the src= attribute
<video width="320" height="240" controls>
<source src="movie.mp4" type="video/mp4">
</video>

The <video> and <source> tags also have several attributes you can adjust:

See also

Did this article answer your questions?

Article last updated PST.

Still not finding what you're looking for?