Search  
   
Browse by Category
 
Netfirms 24/7 Support .: SITE: DESIGN, PUBLISHING & FTP .: G. Features Supported .: How can I stream audio/video files?

How can I stream audio/video files?

The Netfirms Premium Hosting Plans allow you to do http streaming:
1. Upload the audio/video file(s) to your website using an FTP program. Instructions for using an FTP program can be found here.
2. Add the following code to the webpage that will stream your file: 
Video streaming:
<embed src="mymovie.mpg" CONTROLS="imagewindow" CONSOLE="video" width="320" height="240" autostart="TRUE">
</embed>
Audio streaming:
<embed src="mymusic.mp3" CONTROLS="audiowindow" CONSOLE="audio" width="200" height="100" autostart="TRUE">
</embed>

The above code will add the audio or video file to your page and will automatically run the file.

Note: The person viewing the page through a browser will need to have the appropriate software installed on their machine to run the file. For example, if you wish to stream a real media file the person will need to have real media installed on their computer so that their browser can play the file.

Instructions for Real Media Files:

A. Create .rm or .ram file

1. Create a compressed RealMedia file (.RM).
2. Open the free RealProducer software (obtainable from the link below).
3. Open your audio or video file from this program and select an adequate compression setting for this file.

For this example, the RealMedia file will be named and saved as: Real_Media_File.rm

B. Create Realmedia Metafile

In order for a RealMedia file to be viewed on your Website, a RealAudio Metafile needs to be created.

For the example below, the RealAudio Metafile will be named and saved as: Real_Audio_Metafile.ram

The contents of this Real_Audio_Metafile.ram file would have the following line in it:
http://www.sitename.com/Real_Media_File.rm

NOTE: There is only a single line of coding within in this RealAudio Metafile. You must also press the ENTER key at the end of that line for this file to work.

C. Create Your HTML Page

An .HTML file needs to be created and must possess a link, within its source code, to the Real_Audio_Metafile.ram file. For this example, this web page will be named and saved as: webpage.html . This webpage.html can have the content in its source code (which can be entered through a text editor like Notepad:

<HTML><br>
<HEAD><TITLE>Streaming RealMedia Example</title></HEAD><br>
<BODY><br>
<A HREF="http://www.sitename.com/Real_Audio_Metafile.ram">Click on this link to see a streaming video.</A><br>
</BODY><br>
</HTML>

D. Upload your .rm, .ram and .html files

Please ensure that you upload the .RM file in “Binary” mode (via a FTP program). The .RAM and .HTML must be uploaded in “ASCII” or TEXT mode (via a FTP program). These files must be uploaded to your main WWW folder on your site.

E. Test your Real Audio or Real Video File on your Site
Before you test your real audio file/video, you may also want to make sure that you have RealPlayer installed on your computer. You can download the RealPlayer Software from here.

Test your Streaming RealAudio/RealVideo file by going to your web page (ex: http://www.sitename.com/Webpage.html)

Similarly when a user clicks on the link, the streaming file(s) begin to download if RealPlayer is installed on the user's computer. The RealPlayer begins playing after a few seconds; it does not need to wait for the entire file to be downloaded. Click here to download RealPlayer.

Here are some links to tutorials on http:// streaming media :

http://www.realnetworks.com/resources/contentdelivery/documentation/httpstream.html
http://www.microsoft.com/windows/windowsmedia/compare/WebServVStreamServ.aspx

How helpful was this article to you?


.: Powered by Lore 1.5.6
Visit Netfirms.com Web Hosting | Copyright © 1998 - 2009 Netfirms, Inc. All Rights Reserved.