In Web player windowsmediaplay, playback starts at the specified time of wmv and stops at the specified time.
Source: Internet
Author: User
1. mediaplay player Insertion Method
Insert-media-ActiveX
Property settings:
Classid: CLSID: 6bf52a52-394a-11d3-b153-00c04f79faa6
Parameters:
URL: file path name
Playcount: integer
Autostart: automatic playback: 1 no playback: 0
Fullscreen: whether to enable automatic full screen 0 not 1 is
Volume: 0-100
Code
1. Window. Media. Player
<Object classid = "CLSID: 22d6f312-b0f6-11d0-94ab-0080c74c7e95" id = "mediaplayer1" width = "286" Height = "225">
<Param name = "audiostream" value = "-1">
<Param name = "autosize" value = "-1">
<Param name = "autostart" value = "-1">
<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">
<Param name = "baseurl" value>
<Param name = "bufferingtime" value = "5">
<Param name = "captioningid" value>
<Param name = "clicktoplay" value = "-1">
<Param name = "cursortype" value = "0">
<Param name = "currentposition" value = "-1">
<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">
<Param name = "enabled" value = "-1">
<Param name = "enablecontextmenu" value = "-1">
<Param name = "enablepositioncontrols" value = "-1">
<Param name = "enablefullscreencontrols" value = "0">
<Param name = "enabletracker" value = "-1">
<Param name = "FILENAME" value = "Your multimedia file name">
<Param name = "invokeurls" value = "-1">
<Param name = "language" value = "-1">
<Param name = "mute" value = "0">
<Param name = "playcount" value = "1">
<Param name = "previewmode" value = "0">
<Param name = "rate" value = "1">
<Param name = "samilang" value>
<Param name = "samistyle" value>
<Param name = "samifilename" value>
<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">
<Param name = "showcontrols" value = "-1">
<Param name = "showaudiocontrols" value = "-1">
<Param name = "showdisplay" value = "0">
<Param name = "showgotobar" value = "0">
<Param name = "showpositioncontrols" value = "-1">
<Param name = "showstatusbar" value = "0">
<Param name = "showtracker" value = "-1">
<Param name = "transparentatstart" value = "0">
<Param name = "videoborderwidth" value = "0">
<Param name = "videobordercolor" value = "0">
<Param name = "videoborder3d" value = "0">
<Param name = "volume" value = "-320">
<Param name = "windowlessvideo" value = "0">
</Object>
How to Use selectionstart selectionend in it. Can we control the WMV from a specified frame to the end of a specified frame.
Thank you!
--------------------------------------
<Param name = "currentposition" value = "200">
Set the start time of the video.
Page onload = setpause ()
Function setpause (){
SetTimeout ("Pause ()", 1000 );
}
Function pause (){
VaR current_time = Document. getelementbyid ("mediaplayer1"). Controls. currentposition;
If (current_time> parseint ('192. 100 ')){
Toplay ();
} Else {
SetTimeout ("Pause ()", 1000 );
}
}
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.