Player JS controls mediaplayer
<Object classid = "CLSID: 22d6f312-b0f6-11d0-94ab-0080c74c7e95" id = "MP" width = "300 ″
Height = "240">
<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, left-9640, and right-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 playback progress remains unchanged. 0 indicates that the start unit is seconds. For example, 10 indicates that the 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">
<! -Videos 1-50%, 0-100%, 2-200%, and 3-Other full screen values are processed as 0, decimals 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 "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 = "http://17gb.com/music/21.mp3" valuetype =" Ref ">
<Param name = "invokeurls" value = "-1">
<Param name = "language" value = "-1">
<Param name = "mute" value = "0">
<! -Mute or not->
<Param name = "playcount" value = "10">
<! -Repeated playback times. 0 indicates always repeated playback.->
<Param name = "previewmode" value = "-1">
<Param name = "rate" value = "1">
<! -Playback speed: 1.0-2.0 times->
<Param name = "samilang" value>
<Param name = "samistyle" value>
<Param name = "samifilename" value>
<! -Select a song to play at the same time.->
<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">
<! -A box with arrows down below->
<Param name = "showpositioncontrols" value = "-1">
<! -Whether to display the 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 the video. Do 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, the minimum value is-9640, and the maximum value is 0->.
<Param name = "windowlessvideo" value = "0">
<! -If it is 0, full screen is allowed; otherwise, it can only be viewed in the window.->
</Object>
<Br>
<B> playback control: </B> <br>
Music switch:
<Input type = "button" onclick?mp.filename='sha.mp3 '"value =" you are wind, I am sand ">
<Input type = "button" onclick?mp.filename='bhance' "value =" white fox ">
<Input type = "button" onclick = "alert (MP. filename)" value = "current track">
<Br>
Playback control:
<Input type = "button" onclick = "MP. Play ()" value = "play">
<Input type = "button" onclick = "MP. Pause ()" value = "Suspend">
<Input type = "button" onclick = "MP. Pause (); MP. currentposition = 0" value = "stop">
<Br>
Channel Control:
<Input type = "button" onclick = "MP. Balance = 9640" value = "left channel">
<Input type = "button" onclick = "MP. Balance = 0" value = "stereo">
<Input type = "button" onclick = "MP. Balance =-9640" value = "right channel">
<Input type = "button" onclick = "alert (MP. Balance)" value = "current state">
<Br>
Progress control:
<Input type = "button" onclick = "MP. currentposition = 0" value = "return to start">
<Input type = "button" onclick = "MP. currentposition + = 60" value = "Fast forward for one minute">
<Input type = "button" onclick = "MP. currentposition-= 60" value = "One minute">
<Input type = "button" onclick = "alert (MP. duration)" value = "total length">
<Input type = "button" onclick = "alert (MP. currentposition)" value = "current progress">
<Br>
Volume Control:
<Script language = "JavaScript">
Function setvolume (Num)
{
VaR MP = Document. getelementbyid ("MP ")
Tnum = mp. Volume + num
If (tnum> 0) {tnum = 0}
If (tnum <-10000) {tnum =-10000}
MP. volume = tnum
}
</SCRIPT>
<Input type = "button" onclick = "setvolume (200)" value = "volume +">
<Input type = "button" onclick = "setvolume (-200)" value = "volume-">
<Input type = "button" onclick = "MP. volume = 0" value = "Max">
<Input type = "button" onclick = "MP. volume =-10000" value = "min">
<Input type = "button" onclick = "MP. Mute =-1" value = "mute">
<Input type = "button" onclick = "MP. Mute = 0" value = "cancel mute">
<Input type = "button" onclick = "alert (MP. Volume)" value = "current volume">
<Br>
Speed control:
<Input type = "button" onclick = "If (MP. rate <2) {MP. rate + = 0.1}" value = "acceleration">
<Input type = "button" onclick = "If (MP. rate> 0.2) {MP. Rate-= 0.1}" value = "slowdown">
<Input type = "button" onclick = "MP. Rate = 1" value = "normal">
<Input type = "button" onclick = "alert (MP. Rate)" value = "current speed">
<Br> <B> interface control: </B> <br>
Subtitle control:
<Input type = "button" onclick = "MP. showcaptioning =-1" value = "">
<Input type = "button" onclick = "MP. showcaptioning = 0" value = "hide">
<Input type = "button" onclick = "alert (MP. showcaptioning)" value = "current state">
<Br>
Volume Control:
<Input type = "button" onclick = "MP. showaudiocontrols =-1" value = "">
<Input type = "button" onclick = "MP. showaudiocontrols = 0" value = "hide">
<Input type = "button" onclick = "alert (MP. showaudiocontrols)" value = "current state">
<Br>
Playback control:
<Input type = "button" onclick = "MP. showcontrols =-1" value = "show">
<Input type = "button" onclick = "MP. showcontrols = 0" value = "hide">
<Input type = "button" onclick = "alert (MP. showcontrols)" value = "current state">
<Br>
Media Information:
<Input type = "button" onclick = "MP. showdisplay =-1" value = "display">
<Input type = "button" onclick = "MP. showdisplay = 0" value = "hide">
<Input type = "button" onclick = "alert (MP. showdisplay)" value = "current state">
<Br>
Gotobar:
<Input type = "button" onclick = "MP. showgotobar =-1" value = "show">
<Input type = "button" onclick = "MP. showgotobar = 0" value = "hide">
<Input type = "button" onclick = "alert (MP. showgotobar)" value = "current state">
<Br>
Status Bar:
<Input type = "button" onclick = "MP. showstatusbar =-1" value = "show">
<Input type = "button" onclick = "MP. showstatusbar = 0" value = "hide">
<Input type = "button" onclick = "alert (MP. showstatusbar)" value = "current state">
<Br>
Tracking:
<Input type = "button" onclick = "MP. showtracker =-1" value = "show">
<Input type = "button" onclick = "MP. showtracker = 0" value = "hide">
<Input type = "button" onclick = "alert (MP. showtracker)" value = "current state">
<Br>
Location Control:
<Input type = "button" onclick = "MP. showpositioncontrols =-1" value = "">
<Input type = "button" onclick = "MP. showpositioncontrols = 0" value = "hide">
<Input type = "button" onclick = "alert (MP. showpositioncontrols)" value = "current state">
<Br>
Window Scaling:
<Input type = "button" onclick = "MP. displaysize = 1" value = "50%">
<Input type = "button" onclick = "MP. displaysize = 0" value = "100%">
<Input type = "button" onclick = "MP. displaysize = 2" value = "200%">
<Input type = "button" onclick = "MP. displaysize = 3" value = "full screen">
<Input type = "button" onclick = "alert (MP. displaysize)" value = "current state">