1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-22 08:35:57 +01:00

Share audio in addition to video.

This commit is contained in:
Juliusz Chroboczek 2022-02-21 18:19:25 +01:00
parent 3c98e15229
commit 296fe622df

View file

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