瀏覽代碼

Merge branch 'rename-mute-to-toggle'

master
Boris Grozev 10 年之前
父節點
當前提交
b4983b2566
共有 3 個文件被更改,包括 13 次插入13 次删除
  1. 5
    5
      doc/api.md
  2. 4
    4
      external_api.js
  3. 4
    4
      modules/API/API.js

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

@@ -49,13 +49,13 @@ the new display name to be set
49 49
 ```
50 50
 api.executeCommand('displayName', ['New Nickname']);
51 51
 ```
52
-* **muteAudio** - mutes / unmutes the audio for the local participant. No arguments are required.
52
+* **toggleAudio** - mutes / unmutes the audio for the local participant. No arguments are required.
53 53
 ```
54
-api.executeCommand('muteAudio', [])
54
+api.executeCommand('toggleAudio', [])
55 55
 ```
56
-* **muteVideo** - mutes / unmutes the video for the local participant. No arguments are required.
56
+* **toggleVideo** - mutes / unmutes the video for the local participant. No arguments are required.
57 57
 ```
58
-api.executeCommand('muteVideo', [])
58
+api.executeCommand('toggleVideo', [])
59 59
 ```
60 60
 * **toggleFilmStrip** - hides / shows the film strip. No arguments are required.
61 61
 ```
@@ -78,7 +78,7 @@ The ```commands``` parameter is object with keys the names of the commands and v
78 78
 commands.
79 79
 
80 80
 ```
81
-api.executeCommands({displayName: ['nickname'], muteAudio: []});
81
+api.executeCommands({displayName: ['nickname'], toggleAudio: []});
82 82
 ```
83 83
 
84 84
 You can add event listeners to the embedded Jitsi Meet using ```addEventListener``` method.

+ 4
- 4
external_api.js 查看文件

@@ -92,8 +92,8 @@ var JitsiMeetExternalAPI = (function()
92 92
      * Executes command. The available commands are:
93 93
      * displayName - sets the display name of the local participant to the value
94 94
      * passed in the arguments array.
95
-     * muteAudio - mutes / unmutes audio with no arguments
96
-     * muteVideo - mutes / unmutes video with no arguments
95
+     * toggleAudio - mutes / unmutes audio with no arguments
96
+     * toggleVideo - mutes / unmutes video with no arguments
97 97
      * filmStrip - hides / shows the film strip with no arguments
98 98
      * If the command doesn't require any arguments the parameter should be set
99 99
      * to empty array or it may be omitted.
@@ -114,8 +114,8 @@ var JitsiMeetExternalAPI = (function()
114 114
      * Executes commands. The available commands are:
115 115
      * displayName - sets the display name of the local participant to the value
116 116
      * passed in the arguments array.
117
-     * muteAudio - mutes / unmutes audio with no arguments
118
-     * muteVideo - mutes / unmutes video with no arguments
117
+     * toggleAudio - mutes / unmutes audio with no arguments
118
+     * toggleVideo - mutes / unmutes video with no arguments
119 119
      * filmStrip - hides / shows the film strip with no arguments
120 120
      * @param object the object with commands to be executed. The keys of the
121 121
      * object are the commands that will be executed and the values are the

+ 4
- 4
modules/API/API.js 查看文件

@@ -11,8 +11,8 @@ var XMPPEvents = require("../../service/xmpp/XMPPEvents");
11 11
  * List of the available commands.
12 12
  * @type {{
13 13
  *              displayName: inputDisplayNameHandler,
14
- *              muteAudio: toggleAudio,
15
- *              muteVideo: toggleVideo,
14
+ *              toggleAudio: toggleAudio,
15
+ *              toggleVideo: toggleVideo,
16 16
  *              toggleFilmStrip: toggleFilmStrip,
17 17
  *              toggleChat: toggleChat,
18 18
  *              toggleContactList: toggleContactList
@@ -23,8 +23,8 @@ var commands = {};
23 23
 function initCommands() {
24 24
     commands = {
25 25
         displayName: APP.UI.inputDisplayNameHandler,
26
-        muteAudio: APP.UI.toggleAudio,
27
-        muteVideo: APP.UI.toggleVideo,
26
+        toggleAudio: APP.UI.toggleAudio,
27
+        toggleVideo: APP.UI.toggleVideo,
28 28
         toggleFilmStrip: APP.UI.toggleFilmStrip,
29 29
         toggleChat: APP.UI.toggleChat,
30 30
         toggleContactList: APP.UI.toggleContactList

Loading…
取消
儲存