瀏覽代碼

Update api.md

j8
Germán Figna 8 年之前
父節點
當前提交
00e6e98a61
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      doc/api.md

+ 2
- 2
doc/api.md 查看文件

@@ -33,7 +33,7 @@ You can overwrite options set in config.js and interface_config.js. For example,
33 33
 ```javascript
34 34
     var configOverwrite = {enableSimulcast: false};
35 35
     var interfaceConfigOverwrite = {filmStripOnly: true};
36
-    var api = new JitsiMeetExternalAPI(domain, room, width, height, htmlElement, true, configOverwrite, interfaceConfigOverwrite);
36
+    var api = new JitsiMeetExternalAPI(domain, room, width, height, htmlElement, configOverwrite, interfaceConfigOverwrite);
37 37
 ```
38 38
 
39 39
 Controlling embedded Jitsi Meet Conference
@@ -54,7 +54,7 @@ Currently we support the following commands:
54 54
 * **displayName** - sets the display name of the local participant. This command requires one argument -
55 55
 the new display name to be set
56 56
 ```
57
-api.executeCommand('displayName', ['New Nickname']);
57
+api.executeCommand('displayName', 'New Nickname');
58 58
 ```
59 59
 * **toggleAudio** - mutes / unmutes the audio for the local participant. No arguments are required.
60 60
 ```

Loading…
取消
儲存