Windows Media Player 11 SDK IWMPPlaylist::removeItem
Previous | Next |
IWMPPlaylist::removeItem
The removeItem method removes the specified media item from the playlist.
Syntax
Parameters
pIWMPMedia
[in] Pointer to an IWMPMedia interface for the item to remove.
Return Values
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
Return code | Description |
S_OK | The method succeeded. |
Remarks
If the item removed is the currently playing track, playback stops and the next item in the playlist becomes the current one.
If there is no next item, the previous item is used. If there are no other items, then the IWMPCore::get_currentMedia method will return NULL.
Before calling this method, you must have full access to the library. For more information, see Library Access.
Requirements
Version: Windows Media Player 9 Series or later.
Header: Include wmp.h.
Library: Use wmp.dll.
See Also
Previous | Next |