feat(iframe_api): Getter for the iframe
This commit is contained in:
parent
b84e910086
commit
cc6fcfd982
|
@ -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()
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue