feat(api): add notifications for kicked participants

This commit is contained in:
Leonard Kim
2019-06-28 15:22:43 -07:00
committed by virtuacoplenny
parent 2dc06c28e3
commit 0734ce7ae3
6 changed files with 76 additions and 1 deletions

View File

@@ -658,6 +658,24 @@ class API {
});
}
/**
* Notify external application of a participant, remote or local, being
* removed from the conference by another participant.
*
* @param {string} kicked - The ID of the participant removed from the
* conference.
* @param {string} kicker - The ID of the participant that removed the
* other participant.
* @returns {void}
*/
notifyKickedOut(kicked: Object, kicker: Object) {
this._sendEvent({
name: 'participant-kicked-out',
kicked,
kicker
});
}
/**
* Notify external application of the current meeting requiring a password
* to join.