mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
feat(external-api) Add functions to query supported commands/events
This commit is contained in:
committed by
Saúl Ibarra Corretgé
parent
1b4d666af3
commit
5a6f3ead5a
18
modules/API/external/external_api.js
vendored
18
modules/API/external/external_api.js
vendored
@@ -1191,6 +1191,24 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
|
||||
return this._numberOfParticipants;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns array of commands supported by executeCommand().
|
||||
*
|
||||
* @returns {Array<string>} Array of commands.
|
||||
*/
|
||||
getSupportedCommands() {
|
||||
return Object.keys(commands);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns array of events supported by addEventListener().
|
||||
*
|
||||
* @returns {Array<string>} Array of events.
|
||||
*/
|
||||
getSupportedEvents() {
|
||||
return Object.values(events);
|
||||
}
|
||||
|
||||
/**
|
||||
* Check if the video is available.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user