Share via


IMediaPosition.CurrentPosition

Note  This topic is deprecated. It applies to Visual Basic 6.0. DirectShow is not supported for Visual Basic .NET or C#.

The CurrentPosition property sets or retrieves the playback position.

objMediaPosition.CurrentPosition As Double

Parameters

This property takes no parameters.

Return Value

Returns the current position, in seconds, relative to the start of the original source.

Remarks

If the graph is running, this property is equal to the current position of the stream, relative to the start of the source. If the graph is paused or stopped, this property is equal to the last position that was reached.

This property is read/write. If the stream is seekable, setting this property seeks the stream.

The position is calculated before the rate, so the position is relative to normal playback speed. For example, if you set the rate to twice normal speed and run the graph for 2 seconds, the CurrentPosition property is 4.0.

Requirements

Type Library

ActiveMovie control type library

DLL

Quartz.dll

See Also

IMediaPosition Object

 

 

Send comments about this topic to Microsoft

Build date: 8/31/2010