Share via


Windows Media Player 11 SDK Media.getMarkerName 

Windows Media Player SDK banner art

Previous Next

Media.getMarkerName

The getMarkerName method retrieves the name of the marker at the specified index.

Syntax

  

Parameters

markerNum

Number (long) specifying a marker index.

Return Values

This method returns a String.

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.getMarkerName to fill an HTML TEXTAREA element named MNAMES with the names of the markers in the current media item. 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