Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 1.26 KB

mediaplayer_copyframetovideosurface_937988329.md

File metadata and controls

32 lines (20 loc) · 1.26 KB
-api-id -api-type
M:Windows.Media.Playback.MediaPlayer.CopyFrameToVideoSurface(Windows.Graphics.DirectX.Direct3D11.IDirect3DSurface,Windows.Foundation.Rect)
winrt method

Windows.Media.Playback.MediaPlayer.CopyFrameToVideoSurface

-description

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

-parameters

-param destination

The IDirect3DSurface to which the video frame is copied.

-param targetRectangle

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

-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

Play audio and video with MediaPlayer

-examples