From 296fe622dfebd8f3cc90491c82ef7ef9888b0bd6 Mon Sep 17 00:00:00 2001 From: Juliusz Chroboczek Date: Mon, 21 Feb 2022 18:19:25 +0100 Subject: [PATCH] Share audio in addition to video. --- static/galene.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/static/galene.js b/static/galene.js index 0f44fc2..5473ea4 100644 --- a/static/galene.js +++ b/static/galene.js @@ -1393,7 +1393,10 @@ async function addShareMedia() { try { if(!('getDisplayMedia' in navigator.mediaDevices)) throw new Error('Your browser does not support screen sharing'); - stream = await navigator.mediaDevices.getDisplayMedia({video: true}); + stream = await navigator.mediaDevices.getDisplayMedia({ + video: true, + audio: true, + }); } catch(e) { console.error(e); displayError(e);