@zoom/videosdk-ui-toolkit 2.3.5-1 → 2.3.15-1

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,5 +1,8 @@
1
1
  # Zoom Video SDK UI toolkit
2
2
 
3
+ > **⚠️ Action Required:**
4
+ > We recommend that you upgrade to 2.3.15-1 or above if you use WebRTC video to prevent issues with future Chrome versions.
5
+
3
6
  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.
4
7
 
5
8
  ![Zoom Video SDK UI toolkit web](https://github.com/zoom/videosdk-ui-toolkit-web/blob/main/uitoolkitgalleryview.png?raw=true)
@@ -111,7 +114,7 @@ After configuring your session, call the `uitoolkit.joinSession` function, passi
111
114
  ```js
112
115
  var sessionContainer = document.getElementById("sessionContainer");
113
116
  // const newConfig = uitoolkit.migrateConfig(config); if use migrate config from old version(<2.1.10)
114
- uitoolkit.joinSession(sessionContainer, newConfig);
117
+ await uitoolkit.joinSession(sessionContainer, newConfig);
115
118
  ```
116
119
 
117
120
  ### Leave Session
@@ -121,7 +124,7 @@ To leave a Video SDK session, the user can click the red leave button. The host
121
124
  You can also leave a session programmatically by calling the `uitoolkit.closeSession` function:
122
125
 
123
126
  ```js
124
- uitoolkit.closeSession(sessionContainer);
127
+ await uitoolkit.closeSession(sessionContainer);
125
128
  ```
126
129
 
127
130
  ### Event Listeners
@@ -281,11 +284,11 @@ uitoolkit.hideSettingsComponent(settingsContainer);
281
284
  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:
282
285
 
283
286
  ```js
284
- uitoolkit.onSessionClosed(sessionClosed)
287
+ uitoolkit.onSessionClosed(sessionClosed);
285
288
 
286
- function sessionClosed() {
287
- // Your code here
288
- }
289
+ function sessionClosed() {
290
+ // Your code here
291
+ }
289
292
  ```
290
293
 
291
294
  ## Sample Apps