STREAMCANADA.com
International Web Casting Services
canada.gif (293 bytes)australia.gif (360 bytes)bulgaria.gif (205 bytes)india.gif (249 bytes)finland.gif (205 bytes)germany.gif (213 bytes)guinea.gif (232 bytes)
HomeAbout UsServicesSupportPartners
How To Embed Windows Media Into A Web Page

Embedding streaming media files directly into your web page can be easy with tools such as Microsoft Front Page 2002.  If you have Microsoft Front Page 2002 and don't yet have the new media add-in, you can download here.

Size Mircosoft Front Page 2002 Streaming Media Addin 
Time 1min @ 56k

Here is some sample HTML code to embed the Microsoft Media Player directly into your web page.
Just use the following OBJECT/EMBED tag in your Web page:

<OBJECT ID="MediaPlayer" WIDTH="320" HEIGHT="240" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE="
http://media.streamcanada.com/yourlogin/media.wmv">
<PARAM NAME="autostart" VALUE="1">
<PARAM NAME="showcontrols" VALUE="0">
<EMBED TYPE="application/x-mplayer2"
SRC="
http://media.streamcanada.com/yourlogin/media.wmv
"
WIDTH="320"
HEIGHT="240"
AUTOSTART="1"
SHOWCONTROLS="0">
</EMBED>
</OBJECT>

The "type" attribute lets the browser know which plug-in to use to play the media. The "src" attribute tells the plug-in what media to play and where it resides. The "src" attribute can be the StreamCanada path to your media, an ".asx" reference file, or the mms path to the media. The "height" and "width" attributes are the dimensions of your media. If the media is audio only be sure to set the "height" and "width" to at least 2x2 or it may not work in all browsers. With attributes whose value can be “true” or "false" a "1" is used for "true" and a "0" for "false". The "autostart" attribute determines whether the clip starts playing automatically or not. The "showcontrols" attribute determines if the media controls are available to the viewer.

The reason for the use of both the OBJECT and EMBED tag is to insure functionality in all browsers.

Tip: If you set the "showcontrols" attribute to "1", be sure to add 44 to the "height" attribute. This will prevent to distortion of your video.

For further detail instructions on working with embedding your Microsoft Media Player into your web site, please click here.
 


Online Support 24/7

Call-Back Request