Microsoft DirectX 8.1 (C++)

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.

See Also