Browse Source

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

master
hristoterezov 10 years ago
parent
commit
59147f059d
2 changed files with 12 additions and 1 deletions
  1. 5
    0
      doc/api.md
  2. 7
    1
      external_api.js

+ 5
- 0
doc/api.md View File

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

+ 7
- 1
external_api.js View File

23
      * @param width width of the iframe
23
      * @param width width of the iframe
24
      * @param height height of the iframe
24
      * @param height height of the iframe
25
      * @param parent_node the node that will contain the iframe
25
      * @param parent_node the node that will contain the iframe
26
+     * @param filmStripOnly if the value is true only the small videos will be
27
+     * visible.
26
      * @constructor
28
      * @constructor
27
      */
29
      */
28
-    function JitsiMeetExternalAPI(domain, room_name, width, height, parentNode) {
30
+    function JitsiMeetExternalAPI(domain, room_name, width, height, parentNode,
31
+        filmStripOnly) {
29
         if(!width || width < MIN_WIDTH)
32
         if(!width || width < MIN_WIDTH)
30
             width = MIN_WIDTH;
33
             width = MIN_WIDTH;
31
         if(!height || height < MIN_HEIGHT)
34
         if(!height || height < MIN_HEIGHT)
49
         if(room_name)
52
         if(room_name)
50
             this.url += room_name;
53
             this.url += room_name;
51
         this.url += "#external=true";
54
         this.url += "#external=true";
55
+        if(filmStripOnly)
56
+            this.url += "&config.filmStripOnly=true";
57
+
52
         JitsiMeetExternalAPI.id++;
58
         JitsiMeetExternalAPI.id++;
53
 
59
 
54
         this.frame = document.createElement("iframe");
60
         this.frame = document.createElement("iframe");

Loading…
Cancel
Save