MIDI Studio logo
 

EMBED .WMV EXAMPLE 2
(Windows Media Player Video)
 


A .WMV file can be quite large in size. In this example a 40 MB file has been compressed to under 2 MB. This video was created with the lowest quality and size. Audio is FM stereo quality. Video will "stream" using progressive download feature. Right-click on the console in a blank spot. Select 'Properties' and you will see the type of compression that was used to create the file. The actual video size is 120 high, by 160 wide.  The player size has been adjust to accommodate this.

Following is the script used to play the video.  It must be placed on the page at the location you want it to appear.Notice that "playMedia" includes not only the file name and extension, but is preceded  by the location of the file.  In this case it is in a separate folder named "media" which was created off the folder this document is located in.  The first number has been set to "1" so that the video repeats only once.

Note the height of 250 and width of 250.  CAUTION: Internet Explorer will display the video in the entire space above the console. It is important to maintain the aspect ratio. For a 120 x 160 video the size we have chosen seems to work well. In Netscape.. the video will display in actual size, no matter which size you select for the player.. 

<script language="JavaScript" src="wmpCodeGen.js"></script>
<script language="JavaScript" type="text/javascript"> 
playMedia("media/S_Club_7-NeverHad.wmv",1,250,250) 
</script>

 
Please click the 'Back' button below to view other examples.




©2006 MidiStudio.com. All Rights Reserved.
Last Update: January 6, 2006
This site is owned, designed and produced by Les Gorven
dba Business Technologies & MIDI-Studio Publishing