Windows Media Player 11 SDK Player.currentPlaylistÂ
Previous | Next |
Player.currentPlaylist
The currentPlaylist property specifies or retrieves the current Playlist object.
Syntax
Possible Values
This property is a read/write Playlist object.
Remarks
If the Settings.autoStart property is true, playback begins automatically whenever you set currentPlaylist.
This property takes a Playlist object, which can be acquired in several ways, such as by calling PlaylistArray**.item** or PlaylistCollection.newPlaylist. To load a Playlist item using a file name, set the URL property or use Player.newPlaylist.
Example Code
The following JScript example retrieves the first playlist in the library. It then uses currentPlaylist to make the retrieved playlist the current playlist, and then to display the name of the current playlist. The Player object was created with ID = "Player".
the library
Requirements
Version: Windows Media Player version 7.0 or later.
Library: Use wmp.dll.
See Also
- Player Object
- Player.currentPlaylist
- Player.newPlaylist
- Playlist Object
- PlaylistArray.item
- PlaylistCollection.newPlaylist
- Settings.autoStart
Previous | Next |