clowdr-web-app
clowdr-web-app copied to clipboard
Issues with Chrome and camera capture
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.
Might some of this be related to the fix in #172 ?
It might be related, although I saw this issue yesterday so there must still be something going on.
As I understood it, at least, the multiple-camera part of what you describe might be intended behavior.
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).