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;
|
let stream = null;
|
||||||
try {
|
try {
|
||||||
stream = await navigator.mediaDevices.getDisplayMedia({});
|
stream = await navigator.mediaDevices.getDisplayMedia({video: true});
|
||||||
} catch(e) {
|
} catch(e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
displayError(e);
|
displayError(e);
|
||||||
|
|||||||
Reference in New Issue
Block a user