Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Sets the output format for a capture stream.
Syntax
HRESULT SetCurrentDeviceMediaType(
[in] DWORD dwSourceStreamIndex,
[in] IMFMediaType *pMediaType
);
Parameters
[in] dwSourceStreamIndex
The capture stream to set. The value can be any of the following.
Value | Meaning |
---|---|
|
The zero-based index of a stream. To get the number of streams, call IMFCaptureSource::GetDeviceStreamCount. |
|
The first image stream. |
|
The first video stream. |
|
The first audio stream. |
[in] pMediaType
A pointer to the IMFMediaType interface.
Return value
This method can return one of these values.
Return code | Description |
---|---|
|
Success. |
|
The dwSourceStreamIndex parameter is invalid. |
Remarks
This method sets the native output type on the capture device. The device must support the specified format. To get the list of available formats, call IMFCaptureSource::GetAvailableDeviceMediaType.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps only] |
Minimum supported server | Windows Server 2012 [desktop apps only] |
Target Platform | Windows |
Header | mfcaptureengine.h |