Windows Media Player SDK banner art
PreviousNext

Player.currentMedia

The currentMedia property specifies or retrieves the current Media object.

Syntax

player.currentMedia

Possible Values

This property is a read/write Media object.

Remarks

If the Settings.autoStart property is true, file playback begins automatically whenever you set currentMedia.

Setting currentMedia is a synchronous operation; control is not returned to the application until after the file has completed the open process.

This property takes a Media object, which can be acquired in several ways, such as calling MediaCollection.item or Playlist.item. To load a Media item using a file name, set the URL property instead.

See Also

PreviousNext


© 2000-2001 Microsoft Corporation. All rights reserved.