Windows Media Player 11 SDK Controls.currentItemĀ 

Windows Media Player SDK banner art

Previous Next

Controls.currentItem

The currentItem property specifies or retrieves the current media item.

Syntax

  
    
  

Possible Values

This property is a read/write Media object.

Remarks

This method works only with items in *Player.*currentPlaylist. Calling currentItem with a reference to a saved media item is not supported.

Example Code

The following JScript example uses currentItem to set the player control current media item to the selected value in an HTML SELECT element. The current playlist was first specified by using PlaylistCollection.getByName. The Player object was created with ID = "Player".

  

Requirements

Version: Windows Media Player version 7.0 or later.

Library: Use wmp.dll.

See Also

Previous Next