Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat(external_api): Expose the Etherpad SharedDocument URL

Damien Fetis481e8634e024
diff --git a/modules/API/API.js b/modules/API/API.js
old mode 100644
new mode 100755
index eeaedbc5c3..9ab1d619ef
--- a/modules/API/API.js
+++ b/modules/API/API.js
@@ -1050,6 +1050,12 @@ function initCommands() {
callback(getRoomsInfo(APP.store.getState()));
break;
}
+ case 'get-shared-document-url': {
+ const { etherpad } = APP.store.getState()['features/etherpad'];
+
+ callback(etherpad?.documentUrl || '');
+ break;
+ }
case 'get-p2p-status': {
callback(isP2pActive(APP.store.getState()));
break;
diff --git a/modules/API/external/external_api.js b/modules/API/external/external_api.js
index 9960851f28..d5cd5e587e 100644
--- a/modules/API/external/external_api.js
+++ b/modules/API/external/external_api.js
@@ -682,6 +682,17 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
});
}
+ /**
+ * Returns the Shared Document Url of the conference.
+ *
+ * @returns {Object} Rooms info.
+ */
+ async getSharedDocumentUrl() {
+ return this._transport.sendRequest({
+ name: 'get-shared-document-url'
+ });
+ }
+
/**
* Returns whether the conference is P2P.
*