Просмотр исходного кода

feat(iframe_api): Getter for the iframe

master
hristoterezov 8 лет назад
Родитель
Сommit
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
 var numberOfParticipants = api.getNumberOfParticipants();
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
 You can remove the embedded Jitsi Meet Conference with the following API function:
242
 You can remove the embedded Jitsi Meet Conference with the following API function:
238
 ```javascript
243
 ```javascript
239
 api.dispose()
244
 api.dispose()

+ 9
- 0
modules/API/external/external_api.js Просмотреть файл

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
      * Returns the number of participants in the conference. The local
426
      * Returns the number of participants in the conference. The local
418
      * participant is included.
427
      * participant is included.

Загрузка…
Отмена
Сохранить