IMultiMediaStream::GetDuration (Windows Embedded CE 6.0)
1/6/2010
This method returns the media stream's duration.
Syntax
HRESULT GetDuration(
STREAM_TIME* pDuration
);
Parameters
- pDuration
[out] Pointer to a STREAM_TIME value that will contain the media duration.
Return Value
Returns one of the following values.
Value | Description |
---|---|
E_POINTER |
The value of pDuration is invalid. |
MS_E_WRITESTREAM |
The media stream is writable and therefore has no duration. |
S_FALSE |
Stream contains live data or this method could not determine the duration. On return, this method sets pDuration to zero. |
S_OK |
Stream contains recorded media. On return, pDuration contains duration of media. |
Requirements
Windows Embedded CE | Windows CE 2.12 and later |
Note | Microsoft DirectShow applications and DirectShow filters have different include file and Library requirements For more information, see Setting Up the Build Environment, Version 2.12 requires DXPAK 1.0 or later |