Share via


Windows Media Player 11 SDK Media.getMarkerTime 

Windows Media Player SDK banner art

Previous Next

Media.getMarkerTime

The getMarkerTime method retrieves the time of the marker at the specified index.

Syntax

  

Parameters

markerNum

Number (long) specifying the marker index.

Return Values

This method returns a Number (double) specifying the location of the marker in seconds from the beginning of the clip.

Remarks

This method returns NULL if the specified marker does not exist.

Some digital media items do not contain markers. Use markerCount to find out how many markers are in the current clip.

Marker index numbers start at 1.

To use this method, read access to the library is required. For more information, see Library Access.

Example Code

The following JScript example uses Media.getMarkerTime to fill an HTML TEXTAREA element named MTIMES with the location of each marker. 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