Windows Media Player Control SDK Banner Art
*Contents *Index  *Topic Contents
*Previous Topic: OpenStateChange
*Next Topic: PositionChange

PlayStateChange Event

Occurs when the play state changes.

Syntax

JScript
<SCRIPT FOR="MediaPlayer" EVENT="PlayStateChange(lOldState, lNewState)" LANGUAGE="JScript">
    //insert script commands//
</SCRIPT>
VBScript
<SCRIPT LANGUAGE="VBScript">
Sub MediaPlayer_PlayStateChange(lOldState, lNewState)
    //insert script commands//
End Sub
</SCRIPT>

Parameters

lOldState Long value specifying the previous value of the PlayState property.
lNewState Long value indicating the new value of the PlayState property.

This event occurs only if the value of the SendPlayStateChangeEvents property is true.

See Also

Monitoring Stream Status and Network Reception


Top of Page Top of Page
© 1999 Microsoft and/or its suppliers. All rights reserved. Terms of Use.