Share via


Windows Media Player Events

The Windows Media Player control supports the following events.

Programming element Description
Buffering Occurs when the Windows Media Player control begins or ends buffering.
Click Occurs when the user clicks the mouse with the cursor in the image window.
DblClick Occurs when the user double-clicks the mouse with the cursor in the image window.
Disconnect Occurs when the Windows Media Player control is disconnected from the server.
EndOfStream Occurs when the end of the clip is reached.
Error Occurs when the Windows Media Player control has an error condition.
KeyDown Occurs when the user presses a key.
KeyPress Occurs when the user presses and releases a key.
KeyUp Occurs when the user releases a key.
MarkerHit Occurs when playback reaches a marker.
MouseDown Occurs when the user presses a mouse button.
MouseMove Occurs when the mouse pointer is moved within the Windows Media Player control window.
MouseUp Occurs when the mouse button is released.
NewStream Occurs when a new stream begins loading.
OpenStateChange Occurs when the open state changes.
PlayStateChange Occurs when the play state changes.
PositionChange Occurs when the current media position moves to a new position.
ReadyStateChange Occurs when the Windows Media Player control's state of readiness changes.
ScriptCommand Occurs when a synchronized command or URL is received.
StateChange Indicates that the Player state changed, such as from running to stopped.

See Also

Windows Media Player Control

Last updated on Wednesday, April 13, 2005

© 2005 Microsoft Corporation. All rights reserved.