openvidu-electron: use new standardized screen videoSource

This commit is contained in:
pabloFuente 2019-05-31 12:51:12 +02:00
parent ec6171563a
commit 944ce6035b
2 changed files with 2 additions and 11 deletions

View File

@ -78,18 +78,9 @@ function openScreenShareModal() {
// win.webContents.openDevTools();
win.on('close', async () => {
if (!!screenId) {
const stream = await navigator.mediaDevices.getUserMedia({
audio: false,
video: {
mandatory: {
chromeMediaSource: 'desktop',
chromeMediaSourceId: screenId
}
}
});
showSession();
publisher = openvidu.initPublisher("publisher", {
videoSource: stream.getVideoTracks()[0]
videoSource: "screen:" + screenId
});
joinSession();
}

File diff suppressed because one or more lines are too long