mirror of https://github.com/OpenVidu/openvidu.git
openvidu-browser: bug fix when selecting Entire screen in Electron
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…
Reference in New Issue