1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-09 18:25: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;
try {
stream = await navigator.mediaDevices.getDisplayMedia({});
stream = await navigator.mediaDevices.getDisplayMedia({video: true});
} catch(e) {
console.error(e);
displayError(e);