Windows Media Player 11 SDK Player.currentMedia
Previous | Next |
Player.currentMedia
The currentMedia property specifies or retrieves the current Media object.
Syntax
Possible Values
This property is a read/write Media object.
Remarks
If the Settings.autoStart property is true, playback begins automatically whenever you set currentMedia.
This property takes a Media object, which can be acquired by using Playlist**.item**. To load a Media item using a file name, set the URL property or use newMedia.
Example Code
The following JScript example retrieves the first media item in the library. It then uses currentMedia to make the retrieved media item the current media item, and then to display the name of the current media item. The Player object was created with ID = "Player".
the library.
Requirements
Version: Windows Media Player version 7.0 or later.
Library: Use wmp.dll.
See Also
Previous | Next |