Просмотр исходного кода

Updates the external api docs.

j8
Boris Grozev 9 лет назад
Родитель
Сommit
7b35dd89bb
1 измененных файлов: 5 добавлений и 3 удалений
  1. 5
    3
      doc/api.md

+ 5
- 3
doc/api.md Просмотреть файл

@@ -29,9 +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```:
32
+You can overwrite options set in config.js and interface_config.js. For example, to enable the film-strip-only interface mode and disable simulcast, you can use:
33 33
 ```javascript
34
-    var api = new JitsiMeetExternalAPI(domain, room, width, height, htmlElement, true);
34
+    var configOverwrite = {enableSimulcast: false};
35
+    var interfaceConfigOverwrite = {filmStripOnly: true};
36
+    var api = new JitsiMeetExternalAPI(domain, room, width, height, htmlElement, true, configOverwrite, interfaceConfigOverwrite);
35 37
 ``` 
36 38
 
37 39
 Controlling embedded Jitsi Meet Conference
@@ -171,4 +173,4 @@ You can remove the embedded Jitsi Meet Conference with the following code:
171 173
 api.dispose()
172 174
 ```
173 175
 
174
-It is a good practice to remove the conference before the page is unloaded. 
176
+It is a good practice to remove the conference before the page is unloaded. 

Загрузка…
Отмена
Сохранить