Use Media Player to play media files in XHTML

Source: Internet
Author: User

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

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.