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

This commit is contained in:
hristoterezov 2015-08-06 19:01:21 -05:00
parent 7793d65a99
commit 59147f059d
2 changed files with 12 additions and 1 deletions

View File

@ -29,6 +29,11 @@ constructor.
```
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
=========

View File

@ -23,9 +23,12 @@ var JitsiMeetExternalAPI = (function()
* @param width width of the iframe
* @param height height of 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
*/
function JitsiMeetExternalAPI(domain, room_name, width, height, parentNode) {
function JitsiMeetExternalAPI(domain, room_name, width, height, parentNode,
filmStripOnly) {
if(!width || width < MIN_WIDTH)
width = MIN_WIDTH;
if(!height || height < MIN_HEIGHT)
@ -49,6 +52,9 @@ var JitsiMeetExternalAPI = (function()
if(room_name)
this.url += room_name;
this.url += "#external=true";
if(filmStripOnly)
this.url += "&config.filmStripOnly=true";
JitsiMeetExternalAPI.id++;
this.frame = document.createElement("iframe");