cmake: Turn off camera reaction by default on macOS 14.4 and later #11652
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Adds an Info.plist flag available since macOS 14.4 that turns off the reaction effects by default (which Apple turned on by default for all apps for some reason).
Amazingly, this is only documented in
@discussion
part theAVCaptureDevice.h
header in the macOS SDK (line 2335ff on the 15.2 SDK), not in the same part of the official documentation. (See also FB16132155)In fact, I only know that it is even possible to disable it because I saw Zoom do it (the macOS UI very much encourages the user to turn it on, see the screenshot below) and then went digging as to how it was done.
Motivation and Context
The reaction effects that macOS adds by default are confusing to users as they're turned on by default and users don't know where they come from or where to turn them off. Setting this flag in the apps Info.plist prevents them from being turned on by default. The macOS UI makes it very obvious to the user where they can turn them on should they wish to do so.
This comes up often enough in support that I would consider it to be a bug fix.
How Has This Been Tested?
Changed the bundle identifier of OBS (which the reaction setting appears to be tied to).
After adding a camera source on first launch, got this notification:
Types of changes
Checklist: