openvidu-browser: bug fix when selecting Entire screen in Electron

pull/375/head
pabloFuente 2019-06-05 14:14:44 +02:00
parent fafd42e6e5
commit 5086e5dbd6
1 changed files with 1 additions and 1 deletions

View File

@ -556,7 +556,7 @@ export class OpenVidu {
const prefix = "screen:"; const prefix = "screen:";
const videoSourceString: string = publisherProperties.videoSource; 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']) = { (<any>mediaConstraints['video']) = {
mandatory: { mandatory: {
chromeMediaSource: 'desktop', chromeMediaSource: 'desktop',