3 ms·
Here you go: https://stty.io/2020/07/31/lamp-control-based-on-video-conferencing/ https://stty.io/2020/07/31/lamp-control-based-on-video-confe... I’ve been usi
by isatty 5y ago
Here you go: https://stty.io/2020/07/31/lamp-control-based-on-video-conferencing/ https://stty.io/2020/07/31/lamp-control-based-on-video-confe...
I’ve been using this for ~1 and it’s been more reliable than I expected - no maintenance required even with the update to Big Sur.
To save you a click:
log show --predicate 'subsystem == "com.apple.VDCAssistant" && \
eventMessage CONTAINS[c] "kCameraStream"' --last 1m --no-debug --no-pager \
--style compact | tail -n +2)
#or
log stream ... # streaming is better to generate events
- jeremy8883 5y agoThank you! I couldn't originally figure this out for my "on air" script, so my workaround was to query the existance of the `zoom.us` process every second.