How do I set up streaming video or music?

 

Many people have questions about media steaming support for their sites. Unless you have a dedicated server, StretchHost supports only "HTTP Streaming" which is real player, quicktime, and windows media player.

After you encode your media files, there are two more steps in preparing your content for streaming from a Web server. You must create Windows Media metafiles with .wax, .wvx, or .asx file name extensions and add tags to your HTML files. The HTML tag points the end user's browser to the metafile, which points Windows Media Player to the content, the Windows Media file. A metafile must be used to reference the media because a direct reference to the media in an HTML tag will cause most browsers to attempt to download the media rather than stream it.

To create a Windows Media metafile:

Open a text editor, such as Microsoft Notepad. Type the following metafile script, replacing the URL with that of your media. Reference the media just as you would any other Web file.





You can place the metafile in the same folder as that of your media. If you do so, you can use a relative path, which is simply the name of the file. The REF line would look like this:

Save the text file, using the name of your media file followed by the .wvx extension if the metafile points to a file with a .wmv extension, or .wax if the metafile points to a file with a .wma extension, such as YourFile.wvx. The file name extension .asx was used in previous versions of Windows Media Technologies. To add a tag to an HTML file Using a text editor such as Microsoft Notepad, open the Web page that you want to add the reference to the media to. Add the URL of the metafile. For example:



Play this Windows Media file:

YourFile


Copy the Windows Media files (with .wma, .wax, .wmv, and .wvx file name extensions) to your Web server. When an end user clicks the reference on the Web page, the metafile is downloaded and Windows Media Player opens. Windows Media Player opens the metafile, and then opens and plays the Windows Media file from your Web server.

 

  • 3 Users Found This Useful
Was this answer helpful?

Related Articles

Can I use my account and my site even though my domain name hasn't propagated yet?

Yes, you can use your website without a domain name (requires hosting). We provide you a...

What is my home directory?

Most of our hosting is Linux based. In this case, the home directory is the entire directory...

Why do I see a suspended.page folder?

All reseller accounts are setup with a folder named suspended.page in yourpublic_html...

Temporary URL

The temporary URL is used when your domain name is not working. Here is an example of the...

3rd Party Scripts, common problems

Fantastico Installation Problems:If Fantastico says you cannot install more than one script to...

Powered by WHMCompleteSolution