Share via


Windows Media Player 11 SDK IWMPEvents Interface 

Windows Media Player SDK banner art

Previous Next

IWMPEvents Interface

The IWMPEvents interface provides events that originate from the Windows Media Player control. An embedding program can respond to these events. The events exposed by IWMPEvents are also exposed by the _WMPOCXEvents interface.

In addition to the methods inherited from IUnknown, the IWMPEvents interface exposes the following methods.

Method Description
AudioLanguageChange Occurs when the current audio language changes.
Buffering Occurs when the Windows Media Player control begins or ends buffering.
CdromMediaChange Occurs when a CD or DVD is inserted into or ejected from a CD or DVD drive.
Click Occurs when the user clicks a mouse button.
CurrentItemChange Occurs when the currentItem property of the IWMPControls interface changes value.
CurrentMediaItemAvailable Occurs when the current media item becomes available.
CurrentPlaylistChange Occurs when something changes within the current playlist.
CurrentPlaylistItemAvailable Occurs when the current playlist item becomes available.
Disconnect Reserved for future use.
DomainChange Occurs when the DVD domain changes.
DoubleClick Occurs when the user double-clicks a mouse button.
DurationUnitChange Reserved for future use.
EndOfStream Reserved for future use.
Error Occurs when the Windows Media Player control has an error condition.
KeyDown Occurs when a key is pressed.
KeyPress Occurs when a key is pressed and then released.
KeyUp Occurs when a key is released.
MarkerHit Occurs when a marker is reached.
MediaChange Occurs when a media item changes.
MediaCollectionAttributeStringAdded Occurs when an attribute is added to the library.
MediaCollectionAttributeStringChanged Occurs when an attribute in the library is changed.
MediaCollectionAttributeStringRemoved Occurs when an attribute is removed from the library.
MediaCollectionChange Occurs when the media collection changes.
MediaError Occurs when the Media object has an error condition.
ModeChange Occurs when a mode of Windows Media Player is changed.
MouseDown Occurs when a mouse button is pressed.
MouseMove Occurs when the mouse pointer is moved.
MouseUp Occurs when a mouse button is released.
NewStream Reserved for future use.
OpenPlaylistSwitch Occurs when a title on a DVD begins playing.
OpenStateChange Occurs when the Windows Media Player control changes state.
PlayerDockedStateChange Occurs when a remoted Windows Media Player control docks or undocks.
PlayerReconnect Occurs when a remoted Windows Media Player control reconnects to the Player.
PlaylistChange Occurs when a playlist changes.
PlaylistCollectionChange Occurs when something changes in the playlist collection.
PlaylistCollectionPlaylistAdded Occurs when a playlist is added to the playlist collection.
PlaylistCollectionPlaylistRemoved Occurs when a playlist is removed from the playlist collection.
PlaylistCollectionPlaylistSetAsDeleted Reserved for future use.
PlayStateChange Occurs when the play state of the Windows Media Player control changes.
PositionChange Occurs when the current position of the media has been changed.
ScriptCommand Occurs when a synchronized command or URL is received.
StatusChange Occurs when the status property changes value.
SwitchedToControl Occurs when a remoted Windows Media Player control switches to the docked state.
SwitchedToPlayerApplication Occurs when a remoted Windows Media Player control switches to the full mode of the Player.
Warning Reserved for future use.

See Also

Previous Next