MediaPlayer.CopyFrameToVideoSurface Method

Definition

Overloads

CopyFrameToVideoSurface(IDirect3DSurface)

Copies the current video frame from the MediaPlayer to the provided IDirect3DSurface.

CopyFrameToVideoSurface(IDirect3DSurface, Rect)

Copies the current video frame from the MediaPlayer to the specified target rectangle within the provided IDirect3DSurface.

CopyFrameToVideoSurface(IDirect3DSurface)

Copies the current video frame from the MediaPlayer to the provided IDirect3DSurface.

C#
[Windows.Foundation.Metadata.Overload("CopyFrameToVideoSurface")]
public void CopyFrameToVideoSurface(IDirect3DSurface destination);

Parameters

destination
IDirect3DSurface

The IDirect3DSurface to which the video frame is copied.

Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Remarks

For information on using CopyFrameToVideoSurface to apply GPU effects to video frames, see the Use MediaPlayer in frame server mode section of Play audio and video with MediaPlayer.

See also

Applies to

WinRT Build 26100 and other versions
Product Versions
WinRT Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100

CopyFrameToVideoSurface(IDirect3DSurface, Rect)

Copies the current video frame from the MediaPlayer to the specified target rectangle within the provided IDirect3DSurface.

C#
[Windows.Foundation.Metadata.Overload("CopyFrameToVideoSurfaceWithTargetRectangle")]
public void CopyFrameToVideoSurface(IDirect3DSurface destination, Rect targetRectangle);

Parameters

destination
IDirect3DSurface

The IDirect3DSurface to which the video frame is copied.

targetRectangle
Rect

The target rectangle within the IDirect3DSurface to which the video frame is copied.

Attributes

Windows requirements

Device family
Windows 10 Creators Update (introduced in 10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v4.0)

Remarks

For information on using CopyFrameToVideoSurface to apply GPU effects to video frames, see the Use MediaPlayer in frame server mode section of Play audio and video with MediaPlayer.

See also

Applies to

WinRT Build 26100 and other versions
Product Versions
WinRT Build 15063, Build 16299, Build 17134, Build 17763, Build 18362, Build 19041, Build 20348, Build 22000, Build 22621, Build 26100