JS controls web page WMP playback attributes

Source: Internet
Author: User

Play: mediaplayer. Play ()
Pause: mediaplayer. Pause ()
Location: mediaplayer. setcurrententry (lwhichentry)
Mediaplayer. Next ()
Mediaplayer. Previous ()
Loop: mediaplayer. playcount = 0
0: the clip plays repeatedly
1: once
Stop: mediaplayer. Stop ()
========================================
Allowchangedisplaysize returns or sets whether the end user can set the display size (logical type)
Allowscan returns or sets whether scanning is allowed (logical)
Animationatstart returns or sets whether to play an animation sequence (logical type) before the control starts playing)
Audiostream returns or sets the audio stream number (used for multi-audio stream editing, default:-1) (long integer)
Autorewind returns or sets whether to automatically repeat a media file after playback (logical)
Autosize returns or sets whether to automatically adjust the control size to adapt to the loaded media (logical type)
Autostart returns or sets whether to automatically start playing after loading a media file (logical)
Balance returns or sets the playing channel of the specified stereo media file (-10000 is the left channel, 10000 is the right channel, 0 is the stereo) (long integer)
Bandwidth returns or sets the bandwidth of the current file (long integer)
Baseurl returns the basic http url (string)
Bufferingcount: total buffer time for media file playback (long integer)
Bufferingprogress return buffer completion percentage (long integer)
Bufferingtime: the buffer time returned (double-precision)
Canpreview returns or sets whether the currently displayed clip can be previewed (logical)
Canscan returns or sets whether the current file supports fast forward or return (logical type)
Canseek returns or sets whether the current file can be searched and located at a certain time (logical)
Canseektomarkers returns or sets whether the file supports searching for tags (logical type)
Captioningid returns the name (string) of the frame or control displayed in the title)
Channeldescription returns the description of the radio station (string)
Channelname returns the name of the station (string)
Channelurl returns the location of the station metadata file (string)
Clicktoplay returns or sets whether the video can be paused or played by clicking an image (logical)
Clientid returns the unique identifier (string) of the client)
Codeccount returns the number of installable codecs files used (long integer)
Contactaddress: return the contact address (string) of the radio station)
Contactemail returns the contact email address (string) of the radio station)
Contactphone returns the contact number (string) of the radio station)
Creationdate: return the creation date (date type) of the clip)
Currentmarker returns or sets the current bookmarked number (long integer)
Currentposition returns or sets the current position of the clip (Double Precision)
Cursortype returns or sets the pointer type (long integer)
Defaultframe returns or sets the default target HTTP frame (string) of the control)
Displaybackcolor returns or sets the background color (ole_color value) of the display panel)
Displayforecolor returns or sets the foreground color (ole_color value) of the display panel)
Displaymode returns or sets whether to display the current position in seconds or frames (mpdisplaymodeconstants value) on the display panel)
Displaysize returns or sets the size of the image display window (mpdisplaysizeconstant value)
Duration returns or sets the playback time of a clip or clip (dual-precision)
Enablecontextmenu return or set whether to allow the use of context menu (logical)
Enabled returns or sets whether the control is available (logical)
Enablefullscreencontrols returns or sets whether full screen control is available (logical)
Enablepositioncontrols returns or sets whether location control is available (logical)
Enabletracker returns or sets whether the search bar control is available (logical)
Errorcode returns the current error Code (Long integer)
Errorcorrection returns the error correction type (long integer) of the current clip)
Errordescription returns the description (string) of the current error)
Filename returns or sets the name of the clip to be played (string)
Haserror indicates whether the control has an error (logical type)
Hasmultipleitems returns or sets whether the control contains content (logical) of multiple projects)
Imagesourceheight returns or sets the height of the original image (long integer) of the current clip)
Imagesourcewidth: returns or sets the width of the original image (long integer) of the current clip)
Invokeurls returns or sets whether the URL automatically sends the request (logical)
Isbroadcast returns or sets whether the source is broadcast (logical)
Isdurationvalid returns or sets whether the duration value is valid (logical)
Language returns or sets the language of the current region supported by the localization language (long integer)
Lostpackets returns the number of lost data packets (long integer)
Markercount returns the number of file bookmarks (long integer)
Mute returns or sets whether the control is playing the sound (logical)
Openstate returns the control content source status (long integer)
Playcount returns or sets the number of times a video clip is played (long integer)
Playstate returns the current operation status (long integer) of the control)
Previewmode returns or sets whether the control is in preview mode (logical)
Rate returns or sets the playback frame rate (Double Precision)
Readystate returns whether the control is ready (readystateconstant value)
Receivedpackets returns the number of received packets (long integer)
Predictionquality returns the percentage of data packets received in the last 30 seconds (long integer)
Recoveredpackets returns the number of converted data packets (long integer)
Samifilename returns or sets the closed-captioning file name (string)
Samilang returns or sets the closed captioning language (string)
Samistyle returns or sets the closed captioning style (string)
Selectionend: return or set the end position of the stream (double precision type)
Selectionstart returns or sets the starting position of the stream (double precision type)
Senderrorevents returns or sets whether the control sends an error event (logical)
Sendkeyboardevents returns or sets whether the control sends Keyboard Events (logical)
Sendmouseclickevents returns or sets whether the control sends a mouse click event (logical type)
Sendmousemoveevents returns or sets whether the control sends a mouse movement event (logical)
Sendopenstatechangeevents returns or sets whether the control sends an open status change event (logical type)
Sendplaystatechangeevents returns or sets whether the control sends a playback status change event (logical type)
Sendwarningevents returns or sets whether the control sends a warning event (logical)
Showaudiocontrols returns or sets whether to display audio control (logical)
Showcaptioning returns or sets whether to display Subtitles (logical type)
Showcontrols returns or sets whether the control panel is visible (logical)
Showdisplay returns or sets whether to display the display panel (logical)
Showgotobar returns or sets whether to display the jump bar (logical type)
Showpositioncontrols returns or sets whether to display location control (logical type)
Showstatusbar returns or sets whether to display the status bar (logical)
Showtracker returns or sets whether to display the search bar (logical type)
Sourcelink returns the path of the Content File (string)
Sourceprotocol returns the protocol used to receive data (long integer)
Streamcount returns the number of media frames (long integer)
Transparentatstart returns or sets whether the control is transparent (logical) before and after start playback)
Videoborder3d returns or sets whether the video border is displayed as 3D (logical)
Videobordercolor returns or sets the video border color (OLE _ color)
Videoborderwidth: returns or sets the video Border width (long integer)
Volume returns or sets the volume (long integer)
========================================================== ======
Mediaplayer attributes and Methods
Attribute/method name: Description:
[Basic attributes]
URL: string; specifies the media location, local or network address
Uimode: string; player interface mode, which can be full, Mini, none, invisible
Playstate: integer; playback status, 1 = stopped, 2 = paused, 3 = played, 6 = buffering, 9 = connected, 10 = ready
Enablecontextmenu: Boolean; enable/disable context menu
Fullscreen: Boolean; Whether to display in full screen
[Controls] WMP. Controls // basic player control
Controls. Play; play
Controls. Pause; pause
Controls. Stop; stop
Controls. currentposition: Double; current progress
Controls. currentpositionstring: string; current progress, string format. For example"
Controls. fastforward; Fast Forward
Controls. fastreverse; fast return
Controls. Next; next
Controls. Previous; previous Curve
[Settings] WMP. settings // basic player settings
Settings. Volume: integer; volume: 0-100
Settings. autostart: Boolean; Whether to play automatically
Settings. Mute: Boolean; mute
Settings. playcount: integer; number of playbacks
[Currentmedia] WMP. currentmedia // current media attribute
Currentmedia. Duration: Double; total media Length
Currentmedia. durationstring: string; total media length, in string format. For example"
Currentmedia. getiteminfo (const string); get current media information "title" = media title, "author" = artist, "Copyright" = copyright information, "Description" = media content description, "duration" = duration (seconds), "filesize" = file size, "filetype" = file type, "sourceurl" = original address
Currentmedia. setiteminfo (const string); set media information by attribute name
Currentmedia. Name: string; same as currentmedia. getiteminfo ("title ")
[Currentplaylist] WMP. currentplaylist // attributes of the current playlist
Currentplaylist. Count: integer; number of media contained in the current playlist
Currentplaylist. item [integer]; gets or sets the media information of the specified project. Its subattributes are the same as that of WMP. currentmedia.

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.