mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
feat: add custom buttons for participant menu and toolbar via config (#12832)
* add custom remote menu button * add config for custom buttons * whitelist custom buttons flag * add toolbox custom button * fix notify toolbox buttons * whitelist toolbar custom buttons * rename and fix notify * rename participant remote menu * revert some flag wrong changes * fix some formatings * add undefined type to custom buttons toolbox * code review * code review 2 * fix linting issue
This commit is contained in:
@@ -1941,6 +1941,21 @@ class API {
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Notify external application ( if API is enabled) that a participant menu button was clicked.
|
||||
*
|
||||
* @param {string} key - The key of the participant menu button.
|
||||
* @param {string} participantId - The ID of the participant for with the participant menu button was clicked.
|
||||
* @returns {void}
|
||||
*/
|
||||
notifyParticipantMenuButtonClicked(key, participantId) {
|
||||
this._sendEvent({
|
||||
name: 'participant-menu-button-clicked',
|
||||
key,
|
||||
participantId
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Disposes the allocated resources.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user