Share via


Windows Media Player 11 SDK Player.currentPlaylist 

Windows Media Player SDK banner art

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

Previous Next