Fix screen sharing on Safari.
Apparently Safari requires {video: true}.
This commit is contained in:
+1
-1
@@ -413,7 +413,7 @@ async function addShareMedia(setup) {
|
||||
|
||||
let stream = null;
|
||||
try {
|
||||
stream = await navigator.mediaDevices.getDisplayMedia({});
|
||||
stream = await navigator.mediaDevices.getDisplayMedia({video: true});
|
||||
} catch(e) {
|
||||
console.error(e);
|
||||
displayError(e);
|
||||
|
||||
Reference in New Issue
Block a user