Skip to content

Screen recording library based on Windows.Graphics.Capture features in Windows 10.

License

Notifications You must be signed in to change notification settings

zlatanov/windows-screen-recorder

Repository files navigation

Windows Screen Recorder

Screen recording library based on Windows.Graphics.Capture features in Windows 10. Uses .NET Core 5.0 to call into native Windows UWP APIs.

How to use

Install the latest version of WindowsScreenRecorder from NuGet (currently in preview).

// Use any stream abstraction, in this example we're saving into file.
using var stream = File.Create( Path.Combine( Environment.CurrentDirectory, "recording.mp4" ) );
using var recorder = ScreenRecorder.Create( stream, new ScreenRecorderOptions
{
    HardwareAccelerationEnabled = true,
    MonitorDeviceName = null, // Primary
    Quality = Windows.Media.MediaProperties.VideoEncodingQuality.HD720p
} );

// Dispose the instance when we want to complete the recording.

At the moment the library only supports recording mp4 video.

About

Screen recording library based on Windows.Graphics.Capture features in Windows 10.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published