feat(API): add dominant speaker changed event

Fixes: https://github.com/jitsi/jitsi-meet/issues/4049
This commit is contained in:
Karthik Muralidharan
2019-08-09 13:39:33 +05:30
committed by Saúl Ibarra Corretgé
parent c3e52f32f9
commit b658f20a30
4 changed files with 35 additions and 2 deletions

View File

@@ -709,6 +709,20 @@ class API {
});
}
/**
* Notify external application (if API is enabled) that the dominant speaker
* has been turned on/off.
*
* @param {string} id - Id of the dominant participant.
* @returns {void}
*/
notifyDominantSpeakerChanged(id: string) {
this._sendEvent({
name: 'dominant-speaker-changed',
id
});
}
/**
* Notify external application (if API is enabled) that the conference
* changed their subject.