feat(iframe_api): Getter for the iframe

This commit is contained in:
hristoterezov 2017-07-13 13:10:32 -05:00 committed by yanas
parent b84e910086
commit cc6fcfd982
2 changed files with 14 additions and 0 deletions

View File

@ -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()

View File

@ -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.