First, let's talk about the object element.
Objects can be used to call different plug-ins on the webpage. The working principle is to use the property type and classid to call the registered components on the system.
We will mainly explain the functions of each attribute of the mediaplayer component.
<Object ID = "mediaplayer" classid = "CLSID: 6bf52a52-394a-11d3-b153-00c04f79faa6" Height = "640" width = "360">
<! -- Playback file address -->
<Param name = "url" value = "attachment/WMV/01.wmv">
<! -- Automatic playback? -->
<Param name = "autostart" value = "-1">
<! -- Adjust the left-right channel balance, the leftmost-9640, And the rightmost 9640 -->
<Param name = "balance" value = "0">
<! -- Whether the player can be controlled by humans -->
<Param name = "enabled" value = "-1">
<! -- Enable context menu -->
<Param name = "enablecontextmenu" value = "-1">
<! -- Control the number of playbacks, which is an integer -->
<Param name = "playcount" value = "1">
<! -- The playback speed is controlled. 1 is normal, and decimal places are allowed. -->
<Param name = "rate" value = "1">
<! -- Control settings: Current Position -->
<Param name = "currentposition" value = "0">
<! -- Control settings: Current tag -->
<Param name = "currentmarker" value = "0">
<! -- Display default frame -->
<Param name = "defaultframe" value = "">
<! -- Script command setting: whether to call URL -->
<Param name = "invokeurls" value = "0">
<! -- Script command setting: called URL -->
<Param name = "baseurl" value = "">
<! -- Scale up or not -->
<Param name = "stretchtofit" value = "0">
<! -- The default sound size is 0%-100%, and 50 is 50%. -->
<Param name = "volume" value = "50">
<! -- Mute or not -->
<Param name = "mute" value = "0">
<! -- Display mode: full display all; Mini is the most simplified; none does not show the playback control, only the video window is displayed; invisible does not show all -->
<Param name = "uimode" value = "NONE">
<! -- If it is 0, full screen is allowed; otherwise, it can only be viewed in the window -->
<Param name = "windowlessvideo" value = "0">
<! -- Whether to enable automatic full screen playback -->
<Param name = "fullscreen" value = "0">
<! -- Enable error prompt report -->
<Param name = "enableerrordialogs" value = "-1">
<! -- Sami style -->
<Param name = "samistyle" value>
<! -- Sami language -->
<Param name = "samilang" value>
<! -- Subtitle id -->
<Param name = "samifilename" value>
</Object>
Source code download: http://files.cnblogs.com/project/MediaPlayer_Code.7z