Media Player Control
Player. Controls. Play (); play
Player. Controls. Stop (); stop
Player. Controls. Pause (); pause
Player. Controls. currentposition: returns the current time and position of the playback file (in seconds)
Player. Controls. currentpositionstring string in time format "0: 32"
Player. currentmedia. Duration returns the total length of the playback file (in seconds)
Player. currentmedia. durationstring Time Format String "4: 34"
Player. settings. Volume volume (0-100)
Player. settings. Balance channel, which can be used to control the stereo, left and right audio channels. However, the values are unclear.
Player. settings. Mute = s mute (S values: true and false)
Player. closedcaption. captioningid: ID of the container with subtitles displayed on the webpage
Player. closedcaption. samifilename subtitle file address
Player. playstate: Player status (3: Playing, 2: paused, 1: stopped)
Player. url sets the File Source
========================================================== ====================
Real Player Control
Player. doplay () playback
Player. dopause () pause
Player. dostop () Stop
Player. getlength () returns the total length of the playback file (in milliseconds)
Player. getposition () returns the current time and position of the playback file (in milliseconds)
Player. getplaystate () returns the player status (0: stopped, 1: connected, 2: buffered, 3: played, 4: paused, 5: searched)
Player. setposition (n) the time point jumps to n (n is measured in milliseconds)
Player. setvolume (n) sets the volume (N ranges from 0 to 100)
Player. setmute (s) Mute (S values: true and false)
Player. setfullscreen () Full Screen
Player. setsource () sets the File Source
====================================
Parameter meanings of Web player Windows Media Player web player
(The default value 0 indicates no.-1 or 1 indicates yes)
<Object classid = "CLSID: 22d6f312-b0f6-11d0-94ab-0080c74c7e95"
Id = "mediaplayer1" width = "286" Height = "225">
<Param name = "audiostream" value = "-1">
<Param name = "autosize" value = "-1">
<! -- Whether to automatically adjust the playback size -->
<Param name = "autostart" value = "-1">
<! -- Automatic playback? -->
<Param name = "animationatstart" value = "-1">
<Param name = "allowscan" value = "-1">
<Param name = "allowchangedisplaysize" value = "-1">
<Param name = "autorewind" value = "0">
<Param name = "balance" value = "0">
<! -- Left-right channel balance, leftmost-9640, rightmost 9640 -->
<Param name = "baseurl" value>
<Param name = "bufferingtime" value = "15">
<! -- Buffer time -->
<Param name = "captioningid" value>
<Param name = "clicktoplay" value = "-1">
<Param name = "cursortype" value = "0">
<Param name = "currentposition" value = "0">
<! -- The current playback progress-1 indicates that the current playback progress remains unchanged, and 0 indicates that the start time is
The Unit is seconds. For example, 10 indicates that playback starts from 10th seconds. The value must be-1.0 or greater than or equal to 0. -->
<Param name = "currentmarker" value = "0">
<Param name = "defaultframe" value>
<Param name = "displaybackcolor" value = "0">
<Param name = "displayforecolor" value = "16777215">
<Param name = "displaymode" value = "0">
<Param name = "displaysize" value = "0">
<! -- Video 1-50%, 0-100%, 2-200%, 3-Full Screen
The other values are processed as 0, and the decimal places are rounded to the nearest integer and followed by the preceding values -->
<Param name = "enabled" value = "-1">
<Param name = "enablecontextmenu" value = "-1">
<! -Right-click the menu and choose Menu Control>
<Param name = "enablepositioncontrols" value = "-1">
<Param name = "enablefullscreencontrols" value = "-1">
<Param name = "enabletracker" value = "-1">
<! -- Whether to allow pulling the playback progress bar to play anywhere -->
<Param name = "FILENAME" value = "/blog/01.wma"
Valuetype = "Ref">
<! -- Playback file address -->
<Param name = "invokeurls" value = "-1">
<Param name = "language" value = "-1">
<Param name = "mute" value = "0">
<! -- Mute or not -->
<Param name = "playcount" value = "10">
<! -- Indicates the number of replay times. If the value is 0, it indicates the number of replay times. -->
<Param name = "previewmode" value = "-1">
<Param name = "rate" value = "1">
<! -- Playback speed control. The value 1 indicates normal. decimals are allowed. -->
<Param name = "samistyle" value>
<! -- Sami style -->
<Param name = "samilang" value>
<! -- Sami language -->
<Param name = "samifilename" value>
<! -- Subtitle id -->
<Param name = "selectionstart" value = "-1">
<Param name = "selectionend" value = "-1">
<Param name = "sendopenstatechangeevents" value = "-1">
<Param name = "sendwarningevents" value = "-1">
<Param name = "senderrorevents" value = "-1">
<Param name = "sendkeyboardevents" value = "0">
<Param name = "sendmouseclickevents" value = "0">
<Param name = "sendmousemoveevents" value = "0">
<Param name = "sendplaystatechangeevents" value = "-1">
<Param name = "showcaptioning" value = "0">
<! -- Whether to display subtitles. It is a piece of black, and there will be a large piece of black below, which is generally not displayed -->
<Param name = "showcontrols" value = "-1">
<! -- Display control, such as playing, stopping, and pausing -->
<Param name = "showaudiocontrols" value = "-1">
<! -- Display volume control -->
<Param name = "showdisplay" value = "0">
<! -- Display program information, such as copyright -->
<Param name = "showgotobar" value = "0">
<! -- Enable context menu -->
<Param name = "showpositioncontrols" value = "-1">
<! -- Whether to display forward, backward, and list. If displayed, it is usually gray and uncontrollable. -->
<Param name = "showstatusbar" value = "-1">
<! -- Current playback information, indicating whether the video is being played, total playback time, and current playback time -->
<Param name = "showtracker" value = "-1">
<! -- Whether to display the current playback trace, that is, the current playback progress bar -->
<Param name = "transparentatstart" value = "-1">
<Param name = "videoborderwidth" value = "0">
<! -- The width of the display part. If the value is smaller than the video width, the minimum value is the video width, or the video width is increased to the specified value and the height is automatically increased. this change only changes the size of the black box around and does not change the video size -->
<Param name = "videobordercolor" value = "0">
<! -- Display the color of the black box, which is an RGB value. For example, FFFF00 is yellow. -->
<Param name = "videoborder3d" value = "0">
<Param name = "volume" value = "0">
<! -- Volume size. A negative value indicates the impairment of the current volume. The value automatically takes the absolute value. The maximum value is 0 and the minimum value is-9640. -->
<Param name = "windowlessvideo" value = "0">
<! -- If it is 0, full screen is allowed; otherwise, it can only be viewed in the window -->
</Object>
The above player is old-fashioned, version 6.4! The new player appeared after mediaplayer9.0. That is to say, it can be used normally only when 9.0 or more players are installed.
-------------------------------------------------------------------------------
The following is the new player code, which is much simpler than before:
<Object ID = "Player" Height = "64" width = "260"
Classid = "CLSID: 6bf52a52-394a-11d3-b153-00c04f79faa6">
<Param name = "autostart" value = "-1">
<! -- Automatic playback? -->
<Param name = "balance" value = "0">
<! -- Adjust the left-right channel balance and the old player code above -->
<Param name = "enabled" value = "-1">
<! -- Whether the player can be controlled by humans -->
<Param name = "enablecontextmenu" value = "-1">
<! -- Enable context menu -->
<Param name = "url" value = "/blog/1.wma">
<! -- Playback file address -->
<Param name = "playcount" value = "1">
<! -- Control the number of playbacks, which is an integer -->
<Param name = "rate" value = "1">
<! -- The playback speed is controlled. 1 is normal, and decimal places are allowed. -->
<Param name = "currentposition" value = "0">
<! -- Control settings: Current Position -->
<Param name = "currentmarker" value = "0">
<! -- Control settings: Current tag -->
<Param name = "defaultframe" value = "">
<! -- Display default frame -->
<Param name = "invokeurls" value = "0">
<! -- Script command setting: whether to call URL -->
<Param name = "baseurl" value = "">
<! -- Script command setting: called URL -->
<Param name = "stretchtofit" value = "0">
<! -- Scale up or not -->
<Param name = "volume" value = "50">
<! -- The default sound size is 0%-100%, and 50 is 50%. -->
<Param name = "mute" value = "0">
<! -- Mute or not -->
<Param name = "uimode" value = "mini">
<! -- Player 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 = "windowlessvideo" value = "0">
<! -- If it is 0, full screen is allowed; otherwise, it can only be viewed in the window -->
<Param name = "fullscreen" value = "0">
<! -- Whether to enable automatic full screen playback -->
<Param name = "enableerrordialogs" value = "-1">
<! -- Enable error prompt report -->
<Param name = "samistyle" value>
<! -- Sami style -->
<Param name = "samilang" value>
<! -- Sami language -->
<Param name = "samifilename" value>
<! -- Subtitle id -->
</Object>
Embedded RealOne Player
<Object ID = "rplayer"
Classid = "CLSID: CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"
Height = "100%" width = "100%">
<Param name = "_ extentx" value = "23627">
<Param name = "_ extenty" value = "15187">
<Param name = "autostart" value = "-1">
<Param name = "Shuffle" value = "0">
<Param name = "prefetch" value = "0">
<Param name = "nolabels" value = "0">
<Param name = "src"
Value = "http://www.blogerhome.com/address.asp? Num = 24009987 & id = 10019 ">
<Param name = "controls" value = "imagewindow">
<Param name = "console" value = "clip1">
<Param name = "loop" value = "0">
<Param name = "numloop" value = "0">
<Param name = "center" value = "0">
<Param name = "maintainaspect" value = "0">
<Param name = "backgroundcolor" value = "#000000">
</Object>
Embedded mediaplayer player
<Object ID = "mediaplayer" width = "478" Height = "300"
Codebase = "http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.
Cab # version = 6,1, 5,217 "type =" application/X-oleobject"
Standby = "loading Microsoft Windows Media Player components ..."
Classid = "CLSID: 22d6f312-b0f6-11d0-94ab-0080c74c7e95"
Viewastext>
<Param name = "displaybackcolor" value = "0">
<Param name = "displayforecolor" value = "16777215">
<Param name = "displaymode" value = "0">
<Param name = "displaysize" value = "-1">
<Param name = "FILENAME" value = "MMS: // www.webjx.com/video file .wmv">
<! -- Set the connection of the video to be played here -->
<Param name = "showcontrols" value = "0">
</Object>