Windows Media Player Control SDK Banner Art
*Contents *Index  *Topic Contents
*Previous Topic: PlayStateChange
*Next Topic: ReadyStateChange

PositionChange Event

Occurs when the current media position changes, such as when the user selects (or seeks to) a new media position.

Syntax

JScript
<SCRIPT FOR="MediaPlayer" EVENT="PositionChange(dblOldPosition, dblNewPosition)" LANGUAGE="JScript">
    //insert script commands//
</SCRIPT>
VBScript
<SCRIPT LANGUAGE="VBScript">
Sub MediaPlayer_PositionChange(dblOldPosition, dblNewPosition)
    //insert script commands//
End Sub
</SCRIPT>

Parameters

dblOldPosition Double value indicating the position before it changed, in seconds.
dblNewPosition Double value indicating the current position, in seconds.

See Also

Playback Methods and Properties


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