Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
feat(external-api) Expose meeting session (#14522)
Horatiu Muresanfad58ae362e0
diff --git a/modules/API/API.js b/modules/API/API.jsindex d7e1d64d0d..6999e99aed 100644--- a/modules/API/API.js+++ b/modules/API/API.js@@ -981,6 +981,12 @@ function initCommands() {callback(isP2pActive(APP.store.getState()));break;}+ case 'session-id': {+ const { conference } = APP.store.getState()['features/base/conference'];++ callback(conference?.getMeetingUniqueId() || '');+ break;+ }case '_new_electron_screensharing_supported': {callback(true);break;diff --git a/modules/API/external/external_api.js b/modules/API/external/external_api.jsindex ce98070218..0938cf9d24 100644--- a/modules/API/external/external_api.js+++ b/modules/API/external/external_api.js@@ -1229,6 +1229,17 @@ export default class JitsiMeetExternalAPI extends EventEmitter {return this._numberOfParticipants;}+ /**+ * Return the conference`s sessionId.+ *+ * @returns {Promise} - Resolves with the conference`s sessionId.+ */+ getSessionId() {+ return this._transport.sendRequest({+ name: 'session-id'+ });+ }+/*** Returns array of commands supported by executeCommand().*