Adds a parameter to API constructor that enables film strip only mode.

pull/334/merge 598
hristoterezov 9 years ago
parent 7793d65a99
commit 59147f059d
  1. 5
      doc/api.md
  2. 8
      external_api.js

@ -29,6 +29,11 @@ constructor.
``` ```
If you don't specify room the user will enter in new conference with random room name. If you don't specify room the user will enter in new conference with random room name.
You can enable the "film strip only" mode(only the small videos are visible) by setting 6th parameter to ```true```:
```javascript
var api = new JitsiMeetExternalAPI(domain, room, width, height, htmlElement, true);
```
Controlling embedded Jitsi Meet Conference Controlling embedded Jitsi Meet Conference
========= =========

@ -23,9 +23,12 @@ var JitsiMeetExternalAPI = (function()
* @param width width of the iframe * @param width width of the iframe
* @param height height of the iframe * @param height height of the iframe
* @param parent_node the node that will contain the iframe * @param parent_node the node that will contain the iframe
* @param filmStripOnly if the value is true only the small videos will be
* visible.
* @constructor * @constructor
*/ */
function JitsiMeetExternalAPI(domain, room_name, width, height, parentNode) { function JitsiMeetExternalAPI(domain, room_name, width, height, parentNode,
filmStripOnly) {
if(!width || width < MIN_WIDTH) if(!width || width < MIN_WIDTH)
width = MIN_WIDTH; width = MIN_WIDTH;
if(!height || height < MIN_HEIGHT) if(!height || height < MIN_HEIGHT)
@ -49,6 +52,9 @@ var JitsiMeetExternalAPI = (function()
if(room_name) if(room_name)
this.url += room_name; this.url += room_name;
this.url += "#external=true"; this.url += "#external=true";
if(filmStripOnly)
this.url += "&config.filmStripOnly=true";
JitsiMeetExternalAPI.id++; JitsiMeetExternalAPI.id++;
this.frame = document.createElement("iframe"); this.frame = document.createElement("iframe");

Loading…
Cancel
Save