Menu

Detect Camera Status

2020-04-20
2020-04-27
  • Jeff Bramwell

    Jeff Bramwell - 2020-04-20

    Is there a way to detect if the camera is already running (e.g. because of Slack, Teams, Zoom, etc.)? I am wanting to be able to tell if the camera is already turned on or off so I can take an action based upon that status. I am OK with polling if necessary (e.g. because there are no events for camera status updates) but I haven't found the right call yet.

    Thanks!

     
  • Eric

    Eric - 2020-04-27

    Hi,

    There is no API i'm aware to detect if a camera device is already in use.

    Prior, Windows 10 Anniversary Update, if a such device was in use, you had an error code during the graph building but now, Microsoft make changes in the OS that allow camera sharing. So a graph building should always be successful, even when another application already use the camera.

     

Log in to post a comment.