|
@@ -43,11 +43,9 @@ You can control the embedded Jitsi Meet conference using the JitsiMeetExternalAP
|
43
|
43
|
|
44
|
44
|
You can send command to Jitsi Meet conference using ```executeCommand```.
|
45
|
45
|
```
|
46
|
|
-api.executeCommand(command, arguments)
|
|
46
|
+api.executeCommand(command, ...arguments)
|
47
|
47
|
```
|
48
|
48
|
The ```command``` parameter is String object with the name of the command.
|
49
|
|
-The ```arguments``` parameter is array with the arguments required by the command.
|
50
|
|
-If no arguments are required by the command this parameter can be omitted or you can pass empty array.
|
51
|
49
|
Currently we support the following commands:
|
52
|
50
|
|
53
|
51
|
|
|
@@ -58,33 +56,43 @@ api.executeCommand('displayName', 'New Nickname');
|
58
|
56
|
```
|
59
|
57
|
* **toggleAudio** - mutes / unmutes the audio for the local participant. No arguments are required.
|
60
|
58
|
```
|
61
|
|
-api.executeCommand('toggleAudio', [])
|
|
59
|
+api.executeCommand('toggleAudio')
|
62
|
60
|
```
|
63
|
61
|
* **toggleVideo** - mutes / unmutes the video for the local participant. No arguments are required.
|
64
|
62
|
```
|
65
|
|
-api.executeCommand('toggleVideo', [])
|
|
63
|
+api.executeCommand('toggleVideo')
|
66
|
64
|
```
|
67
|
65
|
* **toggleFilmStrip** - hides / shows the film strip. No arguments are required.
|
68
|
66
|
```
|
69
|
|
-api.executeCommand('filmStrip', [])
|
|
67
|
+api.executeCommand('filmStrip')
|
70
|
68
|
```
|
71
|
69
|
* **toggleChat** - hides / shows the chat. No arguments are required.
|
72
|
70
|
```
|
73
|
|
-api.executeCommand('toggleChat', [])
|
|
71
|
+api.executeCommand('toggleChat')
|
74
|
72
|
```
|
75
|
73
|
* **toggleContactList** - hides / shows the contact list. No arguments are required.
|
76
|
74
|
```
|
77
|
|
-api.executeCommand('toggleContactList', [])
|
|
75
|
+api.executeCommand('toggleContactList')
|
78
|
76
|
```
|
79
|
77
|
|
80
|
78
|
* **toggleShareScreen** - starts / stops the screen sharing. No arguments are required.
|
81
|
79
|
```
|
82
|
|
-api.executeCommand('toggleShareScreen', [])
|
|
80
|
+api.executeCommand('toggleShareScreen')
|
83
|
81
|
```
|
84
|
82
|
|
85
|
83
|
* **hangup** - Hangups the call. No arguments are required.
|
86
|
84
|
```
|
87
|
|
-api.executeCommand('hangup', [])
|
|
85
|
+api.executeCommand('hangup')
|
|
86
|
+```
|
|
87
|
+
|
|
88
|
+* **email** - Hangups the call. No arguments are required.
|
|
89
|
+```
|
|
90
|
+api.executeCommand('email', 'example@example.com')
|
|
91
|
+```
|
|
92
|
+
|
|
93
|
+* **avatarUrl** - Hangups the call. No arguments are required.
|
|
94
|
+```
|
|
95
|
+api.executeCommand('avatarUrl', 'avatarUrl')
|
88
|
96
|
```
|
89
|
97
|
|
90
|
98
|
You can also execute multiple commands using the method ```executeCommands```.
|