Properties and methods of the Windows Media Player control (C #)

Source: Internet
Author: User
Property/Method Name: Note:
[Basic attributes]  
URL: string; Specifies the media location, local address or network address
Uimode: string; Player interface mode, which can be full, Mini, none, invisible
Playstate: integer; Playing status, 1 = stopped, 2 = paused, 3 = playing, 6 = buffering, 9 = connecting, 10 = ready
Enablecontextmenu: Boolean; Enable/disable right-click 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, in string format. For example"
Controls. fastforward; Fast forward
Controls. fastreverse; Quick Return
Controls. Next; Next song
Controls. Previous; Last Song
[Settings] WMP. settings // basic player settings
Settings. Volume: integer; Volume, 0-100
Settings. autostart: Boolean; Automatic playback?
Settings. Mute: Boolean; Mute?
Settings. playcount: integer; Playback times
[Currentmedia] WMP. currentmedia // current media attribute
Currentmedia. Duration: Double; Total media Length
Currentmedia. durationstring: string; The total length of the media, in string format. For example"
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
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]; Obtains or sets the media information of a specified project. Its Attributes are the same as those of WMP. currentmedia.
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.