Skip to content

Commit

Permalink
feat(iframe_api): Getter for the iframe
Browse files Browse the repository at this point in the history
  • Loading branch information
hristoterezov authored and yanas committed Jul 14, 2017
1 parent b84e910 commit cc6fcfd
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
5 changes: 5 additions & 0 deletions doc/api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
9 changes: 9 additions & 0 deletions modules/API/external/external_api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit cc6fcfd

Please sign in to comment.