Common Properties and methods called by Windows Media Player on the page

Source: Internet
Author: User

<Object
Classid = "CLSID: 6bf52a52-394a-11d3-b153-00c04f79faa6"
Type = "application/X-oleobject" id = "WMP" width = "0" Height = "0"
Style = "width: 0px; Height: 0px;"> </Object>
// Basic attributes
WMP. url: string; // specifies the media location, local address or network address
WMP. uimode: string; // player interface mode, which can be full, Mini, none, invisible
WMP. playstate: integer; // playback status, 1 = stopped, 2 = paused, 3 = playing, 6 = buffering, 9 = connecting, 10 = ready
WMP. enablecontextmenu: Boolean; // enable/disable the context menu
WMP. fullscreen: Boolean; // whether to display in full screen
// Player Common Control
WMP. Controls. Play; // play
WMP. Controls. Pause; // pause
WMP. Controls. Stop; // stop
WMP. Controls. currentposition: Double; // current progress
WMP. Controls. currentpositionstring: string; // current progress, string format. For example"
WMP. Controls. fastforward; // fast forward
WMP. Controls. fastreverse; // return quickly
WMP. Controls. Next; // The next song
WMP. Controls. Previous; // previous line
// Player common settings
WMP. settings. Volume: integer; // volume, 0-100
WMP. settings. autostart: Boolean; // whether to play automatically
WMP. settings. Mute: Boolean; // whether to mute
WMP. settings. playcount: integer; // Number of playbacks
WMP. settings. Balance =-100; // (left)
WMP. settings. Balance = 100; // (right)
WMP. settings. Balance = 0; // (full voice)
// Common current media attributes
WMP. currentmedia. Duration: Double; // total media Length
WMP. currentmedia. durationstring: string; // total media length, in string format. For example"
WMP. currentmedia. getiteminfo (const string); // obtain the 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
Wmp. currentMedia. setItemInfo (const string); // set media information by attribute name
Wmp. currentMedia. name: string; // same as currentMedia. getItemInfo ("Title ")
Wmp. network. bufferingProgress; // buffer percentage
Wmp. network. downloadProgress; // download percentage

Related Article

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.