@zoom/meetingsdk 3.11.0 → 3.11.2-zfg

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/LICENSE.pdf ADDED
Binary file
package/README.md CHANGED
@@ -1,18 +1,16 @@
1
1
  # Zoom Meeting SDK for Web
2
2
 
3
- ## Zoom Meeting SDK 3.6.0 support Zoom 6.0 UI
3
+ ### Breaking change
4
4
 
5
- ## React Breaking Change
6
- ## Zoom Meeting SDK 3.5.1 has been updated to support [React 18+](https://react.dev/blog/2022/03/08/react-18-upgrade-guide), which is not compatible with React 16. To continue using React 16, you may use a Meeting SDK version below 3.5.1
7
-
8
-
9
- > Client view:
10
- >
11
- > `import { ZoomMtg } from "@zoom/meetingsdk"`
12
- >
13
- > Component view:
14
- >
15
- > `import ZoomMtgEmbedded from "@zoom/meetingsdk/embedded"`
5
+ Change [@zoomus/websdk](https://www.npmjs.com/package/@zoomus/websdk) to [@zoom/meetingsdk](https://www.npmjs.com/package/@zoom/meetingsdk)
6
+ ### Client view
7
+ ```javascript
8
+ import { ZoomMtg } from "@zoom/meetingsdk";
9
+ ```
10
+ ### Component view
11
+ ```javascript
12
+ import ZoomMtgEmbedded from "@zoom/meetingsdk/embedded";
13
+ ```
16
14
 
17
15
  Use of this SDK is subject to our [Terms of Use](https://zoom.us/docs/en-us/zoom_api_license_and_tou.html)
18
16
 
@@ -34,14 +32,12 @@ There are two views to choose from, [Component View](#usage-component-view), and
34
32
 
35
33
  > The Component View provides the option to display the Meeting SDK in components on your page. This allows for a more flexible design.
36
34
 
37
- In the component file where you want to use the Meeting SDK, import `ZoomMtgEmbedded`, create the client, and define the HTML element where you want to render the Meeting SDK.
35
+ In the component file where you want to use the Meeting SDK, import `ZoomMtgEmbedded` and create the client.
38
36
 
39
37
  ```js
40
38
  import ZoomMtgEmbedded from "@zoom/meetingsdk/embedded"
41
39
 
42
40
  const client = ZoomMtgEmbedded.createClient()
43
-
44
- let meetingSDKElement = document.getElementById('meetingSDKElement')
45
41
  ```
46
42
 
47
43
  In the HTML file, set an id attribute on the HTML element where you want to render the Meeting SDK. It will be hidden until you start or join a meeting or webinar.
@@ -52,6 +48,14 @@ In the HTML file, set an id attribute on the HTML element where you want to rend
52
48
  </div>
53
49
  ```
54
50
 
51
+ Back in the component file, init the Meeting SDK with the HTML element above:
52
+
53
+ ```js
54
+ let meetingSDKElement = document.getElementById('meetingSDKElement')
55
+
56
+ client.init({ zoomAppRoot: meetingSDKElement, language: 'en-US' })
57
+ ```
58
+
55
59
  Now we will start or join the meeting or webinar. Here are the required properties for the `client.join()` function. You can get the Meeting or Webinar number and passcode from the [Zoom APIs](https://developers.zoom.us/docs/meeting-sdk/web/component-view/).
56
60
 
57
61
  | Key | Value Description |
@@ -65,27 +69,15 @@ Now we will start or join the meeting or webinar. Here are the required properti
65
69
  | `tk` | Required if your Meeting or Webinar requires [registration](https://support.zoom.us/hc/en-us/articles/360054446052-Managing-meeting-and-webinar-registration). The registrant's token. |
66
70
  | `zak` | Required if you are starting a Meeting or Webinar. The host's [Zoom Access Key (ZAK)](https://developers.zoom.us/docs/meeting-sdk/auth/#start-meetings-and-webinars-with-a-zoom-users-zak-token). |
67
71
 
68
- Then, init, and start or join the meeting or webinar.
72
+ Then, start or join the meeting or webinar.
69
73
 
70
74
  ```js
71
- client.init({
72
- zoomAppRoot: meetingSDKElement,
73
- language: 'en-US',
74
- patchJsMedia: true
75
- }).then(() => {
76
- client.join({
77
- sdkKey: sdkKey,
78
- signature: signature,
79
- meetingNumber: meetingNumber,
80
- password: password,
81
- userName: userName
82
- }).then(() => {
83
- console.log('joined successfully')
84
- }).catch((error) => {
85
- console.log(error)
86
- })
87
- }).catch((error) => {
88
- console.log(error)
75
+ client.join({
76
+ sdkKey: sdkKey,
77
+ signature: signature,
78
+ meetingNumber: meetingNumber,
79
+ password: password,
80
+ userName: userName
89
81
  })
90
82
  ```
91
83
 
@@ -97,17 +89,32 @@ For the full list of features and event listeners, as well as additional guides,
97
89
 
98
90
  > The Client View provides the option to display the Meeting SDK as a full page. This allows for a familiar Zoom Meeting experience because the Client View is the same as the [Zoom Web Client](https://support.zoom.us/hc/en-us/articles/214629443-Zoom-Web-Client), except it lives inside your own web page.
99
91
 
100
- In the component file where you want to use the Meeting SDK, import `ZoomMtg` and call the `preLoadWasm()`, and `prepareWebSDK()` functions.
92
+ In the component file where you want to use the Meeting SDK, import `ZoomMtg` and call the `preLoadWasm()`, `prepareWebSDK()`, and `setZoomJSLib()` functions.
101
93
 
102
94
  ```js
103
95
  import { ZoomMtg } from '@zoom/meetingsdk'
104
96
 
105
97
  ZoomMtg.preLoadWasm()
106
98
  ZoomMtg.prepareWebSDK()
99
+
100
+ // loads language files, also passes any error messages to the ui
101
+ ZoomMtg.i18n.load('en-US')
107
102
  ```
108
103
 
109
104
  > When imported, the Meeting SDK adds new elements to the DOM to handle client overlays and accessibility elements. To manage or manipulate this DOM element within your app [see this guide](https://developers.zoom.us/docs/meeting-sdk/web/client-view/import/#appended-dom-elements).
110
105
 
106
+ Add the following styles to the HTML page you want the Meeting SDK to live on, or `index.html` if you are using a single page app framework.
107
+
108
+ ```html
109
+ <head>
110
+ <!-- For Client View -->
111
+ <link type="text/css" rel="stylesheet" href="https://source.zoom.us/{VERSION_NUMBER}/css/bootstrap.css" />
112
+ <link type="text/css" rel="stylesheet" href="https://source.zoom.us/{VERSION_NUMBER}/css/react-select.css" />
113
+ </head>
114
+ ```
115
+
116
+ > Replace `{VERSION_NUMBER}` in the code above with the [latest version number](https://developers.zoom.us/changelog/meeting-sdk/web/).
117
+
111
118
  Back in the component file we will init and start or join the meeting or webinar. Here are the required properties for the `ZoomMtg.init()` function.
112
119
 
113
120
  | Key | Value Description |
@@ -132,9 +139,9 @@ Then, init, and start or join the meeting or webinar.
132
139
  ```js
133
140
  ZoomMtg.init({
134
141
  leaveUrl: leaveUrl,
135
- patchJsMedia: true,
136
142
  success: (success) => {
137
143
  console.log(success)
144
+
138
145
  ZoomMtg.join({
139
146
  signature: signature,
140
147
  meetingNumber: meetingNumber,
@@ -149,6 +156,7 @@ ZoomMtg.init({
149
156
  console.log(error)
150
157
  }
151
158
  })
159
+
152
160
  },
153
161
  error: (error) => {
154
162
  console.log(error)
@@ -168,30 +176,6 @@ For the full list of features and event listeners, as well as additional guides,
168
176
  - [Meeting SDK Auth Sample (Node.js)](https://github.com/zoom/meetingsdk-sample-signature-node.js)
169
177
  - [Webhook Sample (Node.js)](https://github.com/zoom/webhook-sample-node.js)
170
178
 
171
- ## Use ZFG(Zoom For Government). You need apply new sdk key for [ZFG](https://marketplace.zoomgov.com/).
172
- ### option1 change package.json and use zfg specific version
173
- ```
174
- "@zoom/meetingsdk": "3.7.0-zfg"
175
- ```
176
-
177
- ### option2 change webEndpoint use ZFG [Client View](https://marketplacefront.zoom.us/sdk/meeting/web/functions/ZoomMtg.init.html) [Component View](https://marketplacefront.zoom.us/sdk/meeting/web/components/interfaces/InitOptions.html#webEndpoint)
178
- ```
179
- #Client view
180
- ZoomMtg.setZoomJSLib("https://source.zoomgov.com/{VERSION}/lib", "/av");
181
- ZoomMtg.init({
182
- webEndpoint: "www.zoomgov.com",
183
- });
184
-
185
- #Component view
186
- const client = ZoomMtgEmbedded.createClient();
187
- client.init({
188
- assetPath: 'https://source.zoomgov.com/{VERSION}/lib/av',
189
- webEndpoint: "www.zoomgov.com"});
190
-
191
- ```
192
-
193
179
  ## Need help?
194
180
 
195
- If you're looking for help, try [Developer Support](https://devsupport.zoom.us) or our [Developer Forum](https://devforum.zoom.us). Priority support is also available with [Premier Developer Support](https://zoom.us/docs/en-us/developer-support-plans.html) plans.
196
-
197
- [Open Source Software attribution](https://github.com/zoom/meetingsdk-web/blob/master/oss_attribution.txt)
181
+ If you're looking for help, try [Developer Support](https://devsupport.zoom.us) or our [Developer Forum](https://devforum.zoom.us). Priority support is also available with [Premier Developer Support](https://zoom.us/docs/en-us/developer-support-plans.html) plans.