Windows Media Player 11 SDK Controls.currentPositionĀ 

Windows Media Player SDK banner art

Previous Next

Controls.currentPosition

The currentPosition property specifies or retrieves the current position in the media item in seconds from the beginning.

Syntax

  
    
  

Possible Values

This property is a read/write Number (double).

Example Code

The following example uses currentPosition to seek to a position provided by the user. An HTML BUTTON element is created to execute the JScript code. An HTML TEXT input element, named setPosition, was created to accept a value, in seconds, from the user. The Player object was created with ID = "Player".

  

Requirements

Version: Windows Media Player version 7.0 or later.

Library: Use wmp.dll.

See Also

Previous Next