Can I detect when my webcam is used by a program on Mac OS?

Viewed 141

Is there a way to detect when a webcam is being used.

When I join a video call or use Photo Booth, the leds on my Logitech C920 (usb) webcam turn on, I would like to be able to detect that so I can automatically change the color of my "smart" lights.

Either through command line or something that I code, I have done some research but haven't found anything that seems to work.

1 Answers

You can use the is-camera-on-cli package from the CLI.

Example:

$ is-camera-on
āœ” Camera is on
Related