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.
A version of this page is also available for
4/8/2010

This method retrieves a value specifying the presentation time of a given marker.

Compatibility:Windows Media Player

Syntax

dblRetVal = MediaPlayer.GetMarkerTime( 

lMarkerNum 
)

Parameters

lMarkerNum

[in] Longvalue specifying the number of the marker to return.

Return Value

Returns a Doublevalue specifying the presentation time of a given marker.

This method returns a zero if the specified marker does not exist.

Remarks

Some media clips do not contain markers. Use 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 time.

Copy Code
If (MediaPlayer1.MarkerCount > 0) Then
  MsgBox "Marker 1 is at" + Str$(MediaPlayer1.GetMarkerTime(1)) _
  + " seconds."
End If

Requirements

Windows Embedded CE Windows CE 3.0 and later

See Also