Note
Kailangan ng pahintulot para ma-access ang page na ito. Maaari mong subukang mag-sign in o magpalit ng mga direktoryo.
Ang pag-access sa pahinang ito ay nangangailangan ng pahintulot. Maaari mong subukang baguhin ang mga direktoryo.
Gets the current media type for a stream.
Syntax
HRESULT GetCurrentMediaType(
[in] DWORD dwStreamIndex,
[out] IMFMediaType **ppMediaType
);
Parameters
[in] dwStreamIndex
The stream to query. The value can be any of the following.
[out] ppMediaType
Receives a pointer to the IMFMediaType interface. The caller must release the interface.
Return value
The method returns an HRESULT. Possible values include, but are not limited to, those in the following table.
| Return code | Description |
|---|---|
|
The method succeeded. |
|
The dwStreamIndex parameter is invalid. |
Remarks
This interface is available on Windows Vista if Platform Update Supplement for Windows Vista is installed.
Requirements
| Requirement | Value |
|---|---|
| Minimum supported client | Windows 7, Windows Vista and Platform Update Supplement for Windows Vista [desktop apps | UWP apps] |
| Minimum supported server | Windows Server 2008 R2 [desktop apps | UWP apps] |
| Target Platform | Windows |
| Header | mfreadwrite.h |