News for hackers. Stuff that matters.
Re:Automatically Light Up a Sign When Your Webcam Is in Use by stevenbedrick on Friday August 27, 2021 @01:13PM (#28330408)
Take a look at the code for Objective-See’s “OverSight” utility; it is a good example of how to detect AV events system-wide. It’s also a really great app…

https://objective-see.com/products/oversight.html

Re:Automatically Light Up a Sign When Your Webcam Is in Use by doesnotexist on Saturday August 28, 2021 @02:18PM (#28340220)
Their FAQ gives a sketch of how they detect AV events on Mac OS:

Q: Why does it take OverSight, a few seconds to display the webcam/mic usage notification?

A: There is not easy way to determine what process is using the webcam or mic, when either is activated. Worse, there is no direct indication that a new process is accessing an existing a webcam session. Thus OverSight has to perform various tests and has to poll the system (only when the camera/mic is active) in order to determine what process(es) is/are accessing the device. This takes a few seconds...mahalo for your patience!