How to Embed Codes in Media Player
An embedded media player can includes codes within the HTML that determine how the embedded media player behaves. For example, within the HTML code you can direct the video player to show the video controls or not show the controls. You also are able to use embed codes to choose whether you want the embedded video to start automatically or start only when the "Play" button is clicked.
Instructions
-
-
1
Log in to your Web server and click on the page where the media player and embedded codes will appear.
-
2
Insert the following media player embed code:
<OBJECT ID="MediaPlayer" WIDTH="300" HEIGHT="200" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
STANDBY="Loading Windows Media Player components..." TYPE="application/x-oleobject">
<PARAM NAME="FileName" VALUE="/videofolder/video.wmv">
<PARAM name="ShowControls" VALUE="false">
<param name="ShowStatusBar" value="false">
<PARAM name="ShowDisplay" VALUE="false">
<PARAM name="autostart" VALUE="false">
<EMBED TYPE="application/x-mplayer2" SRC="/videofolder/video.wmv" NAME="MediaPlayer"
WIDTH="192" HEIGHT="190" ShowControls="1" ShowStatusBar="0" ShowDisplay="0" autostart="0"> </EMBED>
</OBJECT>
-
-
3
Delete both instances of "/videofolder/video.wmv" and replace these file paths with the actual file path for the video you want to play in the embedded media player.
-
4
Choose what you want for the included embed codes to do. In this code, "False" means the media player will not perform a function and "True" means that it will. Look through the four lines in the code that end with "false." These lines include instructions to the media player about what the code should do. If you want the code to complete the action in the line, change "false to "true."
-
5
Click "Publish." You have now embedded codes in a media player.
-
1