openvidu-browser: bug fix when selecting Entire screen in Electron
This commit is contained in:
parent
fafd42e6e5
commit
5086e5dbd6
@ -556,7 +556,7 @@ export class OpenVidu {
|
||||
|
||||
const prefix = "screen:";
|
||||
const videoSourceString: string = publisherProperties.videoSource;
|
||||
const electronScreenId = videoSourceString.substr(videoSourceString.lastIndexOf(prefix) + prefix.length);
|
||||
const electronScreenId = videoSourceString.substr(videoSourceString.indexOf(prefix) + prefix.length);
|
||||
(<any>mediaConstraints['video']) = {
|
||||
mandatory: {
|
||||
chromeMediaSource: 'desktop',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user