In This Topic
Description
The point reached in the media's duration.
Property type
Read-write property
Syntax
Visual Basic |
---|
Public Property MediaTime As Double
|
Return Type
The current point the media has reached, in seconds.
Example
private void axVHX1_OnPlayerReady(object sender, EventArgs e)
{
// Set the starting point of the media.
axVHX1.Open("file:///path-to-your-file");
axVHX1.MediaTime = 5.0f;
}
private void axVHX1_OnPlayerEvent(object sender, AxVHXLib.IVHXEvents_OnPlayerEventEvent e)
{
// Retrieve the point currently reached in the media's duration .
Debug.WriteLine("MediaTime: " + axVHX1.MediaTime);
}
See Also