Explorar el Código

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

j8
hristoterezov hace 9 años
padre
commit
59147f059d
Se han modificado 2 ficheros con 12 adiciones y 1 borrados
  1. 5
    0
      doc/api.md
  2. 7
    1
      external_api.js

+ 5
- 0
doc/api.md Ver fichero

@@ -29,6 +29,11 @@ constructor.
29 29
 ``` 
30 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 37
 Controlling embedded Jitsi Meet Conference
33 38
 =========
34 39
 

+ 7
- 1
external_api.js Ver fichero

@@ -23,9 +23,12 @@ var JitsiMeetExternalAPI = (function()
23 23
      * @param width width of the iframe
24 24
      * @param height height of the iframe
25 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 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 32
         if(!width || width < MIN_WIDTH)
30 33
             width = MIN_WIDTH;
31 34
         if(!height || height < MIN_HEIGHT)
@@ -49,6 +52,9 @@ var JitsiMeetExternalAPI = (function()
49 52
         if(room_name)
50 53
             this.url += room_name;
51 54
         this.url += "#external=true";
55
+        if(filmStripOnly)
56
+            this.url += "&config.filmStripOnly=true";
57
+
52 58
         JitsiMeetExternalAPI.id++;
53 59
 
54 60
         this.frame = document.createElement("iframe");

Loading…
Cancelar
Guardar