diff --git a/doc/api.md b/doc/api.md index a044d5592..eba26cc49 100644 --- a/doc/api.md +++ b/doc/api.md @@ -234,6 +234,11 @@ You can get the number of participants in the conference with the following API var numberOfParticipants = api.getNumberOfParticipants(); ``` +You can get the iframe HTML element where Jitsi Meet is loaded with the following API function: +```javascript +var iframe = api.getIFrame(); +``` + You can remove the embedded Jitsi Meet Conference with the following API function: ```javascript api.dispose() diff --git a/modules/API/external/external_api.js b/modules/API/external/external_api.js index c651a97e0..b7e33cdb0 100644 --- a/modules/API/external/external_api.js +++ b/modules/API/external/external_api.js @@ -413,6 +413,15 @@ export default class JitsiMeetExternalAPI extends EventEmitter { } } + /** + * Returns the iframe that loads Jitsi Meet. + * + * @returns {HTMLElement} The iframe. + */ + getIFrame() { + return this.frame; + } + /** * Returns the number of participants in the conference. The local * participant is included.