Share via


PlaylistCollection Object

[The feature associated with this page, Windows Media Player SDK, is a legacy feature. It has been superseded by MediaPlayer. MediaPlayer has been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use MediaPlayer instead of Windows Media Player SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The PlaylistCollection object provides a way to organize your playlists.

The PlaylistCollection object supports the following methods.

Method Description
getAll Retrieves a PlaylistArray object containing all the playlists in the library.
getByName Retrieves a PlaylistArray object containing playlists with the specified name, if any exist.
importPlaylist Adds a static playlist to the library.
isDeleted Retrieves a value indicating whether the specified playlist is in the deleted items folder.
newPlaylist Creates a new playlist in the library.
remove Removes a playlist from the library.
setDeleted Moves a playlist to the deleted items folder.

 

The PlaylistCollection object is accessed through the following property.

Object Property
Player playlistCollection

 

See also

Object Model Reference for Scripting