From c9865830cc57de6952dc86053e50adb571ddfcd4 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Thu, 10 Sep 2020 10:02:34 +0200 Subject: [PATCH] Fix screen sharing on Safari. Apparently Safari requires {video: true}. --- static/sfu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/sfu.js b/static/sfu.js index dd910b6..c5cb5bf 100644 --- a/static/sfu.js +++ b/static/sfu.js @@ -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);