IMFPMediaPlayer::GetVideoWindow method (mfplay.h)

Important  Deprecated. This API may be removed from future releases of Windows. Applications should use the Media Session for playback.
 

Gets the window where the video is displayed.

Syntax

HRESULT GetVideoWindow(
  [out] HWND *phwndVideo
);

Parameters

[out] phwndVideo

Receives a handle to the application window where the video is displayed.

Return value

If this method succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

The video window is specified when you first call MFPCreateMediaPlayer to create the MFPlay player object.

Requirements

Requirement Value
Minimum supported client Windows 7 [desktop apps only]
Minimum supported server Windows Server 2008 R2 [desktop apps only]
Target Platform Windows
Header mfplay.h

See also

IMFPMediaPlayer

Using MFPlay for Audio/Video Playback