windows-10uwpwindows-10-universalwindows-10-mobilescreen-recording

Windows 10 UWP Screen Recording API


I'm looking for a UWP class like ScreenCapture.

I want to create a Screen Recorder, but I can't find any class that suits in my needs. Is this possible?


Solution

  • Your application runs sandboxed. It won't have direct access to any API or resource that will let it act outside of its sandbox for reasons of security and system stability. If you are only trying to capture the pixels that your own application is rendering you can use RenderTargetBitmap.RenderAsync();. If you are trying to capture the pixels from other applications you won't be able to do this from within your own application. If you are running on a desktop computer you have the option of using Win32 APIs to complete your task. For capturing pixels rendered by other applications on devices that don't run the desktop operating system you will be unable to do anything.