aardappel / procrastitracker

a Windows time tracking application
http://strlen.com/procrastitracker/
483 stars 53 forks source link

Feature Request: Not idle if webcam is active #90

Open xpac1985 opened 2 years ago

xpac1985 commented 2 years ago

My suggestion for regular users of Teams, Webex, Zoom etc is: Add an option in settings that does not consider the user idle if the webcam is being used. Windows 10+ can show this as an icon, I could imagine (but do not know) that's it's a rather simple API call to detect that.

aardappel commented 2 years ago

Seems there is no simple API, this would see if its in use but ends up turning the camera on if it's not, which is not desirable: https://stackoverflow.com/questions/61132854/how-can-i-determine-if-a-webcam-is-in-use-on-windows-10-without-activating-the-c

This can detect if there is a webcam at all but that is not sufficienct: https://stackoverflow.com/questions/1589154/how-can-i-detect-if-there-is-a-webcam-connected-to-the-pc/1595188#1595188