clowdr-web-app icon indicating copy to clipboard operation
clowdr-web-app copied to clipboard

Issues with Chrome and camera capture

Open hgoldstein95 opened this issue 4 years ago • 4 comments

I am not sure if this is a bug in CLOWDR or Chrome, but when entering and leaving a room Chrome continues capturing webcam input. In fact, I was actually able to join two rooms at once (from two tabs) even though I was only seeing one room. I have no idea if this can be easily replicated, but here's what I did:

  • Join room in one tab (1).
  • Join a room from another tab (2) and then quickly leave.
  • I experienced the (unsettling) situation where tab 1 showed me in a room, tab 2 showed me on a neutral page (lobby?), but people in both rooms could hear and see me.

hgoldstein95 avatar Aug 28 '20 14:08 hgoldstein95

Might some of this be related to the fix in #172 ?

jasonhemann avatar Aug 28 '20 15:08 jasonhemann

It might be related, although I saw this issue yesterday so there must still be something going on.

hgoldstein95 avatar Aug 28 '20 16:08 hgoldstein95

As I understood it, at least, the multiple-camera part of what you describe might be intended behavior.

jasonhemann avatar Aug 28 '20 16:08 jasonhemann

Being in multiple tabs seems intended. Continuing to be recorded after leaving a room isn't intended - you can repro that using just a single tab under the right circumstances (join, quickly leave. Or join on a slow connection and leave (Chrome/FF can artificially slow down connections)). This is probably caused by something like: "if you leave before the connection has been formed then the 'leave' event thinks there is no connection, even if it is currently being set up". This seems like a JS sequencing issue - that's what I'd go hunting for (async functions having a race condition).

EdNutting avatar Aug 28 '20 16:08 EdNutting