Player6.GetMarkerTime (deprecated)
This page documents a feature of the Windows Media Player 6.4 ActiveX control. We recommend that you migrate your content to use the Windows Media Player 9 Series ActiveX control. For more information about the Windows Media Player 9 Series ActiveX control, see the Windows Media Player 9 Series SDK.
This method retrieves a value indicating the presentation time of a given marker.
Syntax
MediaPlayer.GetMarkerTime(lMarkerNum)
Parameters
* lMarkerNum*
Long value indicating the number of the marker to return.
Return Value
Returns a Double value indicating the presentation time of a given marker. This method returns a null string 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
Version: Windows Media Player version 6.4.
Library: Use msdxm.ocx.
Platform: Windows 98 Second Edition or higher.
See Also