Turn on light when camera active
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....
Solution 1:
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.