introlab / opentera

OpenTera - Open TeleRehabilitation Server and Micro-Services
https://github.com/introlab/opentera
Apache License 2.0
17 stars 9 forks source link

VideoRehab: Enumerate devices fails if first camera is in use #242

Closed SBriere closed 9 months ago

SBriere commented 9 months ago

Describe the bug When starting a videorehab session, if the first camera in the list is in used and unavailable, an error message is displayed and we're unable to do anything else.

To Reproduce

  1. Open the default camera in another software.
  2. Launch a video rehab session.

Expected behavior Camera should not be opened if not needed. For the initial enumerate event ( and for other camera switch), we should try the next camera in the list in case of an issue.