Raised when the media playback changes state or rate.
Note This event has been deprecated.
onPlayStateChange(int nPlayState )
An HTML application receives onPlayStateChange events when the playback state changes while video that was started by the application is playing in full-screen mode.
A handler for this event can retrieve the new play state (for example, "Playing" or "Stopped"); for more information, see the example function in the description of the Experience.PlayState property. Additionally, a handler for this event can retrieve the new play rate (for example, "Rewind1" or "SlowMotion2") by querying the Experience.PlayRate property.
These events are sent from another thread by Windows Media Center, and the sender does not wait for a response. Because of this, you cannot always use this event to avoid Windows Media Center actions tied to play-state changes. One notable example of this is the Finished event for a video. When a video finishes playing, Windows Media Center displays a dialog box that asks if the user wants to play the file again. Windows Media Center prevents a new video from starting while this dialog box is open. Because this dialog box is displayed before the onPlayStateChange event is called, your application cannot begin playing one video immediately after another, but must wait for the user to interact with the dialog box.
Platform: HTML application hosted within Windows XP Media Center Edition 2004 through Windows Vista