浏览代码

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

j8
hristoterezov 9 年前
父节点
当前提交
59147f059d
共有 2 个文件被更改,包括 12 次插入1 次删除
  1. 5
    0
      doc/api.md
  2. 7
    1
      external_api.js

+ 5
- 0
doc/api.md 查看文件

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 查看文件

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");

正在加载...
取消
保存