sskodje / ScreenRecorderLib

A .NET library for screen recording in Windows, using native Microsoft Media Foundation for realtime encoding to h264 video or PNG images.
MIT License
408 stars 93 forks source link

[Feature Request] Colored Border #221

Closed PikeNote closed 1 year ago

PikeNote commented 1 year ago

Is there a possibility to allowing the disabling of the colored border the Windows Recorder API automatically puts up for applications that are recorded?

As per windows docs, IsBorderRequired was added and requires a prompt to the user allowing consent of the border to be turned off.

sskodje commented 1 year ago

I'll investigate :)

dotriz commented 1 year ago

Is there a possibility to allowing the disabling of the colored border the Windows Recorder API automatically puts up for applications that are recorded?

As per windows docs, IsBorderRequired was added and requires a prompt to the user allowing consent of the border to be turned off.

You can simply add a line of code in StartCapture function in ScreenRecorderLibNative\WindowsGraphicsCapture.cpp like this m_session = m_framePool.CreateCaptureSession(m_CaptureItem); m_session.IsBorderRequired(false);

sskodje commented 1 year ago

Added with 5dc52c4f4ec4bf9ea67f8fe60f96f77f83c0e7f5