GetMarkerTime (Windows CE 5.0)

Send Feedback

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

Compatibility: Windows Media Player

dblRetVal = MediaPlayer.GetMarkerTime( lMarkerNum)

Parameters

  • lMarkerNum
    [in] Long value specifying the number of the marker to return.

Return Values

Returns a Double value 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 MarkerCount property 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 MarkerCount is zero.

The following example tests MarkerCount before displaying a message box with the marker time.

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

Requirements

OS Versions: Windows CE 3.0 and later.

See Also

Windows Media Player Methods | Compatibility Modes | Playback Methods and Properties | GetMarkerName | MarkerCount | CurrentMarker

Send Feedback on this topic to the authors

Feedback FAQs

© 2006 Microsoft Corporation. All rights reserved.