Found 1ting code, lyrics Sync code, really good, the basic control, after finishing want to get down
Play: Mediaplayer.play ()
Pause: Mediaplayer.pause ()
Location: Mediaplayer.setcurrententry (Lwhichentry)
Mediaplayer.next ()
Mediaplayer.previous ()
Cycle: 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 the scan (logical type) is allowed
Animationatstart Returns or sets whether the control plays an animation sequence (logical type) before it starts playing.
Audiostream Returns or sets the number of audio streams (clips for multiple audio streams, default to-1) (long int)
Autorewind Returns or sets whether the media file is automatically wrapped after playback (logical type)
AutoSize Returns or sets whether the control is automatically resized to fit the loaded media (logical type)
AutoStart Returns or sets whether the playback automatically starts after the media file is loaded (logical type)
Balance Returns or sets the playback channel for the specified stereo media file (-10000 is left, 10000 is right, and 0 is stereo) (long int)
Bandwidth Returns or sets the current file's bandwidth (Long integer)
BaseURL returns the basic HTTP URL (String)
Bufferingcount returns the total time of the buffer when playback of the media file (Long integer)
BufferingProgress returns the percentage of buffer completion (Long integer)
Bufferingtime return buffer time (double)
Canpreview Returns or sets whether the currently displayed clip can be previewed (logical type)
Canscan Returns or sets whether the current file supports fast forward or rewind (logical type)
CanSeek Returns or sets whether the current file can be searched and positioned to a certain time (logical type)
Canseektomarkers Returns or sets whether the file supports search to tags (logical type)
Captioningid returns the name (string) of the frame or control that is displayed in the caption
Channeldescription Return to Radio description (string)
ChannelName returns the name of the radio (string)
Channelurl back to the station's metafile location (string)
Clicktoplay Returns or sets whether clips can be paused or played by clicking on the image (logical type)
ClientID returns a client-only identifier (string)
Codeccount returns the number of installable codecs used by the file (Long integer)
Contactaddress return to radio contact address (string)
Contactemail return to radio contact email address (string)
Contactphone Return Radio Contact number (string)
CreationDate returns the clip's creation date (date type)
Currentmarker Returns or sets the current bookmark number (Long integer)
CurrentPosition Returns or sets the current position of the clip (double)
CursorType Returns or sets the type of pointer (Long Integer)
Defaultframe Returns or sets the default destination Http frame (string) for a control
Displaybackcolor Returns or sets the background color of the display panel (ole_color value)
Displayforecolor Returns or sets the foreground color of the display panel (ole_color value)
DisplayMode Returns or sets whether the display panel displays the current position in seconds or frames (mpdisplaymodeconstants value)
Displaysize Returns or sets the size of the Image display window (mpdisplaysizeconstant value)
Duration Returns or sets the playback time of a clip clip (double)
Enablecontextmenu Returns or sets whether the context menu (logical type) is allowed to be used
Enabled Returns or sets whether the control is available (logical type)
Enablefullscreencontrols Returns or sets whether full screen control is available (logical type)
Enablepositioncontrols Returns or sets whether position control is available (logical type)
Enabletracker Returns or sets whether the search bar control is available (logical type)
ErrorCode returns the current error code (Long Integer)
Errorcorrection returns the type of error correction for the current clip (Long Integer)
ErrorDescription returns the description of the current error (string)
FileName Returns or sets the file name (string) of the clip to play
Haserror returns whether the control has an error (logical type)
Hasmultipleitems Returns or sets whether the control contains the contents of some multiple items (logical type)
Imagesourceheight Returns or sets the original image height of the current clip (Long Integer)
Imagesourcewidth Returns or sets the original image width of the current clip (Long Integer)
Invokeurls Returns or sets whether the URL automatically sends the request (logical type)
Isbroadcast Returns or sets whether the source is broadcast (logical type)
Isdurationvalid Returns or sets whether the duration value is valid (logical type)
Language Returns or sets the current locale language (Long integer) for localized language support
Lostpackets returns the number of missing packets (Long integer)
Markercount returns the number of file bookmarks (long int)
Mute Returns or sets whether the control plays a sound (logical type)
Openstate returns the content source state of the control (Long Integer)
Playcount Returns or sets the number of times a clip is played (long int)
Playstate returns the current operating state of the control (Long Integer)
PreviewMode Returns or sets whether the control is in preview mode (logical type)
Rate return or set playback frame frequency (double)
ReadyState returns whether the control is ready (readystateconstant value)
Receivedpackets returns the number of packets received (long int)
Receptionquality returns the percentage of packets received in the last 30 seconds (Long integer)
Recoveredpackets returns the number of converted 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 Returns or sets the end position of the stream (double)
SelectionStart Returns or sets the starting position of the stream (double)
Senderrorevents Returns or sets whether the control sends error events (logical type)
Sendkeyboardevents Returns or sets whether the control sends keyboard events (logical type)
Sendmouseclickevents Returns or sets whether the control sends a mouse click event (logical type)
Sendmousemoveevents Returns or sets whether the control sends mouse movement events (logical type)
Sendopenstatechangeevents Returns or sets whether the control sends open state change events (logical type)
Sendplaystatechangeevents Returns or sets whether the control sends playback state change events (logical type)
Sendwarningevents Returns or sets whether the control sends a warning event (logical type)
Showaudiocontrols Returns or sets whether to display audio control (logical type)
Showcaptioning Returns or sets whether captions are displayed (logical type)
Showcontrols Returns or sets whether the control Panel is visible (logical type)
Showdisplay Returns or sets whether the display panel (logical type) is displayed
Showgotobar Returns or sets whether a jump bar (logical type) is displayed
Showpositioncontrols Returns or sets whether position control is displayed (logical type)
ShowStatusBar Returns or sets whether the status bar (logical type) is displayed
Showtracker Returns or sets whether the search bar (logical type) is displayed
Sourcelink returns the path to the content file (string)
Sourceprotocol returns the protocol used to receive data (long int)
Streamcount returns the number of media frames (long int)
Transparentatstart Returns or sets whether the control is transparent (logical) before and after the start of playback
Videoborder3d Returns or sets whether the video border is displayed as a 3D effect (logical type)
Videobordercolor Returns or sets the color of the video border (ole_ color)
Videoborderwidth Returns or sets the width of the video border (Long integer)
Volume Returns or sets the volume (Long Integer)
==============================================
MediaPlayer Properties and methods
Attribute/Method Name: Description:
[Basic Properties]
url:string; Specify media location, native or network address
uimode:string; Player interface mode, available for full, Mini, None, invisible
Playstate:integer; Playback status, 1 = stop, 2 = pause, 3= playback, 6 = buffering, 9 = connecting, 10 = Ready
Enablecontextmenu:boolean; Enable/Disable right-click menu
Fullscreen:boolean; Whether to display full screen
[Controls] Wmp.controls//Player Basic control
Controls.play; Play
Controls.pause; Time out
Controls.stop; Stop it
controls.currentPosition:double; Current progress
controls.currentPositionString:string; Current progress, string format. such as "00:23"
Controls.fastforward; Fast Forward
Controls.fastreverse; Get back!
Controls.next; Next song
controls.previous; A song.
[Settings] Wmp.settings//Player basic settings
Settings.volume:integer; Volume, 0-100
Settings.autoStart:Boolean; Whether to play automatically
Settings.mute:Boolean; Is Mute
Settings.playCount:integer; Number of plays
[Currentmedia] Wmp.currentmedia//Current Media properties
currentMedia.duration:double; Total media length
currentMedia.durationString:string; Total media length, string format. such as "03:24"
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); Setting up media information by property name
currentMedia.name:string; Same Currentmedia.getiteminfo ("Title")
[Currentplaylist] Wmp.currentplaylist//Current Playlist properties
CurrentPlaylist.count:integer; The number of media included in the current playlist
Currentplaylist.item[integer]; Gets or sets the specified project media information whose child properties are the same as the Wmp.currentmedia
Article references from:
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.