Microsoft DirectX 9.0

IMediaPosition.Duration

The Duration property retrieves the duration of the stream.

Syntax

objMediaPosition.Duration As Double

Parameters

This property takes no parameters.

Return Values

Returns the duration, in seconds.

Remarks

The duration is relative to the normal playback rate. Therefore, setting the IMediaPosition.Rate property does not affect the value of the Duration property.

This property is read-only.

See Also