MF_MEDIA_ENGINE_PLAYBACK_HWND attribute

Sets a handle to a video playback window for the Media Engine.

Data type

HWND stored as UINT64

Get/set

To get this attribute, call IMFAttributes::GetUINT64.

To set this attribute, call IMFAttributes::SetUINT64.

Remarks

This attribute is used with the IMFMediaEngineClassFactory::CreateInstance method to initialize the Media Engine. Using this attribute will put MediaEngine into a legacy HWND mode and prevent it from transitioning to the DirectComposition mode with the IMFMediaEngineEx::EnableWindowlessSwapchainMode method. Consider using the MF_MEDIA_ENGINE_OPM_HWND attribute instead.

Requirements

Requirement Value
Minimum supported client
Windows 8 [desktop apps | UWP apps]
Minimum supported server
Windows Server 2012 [desktop apps | UWP apps]
Header
Mfmediaengine.h

See also

Alphabetical List of Media Foundation Attributes