openvidu-electron: use new standardized screen videoSource
This commit is contained in:
parent
ec6171563a
commit
944ce6035b
@ -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
Loading…
x
Reference in New Issue
Block a user