Windows Media Player 11 SDK Player.CurrentPlaylistChange EventĀ
Previous | Next |
Player.CurrentPlaylistChange Event
The CurrentPlaylistChange event occurs when something changes within the current playlist.
Syntax
CurrentPlaylistChange(change)
Parameters
change
Number (long) indicating what type of change occurred to the playlist. See the Player*.***PlaylistChange event for a table of possible values.
Remarks
This event does not occur when a different playlist becomes the current playlist. It only occurs when a change happens within the current playlist, such as a media item being appended to the playlist.
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.
Example Code
The following JScript example updates the text in an HTML DIV element, named PlItems, to display the names of the media items in the current playlist. 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 |