Selaa lähdekoodia

feat(iframe_api): Getter for the iframe

master
hristoterezov 8 vuotta sitten
vanhempi
commit
cc6fcfd982
2 muutettua tiedostoa jossa 14 lisäystä ja 0 poistoa
  1. 5
    0
      doc/api.md
  2. 9
    0
      modules/API/external/external_api.js

+ 5
- 0
doc/api.md Näytä tiedosto

@@ -234,6 +234,11 @@ You can get the number of participants in the conference with the following API
234 234
 var numberOfParticipants = api.getNumberOfParticipants();
235 235
 ```
236 236
 
237
+You can get the iframe HTML element where Jitsi Meet is loaded with the following API function:
238
+```javascript
239
+var iframe = api.getIFrame();
240
+```
241
+
237 242
 You can remove the embedded Jitsi Meet Conference with the following API function:
238 243
 ```javascript
239 244
 api.dispose()

+ 9
- 0
modules/API/external/external_api.js Näytä tiedosto

@@ -413,6 +413,15 @@ export default class JitsiMeetExternalAPI extends EventEmitter {
413 413
         }
414 414
     }
415 415
 
416
+    /**
417
+     * Returns the iframe that loads Jitsi Meet.
418
+     *
419
+     * @returns {HTMLElement} The iframe.
420
+     */
421
+    getIFrame() {
422
+        return this.frame;
423
+    }
424
+
416 425
     /**
417 426
      * Returns the number of participants in the conference. The local
418 427
      * participant is included.

Loading…
Peruuta
Tallenna