feat(screenshare): emit source type when starting screenshare (#3959)

* feat(screenshare): emit source type when starting screenshare

* squash: update doc
This commit is contained in:
virtuacoplenny
2019-03-06 21:46:17 -08:00
committed by GitHub
parent 98c7430b6f
commit 08f2edf350
3 changed files with 23 additions and 4 deletions

View File

@@ -556,12 +556,17 @@ class API {
* has been turned on/off.
*
* @param {boolean} on - True if screen sharing is enabled.
* @param {Object} details - Additional information about the screen
* sharing.
* @param {string} details.sourceType - Type of device or window the screen
* share is capturing.
* @returns {void}
*/
notifyScreenSharingStatusChanged(on: boolean) {
notifyScreenSharingStatusChanged(on: boolean, details: Object) {
this._sendEvent({
name: 'screen-sharing-status-changed',
on
on,
details
});
}