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 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',
|
||||||
|
|
Loading…
Reference in New Issue