Create the desired movie or sound.
In your (X)HTML document, type <object classid="clsid:6bf52a52-394a-11d3-b153-00c04f79faa6" id="player".
Next type width="w" height="h", where w and h are the size in pixels of the media player that you'd like to embed.
Type > to complete the initial object tag.
To tell the player where the media file is, type <param name="url" value="movie.wmv">
, where movie.wmv
is the name and extension of the movie file.
Figure 18.42. Microsoft recommends using the object element in a non-standard way and the non-standard embed element.
If desired, you can type <param name="autostart" value="false"> in order to keep the file from playing automatically. The default is TRue.
If desired, you can type <param name="showcontrols" value="false"> to hide the play, rewind and other control buttons. The default value is true.
For browsers besides Internet Explorer, type <embed type="application/xmplayer2" id="MediaPlayer"
to tell them what to expect.
Figure 18.43. The Windows Media Player is embedded in the page.
Next type src="http://www.movie.wmv", where movie.wmv is the location, name, and extension of the movie file.
Type width="w" height="h">, where w and h are the dimensions in pixels of your movie file.
If you want the movie to start playing automatically, type autostart="true".
If you want to hide the control buttons, type showcontrols="false".
Type /> to complete the embed element.