Playlist.removeItem method
[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 removeItem method removes the specified item from the playlist.
Syntax
Playlist.removeItem(
item
)
Parameters
-
item [in]
-
Media object to be removed.
Return value
This method does not return a value.
Remarks
If the item removed is the currently playing track (Player.currentMedia), playback stops and the next item in the playlist becomes the current one. If there is no next item, the previous item is used, or if there are no other items, then Player.currentMedia is set to NULL.
To use this method, full access to the library is required. For more information, see Library Access.
Requirements
Requirement | Value |
---|---|
Version |
Windows Media Player version 7.0 or later. |
DLL |
|