@zoom/videosdk-ui-toolkit 1.9.8 → 1.10.8-2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,12 +1,10 @@
1
- # Zoom Video SDK UI toolkit for web (beta)
1
+ # Zoom Video SDK UI toolkit for web
2
2
 
3
3
  Use of this SDK is subject to our [Terms of Use](https://explore.zoom.us/en/video-sdk-terms/).
4
4
 
5
5
  The [Zoom Video SDK UI toolkit](https://developers.zoom.us/docs/video-sdk/web/ui-toolkit/) is a prebuilt video chat user interface powered by the Zoom Video SDK.
6
6
 
7
- ![Zoom Video SDK UI toolkit web](videosdk-ui-toolkit-web.png)
8
-
9
- > Zoom Video SDK UI toolkit is in a public beta. [Share your feedback with us](https://zoom.sjc1.qualtrics.com/jfe/form/SV_3NMYztWpWzNVSiG), and leverage the [beta FAQ](https://developers.zoom.us/docs/video-sdk/web/ui-toolkit/#beta-faq) for details.
7
+ ![Zoom Video SDK UI toolkit web](ui-toolkit–gallery-view.png)
10
8
 
11
9
  ## Installation
12
10
 
@@ -52,9 +50,9 @@ import uitoolkit from './@zoom/videosdk-ui-toolkit/index.js'
52
50
 
53
51
  ## Usage
54
52
 
55
- ### Open Preview
53
+ ### Show Preview
56
54
 
57
- To open the preview kit, to preview your camera, microphone, and speaker, create an HTML container that it will be render in:
55
+ To open the preview kit, to preview your camera, microphone, and speaker, create an HTML container that it will be rendered in:
58
56
 
59
57
  ```html
60
58
  <div id='previewContainer'></div>
@@ -78,7 +76,7 @@ uitoolkit.closePreview(previewContainer)
78
76
 
79
77
  ### Join Session
80
78
 
81
- To join a Video SDK session, create an HTML container that it will be render in:
79
+ To join a Video SDK session, create an HTML container that it will be rendered in:
82
80
 
83
81
  ```html
84
82
  <div id='sessionContainer'></div>
@@ -165,6 +163,193 @@ Currently, we support the following event listeners:
165
163
  | `offSessionJoined` | Unsubscribes to the `onSessionJoined` event. |
166
164
  | `offSessionClosed` | Unsubscribes to the `onSessionClosed` event. |
167
165
 
166
+ ## Build with UI Toolkit components
167
+
168
+ Zoom's UI Toolkit now offers Developers powerful built-in components that are ready to use. Currently, we offer the following components:
169
+
170
+ | Component | Description |
171
+ | ---------- | --------------------------------------------------- |
172
+ | `uitoolkit-components` | Gives UI Toolkit components access to Video SDK session and context. |
173
+ | `controls-component` | Enables users to envoke actions such as muting, starting video, screen sharing, and more. |
174
+ | `video-component` | Displays user videos and screen sharing. |
175
+ | `chat-component` | Displays session and 1:1 chat messages. |
176
+ | `users-component` | Displays the list of users in a session and allows hosts to moderate the session. |
177
+ | `settings-component` | Displays the session settings and allows users to configure virtual background, camera, microphone, and speaker devices, and see session quality statistics. |
178
+
179
+ ### Show UI Toolkit components
180
+
181
+ When building with UI Toolkit components, the `uitoolkit-components` component is a required wrapper around the UI Toolkit components. To begin, create an HTML container that it will be rendered in:
182
+
183
+ ```html
184
+ <div id='uitoolkitContainer'></div>
185
+ ```
186
+
187
+ Then, call the `uitoolkit.showUitoolkitComponents` function, passing in the container reference, and the Video SDK session config object:
188
+
189
+ ```js
190
+ var uitoolkitContainer = document.getElementById('uitoolkitContainer')
191
+
192
+ uitoolkit.showUitoolkitComponents(uitoolkitContainer, config)
193
+ ```
194
+
195
+ ### Hide UI Toolkit components
196
+
197
+ To close the wrapper, call the `uitoolkit.hideUiToolkitComponents` function while passing in the container reference:
198
+
199
+ ```js
200
+ uitoolkit.hideUiToolkitComponents(providerContainer)
201
+ ```
202
+
203
+ ### Show the controls component
204
+
205
+ The controls component is a required component that enables users to control their video call experience.
206
+ To render the controls component, create and HTML container and pass it into the `uitoolkit.showControlsComponent` function:
207
+
208
+ ```html
209
+ <div id='uitoolkitContainer'>
210
+ ...
211
+ <div id='controlsContainer'></div>
212
+ ...
213
+ </div>
214
+ ```
215
+
216
+ ```js
217
+ var controlsContainer = document.getElementById('controlsContainer')
218
+
219
+ uitoolkit.showControlsComponent(controlsContainer)
220
+ ```
221
+
222
+ ### Hide the controls component
223
+
224
+ To close the Control Bar Component, call the `uitoolkit.hideControlsComponent` function while passing in the container reference:
225
+
226
+ ```js
227
+ uitoolkit.hideControlsComponent(controlsContainer)
228
+ ```
229
+
230
+ ### Show the video component
231
+
232
+ To render the video component, create and HTML container and pass it into the `uitoolkit.showVideoComponent` function:
233
+
234
+ ```html
235
+ <div id='uitoolkitContainer'>
236
+ ...
237
+ <div id='videoContainer'></div>
238
+ ...
239
+ </div>
240
+ ```
241
+
242
+ ```js
243
+ var videoContainer = document.getElementById('videoContainer')
244
+
245
+ uitoolkit.showVideoComponent(videoContainer)
246
+ ```
247
+
248
+ ### Hide the video component
249
+
250
+ To close the video component, call the `uitoolkit.hideVideoComponent` function while passing in the container reference:
251
+
252
+ ```js
253
+ uitoolkit.hideVideoComponent(videoContainer)
254
+ ```
255
+
256
+ ### Show the chat component
257
+
258
+ To render the Chatkit, create and HTML container and pass it into the `uitoolkit.showChatComponent` function:
259
+
260
+ ```html
261
+ <div id='uitoolkitContainer'>
262
+ ...
263
+ <div id='chatContainer'></div>
264
+ ...
265
+ </div>
266
+ ```
267
+
268
+ ```js
269
+ var chatContainer = document.getElementById('chatContainer')
270
+
271
+ uitoolkit.showChatComponent(chatContainer)
272
+ ```
273
+
274
+ ### Hide the chat component
275
+
276
+ To close the chat component, call the `uitoolkit.hideChatComponent` function while passing in the container reference:
277
+
278
+ ```js
279
+ uitoolkit.hideChatComponent(chatContainer)
280
+ ```
281
+
282
+ ### Show the users component
283
+
284
+ To render the users component, create and HTML container and pass it into the `uitoolkit.showUsersComponent` function:
285
+
286
+ ```html
287
+ <div id='uitoolkitContainer'>
288
+ ...
289
+ <div id='usersContainer'></div>
290
+ ...
291
+ </div>
292
+ ```
293
+
294
+ ```js
295
+ var usersContainer = document.getElementById('usersContainer')
296
+
297
+ uitoolkit.showUsersComponent(usersContainer)
298
+ ```
299
+
300
+ ### Hide the users component
301
+
302
+ To close the users component, call the `uitoolkit.hideUsersComponent` function while passing in the container reference:
303
+
304
+ ```js
305
+ uitoolkit.hideUsersComponent(usersContainer)
306
+ ```
307
+
308
+ ### Show the settings component
309
+
310
+ To render the settings component, create and HTML container and pass it into the `uitoolkit.showSettingsComponent` function:
311
+
312
+ ```html
313
+ <div id='uitoolkitContainer'>
314
+ ...
315
+ <div id='settingsContainer'></div>
316
+ ...
317
+ </div>
318
+ ```
319
+
320
+ ```js
321
+ var settingsContainer = document.getElementById('settingsContainer')
322
+
323
+ uitoolkit.showSettingsComponent(settingsContainer)
324
+ ```
325
+
326
+ ### Hide the settings component
327
+
328
+ To close the settings component, call the `uitoolkit.hideSettingsComponent` function while passing in the container reference:
329
+
330
+ ```js
331
+ uitoolkit.hideSettingsComponent(settingsContainer)
332
+ ```
333
+
334
+ ### Cleaning up the session
335
+
336
+ Once your session has ended, we recommend properly cleaning up the UI Toolkit so users can join subsequent sessions. You can easily do this by using the `onSessionClosed` event listener. Simply call each component's respective hide function to properly remove each component from the DOM. See the following code snippet for an example:
337
+
338
+ ```js
339
+ ...
340
+ uitoolkit.onSessionClosed(sessionClosed)
341
+ ...
342
+
343
+ function sessionClosed {
344
+ uitoolkit.hideSettingsComponent(settingsContainer)
345
+ uitoolkit.hideUsersComponent(usersContainer)
346
+ uitoolkit.hideControlsComponent(controlsContainer)
347
+ uitoolkit.hideVideoComponent(videoContainer)
348
+ uitoolkit.hideChatComponent(chatContainer)
349
+ uitoolkit.hideUitoolkitComponents(sessionContainer)
350
+ }
351
+ ```
352
+
168
353
  ## Sample Apps
169
354
 
170
355
  Sample apps built with the Video SDK UI toolkit are coming soon.