I'm looking for a method to have a light bulb turn on when my camera is active on my macbook- sort of an "On Air" light. I know there are arduino solutions for activating the light- I'm just not sure how to begin the search for the method of telling arduino/automator/etc: hey the camera is activated now do this….
MacOS – Turn on light when camera active
automatorcameramacos
Related Question
- MacOS – How to turn off slide transition when switching between two full screen applications on OS X Mavericks
- MacOS – How to sort apps in Launchpad view
- MacOS – Disable iSight Indicator LED on El Capitan
- Turn on camera light but not camera
- FaceTime HD Camera (Built-in) detected on USB hub, but no picture? `sudo Killall VDCAssistant`, restarting, etc does nothing
- MacBook – Camera Light Activation with Camera Use
- How to remove additional vertical line from dock created by Automator app
Best Answer
Oversight is a product by Objective-See that performs low-level detection of when the camera is used. I posted a screenshot from a talk by Patrick Wardle that discusses this specifically, along with some sample code of how to invoke this via AVFoundation notifications. The portion most relevant to you starts at 43 minutes.
If this application you're describing is for personal use, then I think it's fine, but note that the type of callback you're looking for is that the same one that malicious tools can use to also record your Facetime/Skype video and upload it to a third party. So, please note and understand the full context of what you're proposing if you're not already aware of it.