Microsoft Windows CE 3.0  

GetMarkerName

Important:
This is retired content. This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This content may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.

Retrieves the name of a marker, given its marker number.

Compatibility:Windows Media Player

sRetVal = MediaPlayer.GetMarkerName(
lMarkerNum
)

Parameters

lMarkerNum
Long value specifying the number of the marker name to return.

Return Values

Returns a Stringcontaining the name of the marker. This method returns a null string if the specified marker does not exist.

Remarks

Some media clips do not contain markers. Retrieve the MarkerCountproperty to find out how many markers are in the current clip. Marker numbers start at 1. If a clip has no markers, the value of MarkerCountis zero. The following example tests MarkerCountbefore displaying a message box with the marker name:

If MediaPlayer1.MarkerCount > 0 Then MsgBox
"Marker 1 is named " + MediaPlayer.GetMarkerName(1) + "." End
If

See Also

MarkerCount, CurrentMarker, GetMarkerTime, Playback Methods and Properties