IMFMediaEngineEx::EnableWindowlessSwapchainMode method (mfmediaengine.h)
Enables or disables windowless swap-chain mode.
Syntax
HRESULT EnableWindowlessSwapchainMode(
[in] BOOL fEnable
);
Parameters
[in] fEnable
If TRUE, windowless swap-chain mode is enabled.
Return value
If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.
Remarks
In windowless swap-chain mode, the Media Engine creates a windowless swap chain and presents video frames to the swap chain. To render the video, call IMFMediaEngineEx::GetVideoSwapchainHandle to get a handle to the swap chain, and then associate the handle with a Microsoft DirectComposition visual.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 8 [desktop apps | UWP apps] |
Minimum supported server | Windows Server 2012 [desktop apps | UWP apps] |
Target Platform | Windows |
Header | mfmediaengine.h |