Second Method: Direct Embed
The second method is to directly embed the video files into a website. This way is definitely more complex compared to the hyperlinking method, but in exchange, it is highly customizable, including the ability to change the width and height of the video as you please. The code for this is:
<OBJECT ID="MediaPlayer" WIDTH="192" HEIGHT="190" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..." TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE="videofilename.wmv">
<PARAM name="autostart" VALUE="false">
<PARAM name="ShowControls" VALUE="true">
<param name="ShowStatusBar" value="false">
<PARAM name="ShowDisplay" VALUE="false">
<EMBED TYPE="application/x-mplayer2" SRC="videofilename.wmv" NAME="MediaPlayer" WIDTH="192" HEIGHT="190" ShowControls="1" ShowStatusBar="0" ShowDisplay="0" autostart="0"> </EMBED> </OBJECT>
The basic direct embed method is customizable, in which several commands on the video are changeable. The customizable parts of this method are in ShowControls, ShowStatusBar, ShowDisplay, and autostart at the EMBED TYPE command.
Here are what will change depending how you customize it. Enabling means changing the value to 1, and disabling means changing the value to 0:
- ShowControls: This command displays pause, play, stop, full screen, and volume. If you change the value of ShowControls to 0, your video will have no command to display. If you set this to 0 and set the autostart to 0 too, the video will not run.
- ShowStatusBar: Used to show the current status bar. If enabled, a status bar will appear in the video which shows the current progress of buffering, and when finished, the timeline of the video.
- ShowDisplay: Enabling this will reveal file information, such as the name of the video.
- Autostart: When this command is enabled, the video will run as soon as the buffering is complete. If not activated, video embed will wait for the user’s input [play button].
+ Highly customizable according to your needs
+ Source is HTML code, easy to implement
+ Relatively long source code, some people may have trouble remembering the exact commands.