Share via


Player6.PositionChange (deprecated)

Windows Media Player SDK banner art

This page documents a feature of the Windows Media Player 6.4 ActiveX control. We recommend that you migrate your content to use the Windows Media Player 9 Series ActiveX control. For more information about the Windows Media Player 9 Series ActiveX control, see the Windows Media Player 9 Series SDK.

This 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.

Requirements

Version: Windows Media Player version 6.4.

Library: Use msdxm.ocx.

Platform: Windows 98 Second Edition or higher.

See Also