WindowsMediaPlayerActiveX properties and methods

1 Attribute / Method Name: Description:
 2  
. 3 URL: String // specified media position, the machine or network address 
. 4 uiMode: String; // player interface mode may be a Full, the Mini, None, Invisible 
. 5 the playState: Integer; // play status, 1 = stop, pause = 2, 3 = playback, is buffering = 6, 9 = connecting, 10 = ready 
6 enableContextMenu: Boolean; // enable / disable the right-click menu 
7 fullScreen: boolean; // displayed in full screen 
. 8  
. 9  
10 [controls] wmp.controls // player basic control 
. 11 controls.play; // player 
12 is controls.pause; // pause 
13controls.stop; // stop 
14 controls.currentPosition: Double ; // current progress 
15 controls.currentPositionString: String ; // this progress, the format string. The "00:23" 
16 controls.fastForward; // fast forward 
. 17 controls.fastReverse; // rewind 
18 is controls.next; // at a 
. 19 controls.previous; // upper one 
20 is  
21 is [Settings] WMP .settings // player basic settings 
22 is settings.volume: Integer; // volume, 0100 
23 issettings.autoStart: Boolean; // if AutoPlay 
24 settings.mute: Boolean; // if mute 
25 settings.playCount: Integer; // playbacks 
26 is  
27 [currentMedia] wmp.currentMedia // current media attributes 
28 currentMedia.duration : Double ; // media total length 
29 currentMedia.durationString: string ; // media total length of the string format. The "03:24" 
30 currentMedia.getItemInfo ( const  String ); //Get the current media information "Title" = media title, "Author" = Artists, "Copyright" = copyright information, "Description" = media content description, "Duration" = duration (seconds), "FileSize" = file size, " FileType "= file type," sourceURL "= original URL 
31 is currentMedia.setItemInfo ( const  String ); // set the name of the media attribute information 
32 currentMedia.name: String ; // with currentMedia.getItemInfo (" the Title ") 
33 is  
34 is [ currentPlaylist] wmp.currentPlaylist // current playlist attribute 
35 currentPlaylist.count: Integer; // current number of the media included in the playlist 
36 currentPlaylist.Item [Integer]; // Gets or sets the specified media program information, sub-attribute with which wmp .currentMedia

 

Guess you like

Origin www.cnblogs.com/shyw/p/11692712.html