Share audio in addition to video.
This commit is contained in:
+4
-1
@@ -1393,7 +1393,10 @@ async function addShareMedia() {
|
|||||||
try {
|
try {
|
||||||
if(!('getDisplayMedia' in navigator.mediaDevices))
|
if(!('getDisplayMedia' in navigator.mediaDevices))
|
||||||
throw new Error('Your browser does not support screen sharing');
|
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) {
|
} catch(e) {
|
||||||
console.error(e);
|
console.error(e);
|
||||||
displayError(e);
|
displayError(e);
|
||||||
|
|||||||
Reference in New Issue
Block a user