Share via


CPosPassThru::get_Duration (Compact 2013)

3/26/2014

Retrieves the total duration of the media stream.

Syntax

HRESULT get_Duration(
  REFTIME* plength 
);

Parameters

  • plength
    Returned length of the media stream.

Return Value

Returns the HRESULT value returned from calling IMediaPosition::get_Duration on the connected pin.

Remarks

The duration assumes normal playback speed, and it is therefore unaffected by the rate.

Requirements

Header

dshow.h,
Streams.h

Library

ole32.lib,
Ole32auth.lib,
Strmbase.lib,
Strmiids.lib,
uuid.lib

See Also

Reference

CPosPassThru Class