CurrentMediaItemAvailable Event of the AxWindowsMediaPlayer Object
The CurrentMediaItemAvailable event occurs when a graphic metadata item in the current media item becomes available.
[C#] private void player_CurrentMediaItemAvailable( object sender, _WMPOCXEvents_CurrentMediaItemAvailableEvent e ) [Visual Basic] Private Sub player_CurrentMediaItemAvailable( sender As Object, e As _WMPOCXEvents_CurrentMediaItemAvailableEvent ) Handles player.CurrentMediaItemAvailable
The handler associated with this event is of type AxWMPLib._WMPOCXEvents_CurrentMediaItemAvailableEventHandler. This handler receives an argument of type AxWMPLib._WMPOCXEvents_CurrentMediaItemAvailableEvent, which contains the following property related to this event.
|bstrItemName||System.StringThe name of the current media item.
Because playback can begin before a media item is fully downloaded, any metadata graphics contained in the media item (such as album cover art) may not be available when it starts to play. This event alerts you when a metadata graphic item is finished downloading. You can then retrieve the IWMPMedia interface by passing the value of bstrItemName to the IWMPMediaCollection.getByName method, after which you can access the metadata graphic item by using IWMPMedia3.getItemInfoByType and specifying WM/Picture for the attribute name.
||Windows Media Player 9 Series or later