Share via


Windows Media Player 11 SDK Player.CurrentMediaItemAvailable EventĀ 

Windows Media Player SDK banner art

Previous Next

Player.CurrentMediaItemAvailable Event

The CurrentMediaItemAvailable event occurs when a graphic metadata item in the current media item becomes available.

Syntax

  
    
  

Parameters

bstrItemName

String containing 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 Media object by passing the value of bstrItemName to the MediaCollection**.getByName** method, after which you can access the metadata graphic item by using Media**.getItemInfoByType** and specifying WM/Picture for the attribute name.

The value of event parameters is specified by Windows Media Player, and can be accessed or passed to a method in an imported JScript file using the parameter name given. This parameter name must be typed exactly as shown, including capitalization.

Windows Media Player 10 Mobile: This event is not supported.

Requirements

Version: Windows Media Player version 7.0 or later.

Library: Use wmp.dll.

See Also

Previous Next