RTC-5104: screensharing indicator (#536)

* RTC-5104: screensharing indicator

* RTC-5104: screensharing indicator, windows fixes
This commit is contained in:
SergeyS
2019-01-03 13:48:50 +01:00
committed by Vishwas Shashidhar
parent 4832c28dd2
commit 9609bc7976
14 changed files with 363 additions and 7 deletions

View File

@@ -17,6 +17,7 @@ const { bringToFront } = require('./bringToFront.js');
const eventEmitter = require('./eventEmitter');
const { isMac } = require('./utils/misc');
const { openScreenPickerWindow } = require('./desktopCapturer');
const { openScreenSharingIndicator } = require('./screenSharingIndicator');
const { setPreloadMemoryInfo, setIsInMeeting, setPreloadWindow } = require('./memoryMonitor');
const apiEnums = require('./enums/api.js');
@@ -179,6 +180,11 @@ electron.ipcMain.on(apiName, (event, arg) => {
windowMgr.handleKeyPress(arg.keyCode);
}
break;
case apiCmds.openScreenSharingIndicator:
if (typeof arg.displayId === 'string' && typeof arg.id === 'number') {
openScreenSharingIndicator(event.sender, arg.displayId, arg.id);
}
break;
default:
}