瀏覽代碼

feat(iframe_api): Getter for the iframe

master
hristoterezov 8 年之前
父節點
當前提交
cc6fcfd982
共有 2 個檔案被更改,包括 14 行新增0 行删除
  1. 5
    0
      doc/api.md
  2. 9
    0
      modules/API/external/external_api.js

+ 5
- 0
doc/api.md 查看文件

@@ -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 查看文件

@@ -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…
取消
儲存