1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-23 00:55:58 +01:00

Fix screen sharing on Safari.

Apparently Safari requires {video: true}.
This commit is contained in:
Juliusz Chroboczek 2020-09-10 10:02:34 +02:00
parent 346f93dd16
commit c9865830cc

View file

@ -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);