Implement external API notification about screen sharing status

This commit is contained in:
Slava Kisel
2018-01-30 18:43:06 +05:00
parent 80c4205fb8
commit e1d849e3a0
4 changed files with 51 additions and 7 deletions
+14
View File
@@ -471,6 +471,20 @@ class API {
this._sendEvent({ name: 'feedback-submitted' });
}
/**
* Notify external application (if API is enabled) that the screen sharing
* has been turned on/off.
*
* @param {boolean} on - True if screen sharing is enabled.
* @returns {void}
*/
notifyScreenSharingStatusChanged(on: boolean) {
this._sendEvent({
name: 'screen-sharing-status-changed',
on
});
}
/**
* Disposes the allocated resources.
*