Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore a window or UI element to be recorded #32

Open
divyanshunegi opened this issue Jun 24, 2024 · 2 comments
Open

Ignore a window or UI element to be recorded #32

divyanshunegi opened this issue Jun 24, 2024 · 2 comments

Comments

@divyanshunegi
Copy link

divyanshunegi commented Jun 24, 2024

Is there a way in aperture so I can ignore a part of the screen to be recorded ? I am showing a view which shows the timer for recording and a stop button, but that view is being recorded with aperture, how to remove that ? with desktopCapturer I used setContentProtection which worked, but now I am using aperture for better quality and hiding the cursor and its recording the windows which should be hidden.

TLDR;

.sharingType = .none on a view is not being ignored in the final recording.

@sindresorhus
Copy link
Contributor

You may be able to do it using a passthrough DRM view: https://github.com/devCracker/ScreenGuard-iOS

To hide windows, you could use ScreenCaptureKit instead of this package.

@divyanshunegi
Copy link
Author

Thanks, I did tried a lot of solutions but nothing worked and finally I wrote my own implementation using screencapturekit I have published it as well for someone to use if they want : https://www.npmjs.com/package/capturekit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants