Windows Media Player 11 SDK AxWindowsMediaPlayer.CurrentMediaItemAvailable Event (VB and C#)
Previous | Next |
AxWindowsMediaPlayer.CurrentMediaItemAvailable Event (VB and C#)
The CurrentMediaItemAvailable event occurs when a graphic metadata item in the current media item becomes available.
[Visual Basic] Private Sub player_CurrentMediaItemAvailable( sender As Object, e As _WMPOCXEvents_CurrentMediaItemAvailableEvent ) Handles player.CurrentMediaItemAvailable [C#]
Event Data
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.
Property | Description |
bstrItemName | System.String
The name of the current media item. |
Remarks
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.
Requirements
Version: Windows Media Player 9 Series or later
Namespace: AxWMPLib
Assembly: AxInterop.WMPLib.dll (automatically generated by Visual Studio)
See Also
- AxWindowsMediaPlayer Object (VB and C#)
- IWMPMedia Interface (VB and C#)
- IWMPMedia3.getItemInfoByType (VB and C#)
- IWMPMediaCollection.getByName (VB and C#)
Previous | Next |