Display a notification when local stream fails.
We used to silently fail when there was a problem with camera permissions. Display a notification.
This commit is contained in:
@@ -378,6 +378,7 @@ async function addLocalMedia(id) {
|
||||
stream = await navigator.mediaDevices.getUserMedia(constraints);
|
||||
} catch(e) {
|
||||
console.error(e);
|
||||
displayError(e);
|
||||
if(old)
|
||||
delUpMedia(old);
|
||||
return;
|
||||
@@ -411,6 +412,7 @@ async function addShareMedia(setup) {
|
||||
stream = await navigator.mediaDevices.getDisplayMedia({});
|
||||
} catch(e) {
|
||||
console.error(e);
|
||||
displayError(e);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user