CurrentPlaylistItemAvailable Event of the AxWindowsMediaPlayer Object

The CurrentPlaylistItemAvailable event occurs when the current playlist becomes available.

private void player_CurrentPlaylistItemAvailable(
  object sender,
  _WMPOCXEvents_CurrentPlaylistItemAvailableEvent e

[Visual Basic]
Private Sub player_CurrentPlaylistItemAvailable(  
  sender As Object,
  e As _WMPOCXEvents_CurrentPlaylistItemAvailableEvent
) Handles player.CurrentPlaylistItemAvailable

Event Data

The handler associated with this event is of type AxWMPLib._WMPOCXEvents_CurrentPlaylistItemAvailableEventHandler. This handler receives an argument of type AxWMPLib._WMPOCXEvents_CurrentPlaylistItemAvailableEvent, which contains the following property related to this event.

Property Description
bstrItemName System.StringThe name of the current playlist item.


The name of the current playlist can be used to retrieve the corresponding IWMPPlaylist interface from the IWMPPlaylistArray interface that is returned from the IWMPPlaylistCollection.getByName method.


Windows Media Player 9 Series or later
AxInterop.WMPLib.dll (AxInterop.WMPLib.dll.dll)

See also

AxWindowsMediaPlayer Object (VB and C#)

IWMPPlaylist Interface (VB and C#)

IWMPPlaylistArray Interface (VB and C#)

IWMPPlaylistCollection.getByName (VB and C#)