Compare commits

...

1 Commits

Author SHA1 Message Date
Pawel Domas
1a79c20932 fix(useVideoStream): a crash after GUM failure
Fixes a crash which happens after GUM fails without any
track previosuly created.

Steps to reproduce:

1. Join a meeting without camera.
2. Disable camera access permissions in the browser.
3. Try to use the camera button.
2023-03-13 16:16:01 -05:00

View File

@@ -1455,7 +1455,7 @@ export default {
logger.debug(`useVideoStream: Replacing ${oldTrack} with ${newTrack}`);
if (oldTrack === newTrack) {
if (oldTrack === newTrack || (!oldTrack && !newTrack)) {
resolve();
onFinish();