Can you programatically tell if the webcam is in use? I'm trying to run some commands when I start and stop using the (built in) webcam on my 2015 iMac running Catalina.
It sounds like historically lsof | grep &quot;AppleCamera&quot; would once tell me if the webcam is being used. However I'm not getting that to work on Catalina, is there an alternative process name or other method I can use to tell if the webcam is active?
I would recommend OverSight because it's free and written by a very talented Apple technology focused security researcher. His other tools are also extremely good.
https://objective-see.com/products/oversight.html