IMultiMediaStream::GetDuration
Microsoft DirectShow 9.0 |
IMultiMediaStream::GetDuration
- Note This interface is deprecated. New applications should not use it.
The GetDuration method retrieves the duration of the multimedia stream.
Syntax
HRESULT GetDuration( STREAM_TIME *pDuration );
Parameters
pDuration
[out] Pointer to a variable that receives of the multimedia stream, in 100-nanosecond units.
Return Values
Returns an HRESULT value. Possible values include the following.
Return code | Description |
E_NOINTERFACE | This multimedia stream does not support seeking. |
E_POINTER | NULL pointer value. |
MS_E_INVALIDSTREAMTYPE | This multimedia stream is not read-only. |
S_FALSE | Could not determine the duration. |
S_OK | Success. |
See Also