Share via


CSourcePosition::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 E_POINTER if pLength is invalid. Otherwise, returns S_OK.

Remarks

The duration assumes normal playback speed; it is unaffected by the rate.

Requirements

Header

dshow.h,
Streams.h

Library

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

See Also

Reference

CSourcePosition Class