Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

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

hristoterezov59147f059db0
diff --git a/doc/api.md b/doc/api.md
index d52fc0e067..1397299042 100644
--- a/doc/api.md
+++ b/doc/api.md
@@ -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
=========
diff --git a/external_api.js b/external_api.js
index 91996e08ed..a13568d9cf 100644
--- a/external_api.js
+++ b/external_api.js
@@ -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");