Compartilhar via


IMediaDet::get_StreamLength

 
Microsoft DirectShow 9.0

IMediaDet::get_StreamLength

The get_StreamLength method retrieves the duration of the current stream.

Syntax

  HRESULT get_StreamLength(
    double *pVal
);

Parameters

pVal

[out, retval] Pointer to a variable that receives the duration of the stream, in seconds.

Return Value

Returns an HRESULT value. Possible values include the following:

Value Description
S_OK Success.
E_INVALIDARG Invalid argument.
E_POINTER NULL pointer argument.

Remarks

Before calling this method, set the file name and stream by calling IMediaDet::put_Filename and IMediaDet::put_CurrentStream.

If the media detector is in bitmap grab mode, this method returns E_INVALIDARG. For more information, see IMediaDet::EnterBitmapGrabMode.

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