Embed The WMV File To Play With The Windows Media Player On A Webpage

One of the most popular and used video codec, the WMV (Windows Video Format) was developed and designed by Microsoft. This popular codec supports WMV Image and Screen, Internet Applications and is considered to be mandatory for Blu-Ray Discs and HD DVD. Other than this it also provides support to the PlaysForSure certified devices and online stores. The WMV codec is the only codec that is supported by the Silverlight Platform from Microsoft.

Users of Windows Operating Systems can easily create a WMV coded media file using the Windows Movie Maker. The Movie Maker comes preinstalled in the Vista version of Windows OS and can be downloaded for free for Windows 7. Another possibility is to encode the video in the WMV format using the Windows Media Encoder. You will also find various other editing applications that support WMV.

Windows Media Video files can be uploaded and shared with your friends via some of the popular networking sites like Facebook, Twitter, MySpace, Orkut and lots more. It is also supported by most of the video hosting websites like YouTube, Daily Motion, Metacafe and lots more.

Some of the bloggers and web masters would want to host videos directly from their own web pages and web server on a self hosted and managed website. The web masters prefer sharing videos or hosting them without using the embedded codes. These codes act as hindrances and restrict the resolution, length, size and loads of other criteria’s.

WMV Videos can also be embedded inline on to a webpage using certain codes. It further allows visitors or users of the web page to perform online streaming of the videos and simultaneously enjoy watching them. In order to build an embedded code for the WMV video which can be directly viewed from any website please follow the following steps given below.

<object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" width="480" height="360" standby="Loading Windows Media Player components…" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,7,1112">
<param value="http://www.domainname.tld/filaname.wmv">
<param value="true">
<param value="true">
<param value="2">
<param value="true">
<param value="true">
<param value="false">
<param value="1">
<param value="1">
<param value="0">

<embed src="http://www.domainname.tld/filaname.wmv" autostart="1" showstatusbar="1" showdisplay="1" showcontrols="1" loop="0" videoborder3d="0" pluginspage="http://www.microsoft.com/Windows/MediaPlayer/" width="480" height="360"></embed>
</object>

Each of the embedded players is defined as <object> declaration. It helps to clarify the version of the player that needs to be called. There are a lot of parameters used in the code mentioned above. The parameter “File Name” specifies the video files location. The remaining other parameters are optional and they basically define how the player should display or behave. It also helps in some other functions like automatically playing the clip as soon as it is buffered. Displaying useful information like the name of the file, file length, size and other attributes is also dependent on some of the parameters.

There are certain things that need to be kept in mind while installing or using this player codec. The height of the player needs to be a minimum forty six pixels larger than the resolution of the movie if the player has the Control Bar enabled.

The status bar requires a height of around 26 pixels. It is necessary because it shows the process of buffering and the playback status of the video clip. For example, any video having a height of 360 will require height reference ranging from 386 – 406 pixels.

1 COMMENT

LEAVE A REPLY