Share via


IAMTimelineSrc::SetMediaLength2

 
Microsoft DirectShow 9.0

IAMTimelineSrc::SetMediaLength2

The SetMediaLength2 method specifies the duration of the source file. This method is equivalent to IAMTimelineSrc::SetMediaLength, but takes a REFTIME value.

Syntax

  HRESULT SetMediaLength2(
    REFTIME Length
);

Parameters

Length

Media length, in seconds.

Return Value

Returns S_OK.

Requirements

Header: Include Qedit.h. This header file is not compatible with Microsoft® Direct3D® headers later than version 7.

Library: Use strmiids.lib.

See Also