Commit 296fe622 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Share audio in addition to video.

parent 3c98e152
......@@ -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);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment