|Microsoft DirectX 9.0|
The SetMediaLength method specifies the duration of the source file.
HRESULT SetMediaLength( REFERENCE_TIME Length );
Media length, in 100-nanosecond units.
You can avoid potential rendering errors by setting the media length before you set the media stop time. When you set the media stop time, DES checks it against the media length.
This method does not validate the Length parameter, but the value must equal the actual duration of the source file. Obtain the source file duration by calling IMediaDet::get_StreamLength.
Header: Include Qedit.h. This header file is not compatible with Microsoft® Direct3D® headers later than version 7.
Library: Use strmiids.lib.