@zoom/meetingsdk 3.0.0-rc

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.
Files changed (112) hide show
  1. package/CHANGELOG.md +54 -0
  2. package/LICENSE.pdf +0 -0
  3. package/README.md +182 -0
  4. package/dist/css/bootstrap.css +5 -0
  5. package/dist/css/react-select.css +434 -0
  6. package/dist/fonts/glyphicons-halflings-regular.eot +0 -0
  7. package/dist/fonts/glyphicons-halflings-regular.svg +229 -0
  8. package/dist/fonts/glyphicons-halflings-regular.ttf +0 -0
  9. package/dist/fonts/glyphicons-halflings-regular.woff +0 -0
  10. package/dist/lib/audio/archival.mp3 +0 -0
  11. package/dist/lib/audio/incoming-msg-chime.mp3 +0 -0
  12. package/dist/lib/audio/m-entry.mp3 +0 -0
  13. package/dist/lib/audio/m-exit.mp3 +0 -0
  14. package/dist/lib/audio/m-wr.mp3 +0 -0
  15. package/dist/lib/audio/meeting_is_now_recorded.mp3 +0 -0
  16. package/dist/lib/audio/raise-hand-chime.mp3 +0 -0
  17. package/dist/lib/audio/recording_is_now_stopped.mp3 +0 -0
  18. package/dist/lib/audio/ring.mp3 +0 -0
  19. package/dist/lib/av/audio.encode.wasm +0 -0
  20. package/dist/lib/av/audio.simd.wasm +0 -0
  21. package/dist/lib/av/audio_simd.min.js +10 -0
  22. package/dist/lib/av/js_audio_process.min.js +10 -0
  23. package/dist/lib/av/js_audio_worklet.min.js +2 -0
  24. package/dist/lib/av/js_audio_worklet_process.min.js +25 -0
  25. package/dist/lib/av/js_audio_worklet_simd.min.js +25 -0
  26. package/dist/lib/av/js_media.min.js +2 -0
  27. package/dist/lib/av/js_sharing_audio_worklet.min.js +2 -0
  28. package/dist/lib/av/sharing_m.min.js +31 -0
  29. package/dist/lib/av/sharing_mtsimd.min.js +31 -0
  30. package/dist/lib/av/sharing_s.min.js +10 -0
  31. package/dist/lib/av/sharing_simd.min.js +10 -0
  32. package/dist/lib/av/vb-resource/dualModel.bin +0 -0
  33. package/dist/lib/av/vb-resource/tf.min.js +18 -0
  34. package/dist/lib/av/vb-resource/vbPreload.js +1 -0
  35. package/dist/lib/av/vb-resource/vbPreloadWorker.js +1 -0
  36. package/dist/lib/av/video.decode.wasm +0 -0
  37. package/dist/lib/av/video.mt.wasm +0 -0
  38. package/dist/lib/av/video.mtsimd.wasm +0 -0
  39. package/dist/lib/av/video.simd.wasm +0 -0
  40. package/dist/lib/av/video_m.min.js +31 -0
  41. package/dist/lib/av/video_mtsimd.min.js +31 -0
  42. package/dist/lib/av/video_s.min.js +10 -0
  43. package/dist/lib/av/video_share_mtsimd.min.js +31 -0
  44. package/dist/lib/av/video_simd.min.js +10 -0
  45. package/dist/lib/av/websipclient.min.js +1 -0
  46. package/dist/lib/image/SanFrancisco.jpg +0 -0
  47. package/dist/lib/image/animation-sprite.png +0 -0
  48. package/dist/lib/image/blur.png +0 -0
  49. package/dist/lib/image/earth.jpg +0 -0
  50. package/dist/lib/image/grass.jpg +0 -0
  51. package/dist/lib/image/mask-circle.png +0 -0
  52. package/dist/lib/image/mask-heart.png +0 -0
  53. package/dist/lib/image/mask-rectangle.png +0 -0
  54. package/dist/lib/image/notification.png +0 -0
  55. package/dist/lib/lang/de-DE.json +1727 -0
  56. package/dist/lib/lang/en-US.json +1727 -0
  57. package/dist/lib/lang/es-ES.json +1727 -0
  58. package/dist/lib/lang/fr-FR.json +1727 -0
  59. package/dist/lib/lang/id-ID.json +1727 -0
  60. package/dist/lib/lang/it-IT.json +1727 -0
  61. package/dist/lib/lang/jp-JP.json +1727 -0
  62. package/dist/lib/lang/ko-KO.json +1727 -0
  63. package/dist/lib/lang/nl-NL.json +1727 -0
  64. package/dist/lib/lang/pl-PL.json +1727 -0
  65. package/dist/lib/lang/pt-PT.json +1727 -0
  66. package/dist/lib/lang/ru-RU.json +1727 -0
  67. package/dist/lib/lang/tr-TR.json +1727 -0
  68. package/dist/lib/lang/vi-VN.json +1727 -0
  69. package/dist/lib/lang/zh-CN.json +1727 -0
  70. package/dist/lib/lang/zh-TW.json +1727 -0
  71. package/dist/lib/vendor/lodash.min.js +140 -0
  72. package/dist/lib/vendor/react-dom.min.js +239 -0
  73. package/dist/lib/vendor/react.min.js +32 -0
  74. package/dist/lib/vendor/redux-thunk.min.js +1 -0
  75. package/dist/lib/vendor/redux.min.js +1 -0
  76. package/dist/lib/webim.min.js +23 -0
  77. package/dist/ui/33f06.svg +647 -0
  78. package/dist/ui/zoomus-websdk-806.umd.min.js +1 -0
  79. package/dist/ui/zoomus-websdk-MobileReportProblemContent.umd.min.js +2 -0
  80. package/dist/ui/zoomus-websdk-ReportProblemContent.umd.min.js +2 -0
  81. package/dist/ui/zoomus-websdk-editor_de-DE.umd.min.js +1 -0
  82. package/dist/ui/zoomus-websdk-editor_es-ES.umd.min.js +1 -0
  83. package/dist/ui/zoomus-websdk-editor_fr-FR.umd.min.js +1 -0
  84. package/dist/ui/zoomus-websdk-editor_id-ID.umd.min.js +1 -0
  85. package/dist/ui/zoomus-websdk-editor_it-IT.umd.min.js +1 -0
  86. package/dist/ui/zoomus-websdk-editor_ja-JP.umd.min.js +1 -0
  87. package/dist/ui/zoomus-websdk-editor_ko-KR.umd.min.js +1 -0
  88. package/dist/ui/zoomus-websdk-editor_nl-NL.umd.min.js +1 -0
  89. package/dist/ui/zoomus-websdk-editor_pl-PL.umd.min.js +1 -0
  90. package/dist/ui/zoomus-websdk-editor_pt-PT.umd.min.js +1 -0
  91. package/dist/ui/zoomus-websdk-editor_ru-RU.umd.min.js +1 -0
  92. package/dist/ui/zoomus-websdk-editor_tr-TR.umd.min.js +1 -0
  93. package/dist/ui/zoomus-websdk-editor_vi-VN.umd.min.js +1 -0
  94. package/dist/ui/zoomus-websdk-editor_zh-CN.umd.min.js +1 -0
  95. package/dist/ui/zoomus-websdk-editor_zh-TW.umd.min.js +1 -0
  96. package/dist/ui/zoomus-websdk-icons.umd.min.js +1 -0
  97. package/dist/ui/zoomus-websdk-loginview.umd.min.js +1 -0
  98. package/dist/ui/zoomus-websdk-lottie-web.umd.min.js +1 -0
  99. package/dist/ui/zoomus-websdk-lottie.umd.min.js +1 -0
  100. package/dist/ui/zoomus-websdk-main-client.umd.min.js +2 -0
  101. package/dist/ui/zoomus-websdk-preview.umd.min.js +2 -0
  102. package/dist/ui/zoomus-websdk-zoommtgMain.umd.min.js +2 -0
  103. package/dist/zoom-meeting-3.0.0.min.js +2 -0
  104. package/dist/zoom-meeting-embedded-ES5.min.js +2 -0
  105. package/dist/zoomus-websdk-embedded.umd.min.js +2 -0
  106. package/dist/zoomus-websdk.umd.min.js +2 -0
  107. package/embedded.d.ts +1567 -0
  108. package/embedded.js +3 -0
  109. package/index.d.ts +2101 -0
  110. package/index.js +4 -0
  111. package/oss_attribution.txt +6432 -0
  112. package/package.json +53 -0
package/index.d.ts ADDED
@@ -0,0 +1,2101 @@
1
+ /**
2
+ * initArgs
3
+ */
4
+ declare let initArgs: {
5
+ /**
6
+ * debug: default: false, optional. Turns on debug mode to print logs in the browser console.
7
+ */
8
+ debug?: boolean; //optional
9
+ /**
10
+ * patchJsMedia: Optional. Default: false. Set to true to automatically apply the latest media dependency fix for the current Web Meeting SDK version. Note that you will still need to manually upgrade to major and minor version releases.
11
+ */
12
+ patchJsMedia? : boolean; //optional
13
+ /**
14
+ * leaveUrl: Required. The URL to post after the user leaves the meeting. Example: “http://www.zoom.us”
15
+ */
16
+ leaveUrl: string; //required
17
+ /**
18
+ * webEndpoint: optional. Web domain option for Zoom PSO environment.
19
+ */
20
+ webEndpoint?: string; //optional
21
+ /**
22
+ * showMeetingHeader: default: true, optional. Shows or hides the meeting header, including the meeting number and topic.
23
+ */
24
+ showMeetingHeader?: boolean; //optional
25
+ /**
26
+ * disableInvite: default: false, optional. Enables or disables the invite function.
27
+ */
28
+ disableInvite?: boolean; //optional
29
+ /**
30
+ * disableCallOut: default: false, optional. Enables or disables the call out function.
31
+ */
32
+ disableCallOut?: boolean; //optional
33
+ /**
34
+ * disableRecord: default: false, optional. Enables or disables the call out function.
35
+ */
36
+ disableRecord?: boolean; //optional
37
+ /**
38
+ * disableJoinAudio: default: false, optional. Enables or disables the join audio function.
39
+ */
40
+ disableJoinAudio?: boolean; //optional
41
+ /**
42
+ * audioPanelAlwaysOpen: default: false, optional. Sets the default state of the audio panel on join. Always open or closed.
43
+ */
44
+ audioPanelAlwaysOpen?: boolean; //optional
45
+ /**
46
+ * showPureSharingContent, default: false, optional. Prevents elements from covering sharing content when show is true.
47
+ */
48
+ showPureSharingContent?: boolean; //optional
49
+ /**
50
+ * isSupportAV: default: true, optional. Enables or disables the audio and video features.
51
+ */
52
+ isSupportAV?: boolean; //optional
53
+ /**
54
+ * isSupportChat: default: true, optional. Enables or disables the chat feature.
55
+ */
56
+ isSupportChat?: boolean; //optional
57
+ /**
58
+ * isSupportQA: default: true, optional. Enables or disables the webinar Q&A feature.
59
+ */
60
+ isSupportQA?: boolean; //optional
61
+ /**
62
+ * isSupportCC: default: true, optional. Enables or disables the meeting closed caption feature.
63
+ */
64
+ isSupportCC?: boolean; //optional
65
+ /**
66
+ * isSupportPolling: default: true, optional. Enables or disables the meeting polling feature.
67
+ */
68
+ isSupportPolling?: boolean; //optional
69
+ /**
70
+ * isSupportBreakout: default: true, optional. Enables or disables the meeting breakout room feature.
71
+ */
72
+ isSupportBreakout?: boolean; //optional
73
+ /**
74
+ * screenShare: default: true, optional. Enables or disables the browser URL sharing feature (Chrome only).
75
+ */
76
+ screenShare?: boolean; //optional
77
+ /**
78
+ * videoDrag: default: true, optional. Enable or disable the drag video tile feature.
79
+ */
80
+ videoDrag?: boolean; //optional
81
+ /**
82
+ * sharingMode: default: 'both', optional. Shares screen. 'fit' - disables sharing "origin size".
83
+ */
84
+ sharingMode?: string; //optional
85
+ /**
86
+ * videoHeader: default: true, optional. Shows or hides the video tile header.
87
+ */
88
+ videoHeader?: boolean; //optional
89
+ /**
90
+ * isLockBottom: default: true, optional. Shows or hides the footer.
91
+ */
92
+ isLockBottom?: boolean; // optional
93
+ /**
94
+ * isSupportNonverbal: default: true, optional. Enables or disables the nonverbal feedback feature such as slow down or speed up icons.
95
+ * For more details about this feature, see: https://support.zoom.us/hc/en-us/articles/115001286183-Nonverbal-feedback-and-meeting-reactions-
96
+ */
97
+ isSupportNonverbal?: boolean; // optional
98
+ /**
99
+ * isShowJoiningErrorDialog: default: true, optional. Enables or disables the join error popup dialog when the SDK fails to join a meeting.
100
+ */
101
+ isShowJoiningErrorDialog?: boolean; // optional
102
+ /**
103
+ * inviteUrlFormat: default: '', optional. Customizes the invite URL format. Use the syntax: https://yourdomain/{0}?pwd={1}.
104
+ * Only available for v2.4.0+. Requires that Zoom sets the Enable Client SDK Customize Invite URL flag for your account.
105
+ * Contact Zoom Developer Support for details.
106
+ */
107
+ inviteUrlFormat?: string;
108
+ /**
109
+ * loginWindow: Defines the registration and login popup window size.
110
+ */
111
+ loginWindow?: {
112
+ /**
113
+ * width: default: 400, optional. Login popup window width, in pixels.
114
+ */
115
+ width: string;
116
+ /**
117
+ * height: default: 380, optional. Login popup window height, in pixels.
118
+ */
119
+ height: string;
120
+ }; // optional,
121
+ /**
122
+ * meetingInfo: default: ['topic','host','mn','pwd','telPwd','invite','participant','dc', 'enctype', 'report'], optional.
123
+ * Choose the meeting information to display: the meeting topic, host, meeting number (mn), password (pwd), telephone password (telPwd), etc.
124
+ */
125
+ meetingInfo?: Array<MeetingInfoType>; // optional
126
+ /**
127
+ * disableVoIP: default: false, optional. Enables or disables the Voice over IP (VoIP) feature.
128
+ */
129
+ disableVoIP?: boolean; // optional
130
+ /**
131
+ * disableReport: default: false, optional. Enables or disables the report feature.
132
+ */
133
+ disableReport?: boolean; // optional
134
+ /**
135
+ * disablePreview: default: false, optional. Enables or disables the audio and video preview features.
136
+ */
137
+ disablePreview?: boolean; // optional
138
+ /**
139
+ * disableCORP: default: false, optional. Enables or disables web isolation mode (developer environment feature).
140
+ */
141
+ disableCORP?: boolean; // optional
142
+ /**
143
+ * onRetryCallback: default: null, optional. Sets an on-retry callback function.
144
+ */
145
+ onRetryCallback?: Function; // optional
146
+ /**
147
+ * isSupportSimulive, default false, Simulive not with credentialless mode. https://developer.chrome.com/blog/coep-credentialless-origin-trial/
148
+ */
149
+ isSupportSimulive?: boolean; // optional
150
+ /**
151
+ * enableHD: optional, >=2.8.0 default=true. <2.8.0 default is false. Enables or disables 720p (bandwidth and hardware restrictions apply). See for details:
152
+ * https://developers.zoom.us/docs/meeting-sdk/web/720p/
153
+ */
154
+ enableHD?: boolean; // optional
155
+ /**
156
+ * enableFullHD: optional, >= 2.9.0 default=false, enable webinar attendee receive 1080P video when zoom backend support.
157
+ */
158
+ enableFullHD?: boolean;
159
+ /**
160
+ * helper: optional, default: ''. Sets a helper HTML page for working around CORS issues.
161
+ * Example: https://github.com/zoom/meetingsdk-web/blob/master/helper.html
162
+ */
163
+ helper?: string; // optional
164
+ /**
165
+ * externalLinkPage: an intermediary HTML page for outgoing hyperlinks.
166
+ */
167
+ externalLinkPage?: string // optional
168
+ /**
169
+ * defaultView: 'gallery' or 'speaker'. Optional. Sets the default video layout to gallery view (if supported) or 'speaker' (default value).
170
+ */
171
+ defaultView?: string // optional
172
+ /**
173
+ * Shows (false, default value) or hides (true) the "Share tab audio" checkbox when sharing a Chrome tab.
174
+ */
175
+ hideShareAudioOption?: boolean;
176
+ /**
177
+ * success: optional, callback function on success.
178
+ */
179
+ success?: Function;
180
+ /**
181
+ * error: optional, callback function on error.
182
+ */
183
+ error?: Function;
184
+ };
185
+
186
+ /**
187
+ * MeetingInfoType
188
+ */
189
+ export type MeetingInfoType =
190
+ | 'topic'
191
+ | 'host'
192
+ | 'mn'
193
+ | 'pwd'
194
+ | 'telPwd'
195
+ | 'invite'
196
+ | 'participant'
197
+ | 'dc'
198
+ | 'enctype'
199
+ | 'report';
200
+ /**
201
+ * Virtual background (VB) or mask image information.
202
+ */
203
+ export type VbImageInfoType = {
204
+ /**
205
+ * VB or mask ID, must be unique
206
+ */
207
+ id: String;
208
+ /**
209
+ * Name to display for VB or mask.
210
+ */
211
+ displayName: String;
212
+ /**
213
+ * VB or mask file name.
214
+ */
215
+ fileName: string;
216
+ /**
217
+ * VB or mask image resource URL.
218
+ */
219
+ url: string;
220
+ }
221
+
222
+ /**
223
+ * In meeting event listeners.
224
+ */
225
+ export type InMeetingEvent = 'onUserJoin' | 'onUserLeave' | 'onUserUpdate' | 'onUserIsInWaitingRoom' | 'onMeetingStatus' | 'onPreviewPannel| receiveSharingChannelReady' | 'onReceiveTranscriptionMsg' | 'onReceiveTranslateMsg' | 'onAudioQos' | 'onVideoQos' | 'onShareQos' |'onClaimStatus' | 'onNetworkQualityChange' | 'onMediaCapturePermissionChange' | 'onMediaCaptureStatusChange' | 'onRoomStatusChange'
226
+
227
+ /**
228
+ * For the APIs that take images, the value of the image type returned by the getVideoSourcesCallBack method, passed in the shareSource API.
229
+ */
230
+ export type NativeImageType = {
231
+ /**
232
+ * The data URL of the image.
233
+ */
234
+ toDataURL(): string;
235
+ }
236
+ /**
237
+ * Each `DesktopCapturerSource` represents a screen or an individual window that can be captured. The type of the return value of the getVideoSourcesCallBack method is passed in the shareSource API.
238
+ */
239
+ export type DesktopCapturerSource = {
240
+ /**
241
+ * appIcon.toDataURL() method used to display the app icon.
242
+ */
243
+ appIcon: NativeImageType;
244
+ /**
245
+ * The display ID.
246
+ */
247
+ display_id: string;
248
+ /**
249
+ * The app ID used to pass the ID to the media stream.
250
+ */
251
+ id: string;
252
+ /**
253
+ * The app name.
254
+ */
255
+ name: string;
256
+ /**
257
+ * thumbnail.toDataURL() method used to display app screenshots.
258
+ */
259
+ thumbnail: NativeImageType;
260
+ /**
261
+ * (Optional) The app screenshot's image source URL, used to display app screenshots. If you pass this parameter, the SDK uses it as the thumbnail.
262
+ */
263
+ imgSrc?: string;
264
+ /**
265
+ * (Optional)The app icon's image source URL, used to display app icon. If you pass this parameter, the SDK uses in as the app icon.
266
+ */
267
+ appIconSrc?: string;
268
+ }
269
+
270
+ /**
271
+ * onMeetingStatus
272
+ */
273
+ export declare enum onMeetingStatus {
274
+ connecting = 1,
275
+ connected = 2,
276
+ disconnected = 3,
277
+ reconnecting = 4,
278
+ }
279
+
280
+ /**
281
+ * BreakoutRoomControlStatus
282
+ */
283
+ export enum BreakoutRoomControlStatus {
284
+ NotStarted = 1,
285
+ InProgress = 2,
286
+ Closing = 3,
287
+ Closed = 4
288
+ }
289
+
290
+ /**
291
+ * BreakoutRoomStatus
292
+ */
293
+ export enum BreakoutRoomStatus {
294
+ NoToken = 1,
295
+ GotToken = 2,
296
+ Started = 3,
297
+ Closing = 4,
298
+ Closed = 5
299
+ }
300
+ /**
301
+ * Allocation pattern of breakout room
302
+ * @enum
303
+ */
304
+ export enum BreakoutRoomAllocationPattern {
305
+ auto = 1,
306
+ manually = 2,
307
+ selfSelect = 3,
308
+ }
309
+
310
+ /**
311
+ * Room Status of attendee
312
+ * @enum
313
+ */
314
+ export enum BreakoutRoomAttendeeStatus {
315
+ /**
316
+ * Unassigned
317
+ */
318
+ Initial = 'initial',
319
+ /**
320
+ * Assigned but not in room
321
+ */
322
+ Invited = 'be invited',
323
+ /**
324
+ * Joining the room
325
+ */
326
+ Joining = 'joining',
327
+ /**
328
+ * In room
329
+ */
330
+ InRoom = 'in room',
331
+ /**
332
+ * Leaving the room
333
+ */
334
+ Returning = 'returning',
335
+ /**
336
+ * Not joined to the room
337
+ */
338
+ NotJoined = 'not joined',
339
+ /**
340
+ * Time up
341
+ */
342
+ TimeUp = 'time up',
343
+ /**
344
+ * In the main session
345
+ */
346
+ MainSession = 'main session',
347
+ }
348
+
349
+ /**
350
+ * Room creation options.
351
+ */
352
+ export interface RoomOption {
353
+ /**
354
+ * Whether to automatically join the room when the participant is assigned to a room.
355
+ */
356
+ isAutoJoinRoom?: boolean;
357
+ /**
358
+ * Whether to allow participants in the room to return to the main session.
359
+ */
360
+ isBackToMainSessionEnabled?: boolean;
361
+ /**
362
+ * Whether to set a timer for the breakout room.
363
+ */
364
+ isTimerEnabled?: boolean;
365
+ /**
366
+ * Duration of the timer.
367
+ */
368
+ timerDuration?: number;
369
+ /**
370
+ * Whether to notify the user when the time is up. True: Do not notify. False: Notify.
371
+ */
372
+ notNotifyMe?: boolean;
373
+ /**
374
+ * Whether to offer a countdown after closing the breakout room.
375
+ */
376
+ needCountDown?: boolean;
377
+ /**
378
+ * When the breakout room is closing, the buffer time (in seconds) to leave the room. Values: 10 | 15 | 30 | 60 | 120.
379
+ */
380
+ waitSeconds?: number;
381
+ }
382
+
383
+ /**
384
+ * Interface for the result of the check feature support information on the user's platform.
385
+ * Features in the supportFeatures array are supported on the current platform.
386
+ * Features in the unSupportFeatures array are not supported on the current platform.
387
+ */
388
+ export interface SupportFeatures {
389
+ /**
390
+ * @ignore
391
+ */
392
+ platform: string;
393
+ /**
394
+ * @ignore
395
+ */
396
+ supportFeatures: Array<string>;
397
+ /**
398
+ * @ignore
399
+ */
400
+ unSupportFeatures: Array<string>;
401
+ }
402
+
403
+ /**
404
+ * ZoomMtg.i18n
405
+ *
406
+ * Examples:
407
+ *
408
+ * en-US https://source.zoom.us/{VERSION_NUMBER}/lib/lang/en-US.json
409
+ *
410
+ * zh-CN https://source.zoom.us/{VERSION_NUMBER}/lib/lang/zh-CN.json
411
+ * ```js
412
+ * ZoomMtg.i18n.load('en-US');
413
+ var userLangTemplate = ZoomMtg.i18n.getAll("en-US");
414
+ var userLangDict = Object.assign({}, userLangTemplate, {
415
+ 'apac.toolbar_leave': 'Leave',
416
+ 'apac.wc_leave_meeting': 'Do you want leave',
417
+ 'apac.wc_joining_meeting': 'I want to join...',
418
+ 'apac.wc_video.start_video': 'Turn on video',
419
+ 'apac.wc_video.stop_video': 'Turn off video'
420
+ });
421
+ ZoomMtg.i18n.load(userLangDict, "myLang");
422
+ ZoomMtg.i18n.reload('myLang');
423
+ * ```
424
+ */
425
+ export declare namespace ZoomMtgLang {
426
+ /**
427
+ * Loads translations.
428
+ * See for abbreviation descriptions: https://developers.zoom.us/docs/meeting-sdk/web/client-view/multi-language/
429
+ * 'de-DE', 'es-ES', 'en-US', 'fr-FR', 'jp-JP', 'pt-PT', 'ru-RU', 'zh-CN', 'zh-TW', 'ko-KO', 'vi-VN', 'it-IT', 'id-ID', 'nl-NL'
430
+ * Make sure call it before call init.
431
+ * @param lang
432
+ *
433
+ */
434
+ function load(lang: 'de-DE'| 'es-ES'| 'en-US'| 'fr-FR'| 'jp-JP'| 'pt-PT'| 'ru-RU'| 'zh-CN'| 'zh-TW'| 'ko-KO'| 'vi-VN'| 'it-IT'| 'id-ID'| 'nl-NL'): Promise<any>;
435
+ /**
436
+ * Loads translation URL. Use the URL provided by Zoom or your own resource object.
437
+ * For the Zoom-provided JSON language use this syntax: https://source.zoom.us/{VERSION_NUMBER}/lib/lang/{LANG_CODE}.json.
438
+ * For example, to use the English resource from Zoom for v2.7.0 of the SDK, use: https://source.zoom.us/2.7.0/lib/lang/en-US.json
439
+ * Or create your own JSON resource object.
440
+ * Make sure call it before call init.
441
+ * @param url JSON Language resource URL or resource object
442
+ * @param lang Your assigned language name for the resource.
443
+ */
444
+ function load(url: string | object, lang: string): Promise<any>;
445
+ /**
446
+ * you can remove it >= 3.0.0
447
+ @deprecated
448
+ *
449
+ */
450
+ function reload(lang: string): void;
451
+
452
+ /**
453
+ * Gets all language resource results.
454
+ * @param lang
455
+ *
456
+ */
457
+ function getAll(lang: string): object;
458
+
459
+ /**
460
+ * Looks up the given string up in the dictionary and returns the translation if one exists.
461
+ * If a translation is not found, returns the original word.
462
+ * @param key
463
+ *
464
+ */
465
+ function get(key: string): void;
466
+ /**
467
+ * Gets the current language resource result.
468
+ *
469
+ */
470
+ function getCurrentLang(): string;
471
+ /**
472
+ * Gets the support language array.
473
+ *
474
+ */
475
+ function getSupportLanguage(): Array<string>;
476
+ /**
477
+ * you can remove it >= 3.0.0
478
+ * @deprecated
479
+ */
480
+ function setSupportLanguage(langArray: Array<string>): void;
481
+ }
482
+
483
+ /**
484
+ * Virtual background (VB) status success callback
485
+ * @param args
486
+ */
487
+ export function vbStatusDataFunc(data: {
488
+ /**
489
+ * Result:
490
+ */
491
+ result: {
492
+ /**
493
+ * vbList, name is VB image name, must be unique and identify different VB image
494
+ */
495
+ vbList: Array<VbImageInfoType>;
496
+ /**
497
+ * Whether or not VB is locked.
498
+ */
499
+ lock: boolean,
500
+ /**
501
+ * Enable a blurred background or not.
502
+ */
503
+ blur: boolean,
504
+ /**
505
+ * If true, the user can enable VB, mask, or blur through the UI
506
+ * and the developer can't call the following APIs to control it:
507
+ * updateVirtualBackgroundList
508
+ * setVirtualBackground
509
+ * lockVirtualBackground
510
+ */
511
+ status: boolean,
512
+ /**
513
+ * True if the user selected VB, false if not.
514
+ */
515
+ vb: boolean,
516
+ /**
517
+ * True if the user selected mask, false if not.
518
+ */
519
+ mask: boolean
520
+ /**
521
+ * The current user's VB ID.
522
+ */
523
+ id: any;
524
+ }
525
+ }): void;
526
+
527
+ /**
528
+ * Support for virtual background (VB) callback
529
+ * @param args
530
+ */
531
+ export function vbSupportDataFunc(data: {
532
+ /**
533
+ * Result:
534
+ */
535
+ result: {
536
+ /**
537
+ * True if the user can support VB, false if not.
538
+ */
539
+ vb: boolean;
540
+ /**
541
+ * True if the user can support mask, false if not.
542
+ */
543
+ mask: boolean;
544
+ /**
545
+ * True if VB is enabled, false if not.
546
+ */
547
+ enable: boolean;
548
+ }
549
+ }): void;
550
+
551
+ /**
552
+ * This method will be called when the “screen share” is clicked. Support for get screen share sources callback.
553
+ */
554
+ export function getShareSourcesFunc(): Promise<DesktopCapturerSource[]>;
555
+
556
+ /**
557
+ * ZoomMtg
558
+ */
559
+ export namespace ZoomMtg {
560
+ /**
561
+ * i18n
562
+ * @
563
+ */
564
+ const i18n: typeof ZoomMtgLang;
565
+ /**
566
+ * Generate each time you join a meeting or webinar through a server-side function where you can securely store SDK credentials.
567
+ * See Generate the SDK JWT key for details:
568
+ * https://developers.zoom.us/docs/meeting-sdk/auth/
569
+ * See the Sample Signature app for an example:
570
+ * https://github.com/zoom/meetingsdk-sample-signature-node.js
571
+ * @category Join
572
+ */
573
+ function generateSDKSignature(args: {
574
+ /**
575
+ * Required, your Meeting SDK SDK key or client id
576
+ */
577
+ sdkKey: string;
578
+ /**
579
+ * Required, your Meeting SDK SDK secret or client secret
580
+ */
581
+ sdkSecret: string;
582
+ /**
583
+ * Required, the Zoom meeting or webinar number.
584
+ */
585
+ meetingNumber: string;
586
+ /**
587
+ * Required, 0 to specify participant, 1 to specify host.
588
+ */
589
+ role: string;
590
+ /**
591
+ * Callback function on success.
592
+ */
593
+ success?: Function;
594
+ /**
595
+ * Callback function in the event of an error.
596
+ */
597
+ error?: Function
598
+ }): string;
599
+ /**
600
+ * Changes the Zoom default library resource requirements.
601
+ * Default is ZoomMtg.setZoomJSLib('https://source.zoom.us/{VERSION_NUMBER}/lib', '/av')
602
+ * @category Join
603
+ */
604
+ function setZoomJSLib(path?: string, dir?: string): void;
605
+ /**
606
+ * Preloads the WebAssembly (Wasm) files to reduce download time and improve the experience for users joining meetings.
607
+ * @category Join
608
+ */
609
+ function preLoadWasm(): void;
610
+ /*
611
+ * Adds a script to download a requirements.js file and a node to the HTML body for the Meeting SDK for Web to use.
612
+ * Note that Chrome origin trials (OT) provide many new features before Chrome releases. See the following links for details:
613
+ * https://developer.chrome.com/origintrials/#/trials/active and https://developer.chrome.com/blog/origin-trials/
614
+ * The Meeting SDK for Web can use:
615
+ * 1. SharedArrayBuffer (SAB) OT for gallery view (Chrome 92 to 103). See: https://developers.zoom.us/docs/meeting-sdk/web/gallery-view/
616
+ * 2. WebAssembly SIMD to improve video and sharing performance (Chrome91 release). See: https://chromestatus.com/feature/6533147810332672
617
+ * 3. WebCodecs to address latency when starting video (Chrome94 release). See: https://chromestatus.com/feature/5669293909868544
618
+ * @category Join
619
+ */
620
+ function prepareWebSDK(origintrials?: Array<string>): void;
621
+ /**
622
+ * Initializes a Zoom Meeting. You must initialize a Zoom meeting in order to start or join it.
623
+ * This method only requires the leaveUrl parameter.
624
+ * @param args
625
+ * @category Join
626
+ */
627
+ function init(args: typeof initArgs): void;
628
+ /**
629
+ * Joins a meeting.
630
+ * @param args
631
+ * @category Join
632
+ * @RateLimit 10s
633
+ */
634
+ function join(args: {
635
+ /**
636
+ * Required, the Zoom meeting or webinar number.
637
+ */
638
+ meetingNumber: string | number;
639
+ /**
640
+ * Required. The name of the user starting or joining the meeting or webinar.
641
+ */
642
+ userName: string;
643
+ /**
644
+ * Required for webinar. Required for meeting if registration is required; optional if not.
645
+ * The email of the user starting or joining the meeting or webinar.
646
+ */
647
+ userEmail?: string;
648
+ /**
649
+ * Required. The meeting’s password. Leave as an empty string if the meeting or webinar only requires the waiting room.
650
+ */
651
+ passWord?: string;
652
+ /**
653
+ * Optional. An identifier for the user that you can get back from the Meeting API.
654
+ */
655
+ customerKey?: string;
656
+ /**
657
+ * Required if registration is required; optional if not. The registrant’s token.
658
+ */
659
+ tk?: string;
660
+ /**
661
+ * Required for hosts starting a meeting or webinar; optional otherwise. The host’s Zoom Access Key (ZAK) token.
662
+ */
663
+ zak?: string;
664
+ /**
665
+ * Required. Only sdkKey is supported for joining meetings on version 2.7.0 and higher.
666
+ */
667
+ sdkKey?: string;
668
+ /**
669
+ * Required. The signature to start or join a meeting. See https://developers.zoom.us/docs/meeting-sdk/auth/ for details.
670
+ */
671
+ signature: string;
672
+ /**
673
+ * Optional. Token to allow local recording. See [Get a meeting's join token for local recording](https://developers.zoom.us/docs/api/rest/reference/zoom-api/methods/#operation/meetingLocalRecordingJoinToken) for details.
674
+ */
675
+ recordingToken?: string;
676
+ /**
677
+ * Callback function on success.
678
+ */
679
+ success: Function;
680
+ /**
681
+ * Callback function in the event of an error.
682
+ */
683
+ error: Function;
684
+ }): void;
685
+ /**
686
+ * Join an test meeting. signature only support role=0
687
+ * @param args
688
+ * @category Join
689
+ * @RateLimit 10s
690
+ */
691
+ function joinTest(args: {
692
+ /**
693
+ * Required, the Zoom meeting or webinar number.
694
+ */
695
+ meetingNumber: string | number;
696
+ /**
697
+ * Required. The name of the user starting or joining the meeting or webinar.
698
+ */
699
+ userName: string;
700
+ /**
701
+ * Required for webinar. Required for meeting if registration is required; optional if not.
702
+ * The email of the user starting or joining the meeting or webinar.
703
+ */
704
+ userEmail?: string;
705
+ /**
706
+ * Required. The meeting’s password. Leave as an empty string if the meeting or webinar only requires the waiting room.
707
+ */
708
+ passWord?: string;
709
+ /**
710
+ * Optional. An identifier for the user that you can get back from the Meeting API.
711
+ */
712
+ customerKey?: string;
713
+ /**
714
+ * Required. Only sdkKey is supported for joining meetings on version 2.7.0 and higher.
715
+ */
716
+ sdkKey?: string;
717
+ /**
718
+ * Required. The signature to start or join a meeting. See https://developers.zoom.us/docs/meeting-sdk/auth/ for details.
719
+ */
720
+ signature: string;
721
+ success: Function;
722
+ /**
723
+ * Callback function in the event of an error.
724
+ */
725
+ error: Function;
726
+ }): void;
727
+ /**
728
+ * Shows or hides the invite button.
729
+ * @param args
730
+ */
731
+ function showInviteFunction(args: {
732
+ /**
733
+ * Required
734
+ */
735
+ show: boolean }): void;
736
+ /**
737
+ * Shows or hides the call out button to invite others by phone.
738
+ * See for details: https://support.zoom.us/hc/en-us/articles/4404535651085-Inviting-others-by-phone-call-out-.
739
+ * @param args
740
+ */
741
+ function showCalloutFunction(args: {
742
+ /**
743
+ * Required
744
+ */
745
+ show: boolean }): void;
746
+ /**
747
+ * Shows or hides the meeting header.
748
+ * @param args
749
+ */
750
+ function showMeetingHeader(args: {
751
+ /**
752
+ * Required
753
+ */
754
+ show: boolean }): void;
755
+ /**
756
+ * Shows or hides the record button.
757
+ * @param args
758
+ */
759
+ function showRecordFunction(args: {
760
+ /**
761
+ * Required
762
+ */
763
+ show: boolean }): void;
764
+ /**
765
+ * Shows or hides the join audio button.
766
+ * @param args
767
+ */
768
+ function showJoinAudioFunction(args: {
769
+ /**
770
+ * Required
771
+ */
772
+ show: boolean }): void;
773
+ /**
774
+ * Set customized polling URL. Only works when Enable Client SDK Customized Invite URL flag is enabled for your account.
775
+ * @param args
776
+ * @RateLimit 10s
777
+ */
778
+ function setCustomizedPollingUrl(args: {
779
+ /**
780
+ * Customize create polling URL or callback.
781
+ */
782
+ create?: string | Function;
783
+ /**
784
+ * Customize edit polling URL or callback.
785
+ */
786
+ edit?: string | Function;
787
+ /**
788
+ * Callback function on success.
789
+ */
790
+ success?: Function;
791
+ /**
792
+ * Callback function in the event of an error.
793
+ */
794
+ error?: Function
795
+ }): void;
796
+ /**
797
+ * Set customized waiting room title and description.
798
+ * @param args
799
+ * @RateLimit 10s
800
+ */
801
+ function setCustomizeWaitingRoom(args: {
802
+ /**
803
+ * Customize waiting room title.
804
+ */
805
+ title: string;
806
+ /**
807
+ * Customize waiting room description.
808
+ */
809
+ desc?: string;
810
+ /**
811
+ * Callback function on success.
812
+ */
813
+ success?: Function;
814
+ /**
815
+ * Callback function in the event of an error.
816
+ */
817
+ error?: Function
818
+ }): void;
819
+ /**
820
+ * Shows or hides border around shared content.
821
+ * @param args
822
+ */
823
+ function showPureSharingContent(args: {
824
+ /**
825
+ * Required, true to hide border, false to show it.
826
+ */
827
+ show: boolean }): void;
828
+ /**
829
+ * Gets the current list of participants. Index 0 is the current user.
830
+ * @param args
831
+ */
832
+ function getAttendeeslist(args: {
833
+ /**
834
+ * Callback function on success.
835
+ */
836
+ success?: Function;
837
+ /**
838
+ * Callback function in the event of an error.
839
+ */
840
+ error?: Function
841
+ }): void;
842
+ /**
843
+ * Gets the list of breakout rooms and attendees.
844
+ * @param args
845
+ */
846
+ function getBreakoutRooms(args: {
847
+ /**
848
+ * Callback function on success.
849
+ */
850
+ success?: Function;
851
+ /**
852
+ * Callback function in the event of an error.
853
+ */
854
+ error?: Function
855
+ }): void;
856
+ /**
857
+ * Gets the current user information.
858
+ * @param args
859
+ */
860
+ function getCurrentUser(args: {
861
+ /**
862
+ * Callback function on success.
863
+ */
864
+ success?: Function;
865
+ /**
866
+ * Callback function in the event of an error.
867
+ */
868
+ error?: Function
869
+ }): void;
870
+ /**
871
+ * Sets the log level.
872
+ * @param level
873
+ */
874
+ function setLogLevel(level?: 'info' | 'error' | 'silent'): void;
875
+ /**
876
+ * Gets the current meeting information.
877
+ * @param args
878
+ */
879
+ function getCurrentMeetingInfo(args: {
880
+ /**
881
+ * Callback function on success.
882
+ */
883
+ success?: Function;
884
+ /**
885
+ * Callback function in the event of an error.
886
+ */
887
+ error?: Function
888
+ }): void;
889
+ /**
890
+ * Invites yourself to join by phone.
891
+ * @param args
892
+ * @RateLimit 10s
893
+ */
894
+ function callOut(args: {
895
+ /**
896
+ * Call out phone number.
897
+ */
898
+ phoneNumber: string;
899
+ /**
900
+ * Callback function on success.
901
+ */
902
+ success?: Function;
903
+ /**
904
+ * Callback function in the event of an error.
905
+ */
906
+ error?: Function }): void;
907
+ /**
908
+ * Invites a participant to join by phone.
909
+ * @param args
910
+ * @RateLimit 10s
911
+ */
912
+ function inviteByPhone(args: {
913
+ /**
914
+ * The phone number. Example: +15553456789
915
+ */
916
+ phoneNumber: string;
917
+ /**
918
+ * Required. The name of the user starting or joining the meeting or webinar.
919
+ */
920
+ userName: string;
921
+ /**
922
+ * Callback function on success.
923
+ */
924
+ success?: Function;
925
+ /**
926
+ * Callback function in the event of an error.
927
+ */
928
+ error?: Function
929
+ }): void;
930
+ /**
931
+ * Invites Zoom Cloud Room Connector (CRC) device.
932
+ * @param args
933
+ * @RateLimit 10s
934
+ */
935
+ function inviteCRCDevice(args: {
936
+ /**
937
+ * Device IP address.
938
+ */
939
+ ip: string;
940
+ /**
941
+ * Device type: type=1 invites an H.323 device; type=2 invites a SIP device.
942
+ */
943
+ type: Number;
944
+ /**
945
+ * Callback function on success.
946
+ */
947
+ success?: Function;
948
+ /**
949
+ * Callback function in the event of an error.
950
+ */
951
+ error?: Function
952
+ }): void;
953
+ /**
954
+ * Cancels Zoom Cloud Room Connector (CRC) device invitation.
955
+ * @param args
956
+ * @RateLimit 1s
957
+ */
958
+ function cancelInviteCRCDevice(args: {
959
+ /**
960
+ * Callback function on success.
961
+ */
962
+ success?: Function;
963
+ /**
964
+ * Callback function in the event of an error.
965
+ */
966
+ error?: Function
967
+ }): void;
968
+ /**
969
+ * Mutes or unmutes a participant.
970
+ * @param args
971
+ * @RateLimit 1s
972
+ */
973
+ function mute(args: {
974
+ /**
975
+ * The participant's user ID.
976
+ */
977
+ userId: Number;
978
+ /**
979
+ * True to mute or false to unmute.
980
+ */
981
+ mute: boolean;
982
+ /**
983
+ * Callback function on success.
984
+ */
985
+ success?: Function;
986
+ /**
987
+ * Callback function in the event of an error.
988
+ */
989
+ error?: Function
990
+ }): void;
991
+ /**
992
+ * Mutes or unmutes all attendees. Host or co-host only.
993
+ * @param args
994
+ * @RateLimit 5s
995
+ */
996
+ function muteAll(args: {
997
+ /**
998
+ * True to mute all or false to unmute all.
999
+ */
1000
+ muteAll: boolean;
1001
+ /**
1002
+ * Callback function on success.
1003
+ */
1004
+ success?: Function;
1005
+ /**
1006
+ * Callback function in the event of an error.
1007
+ */
1008
+ error?: Function
1009
+ }): void;
1010
+ /**
1011
+ * Renames the participant. Host or co-host only. The userId and oldName must be correct for this operation to succeed.
1012
+ * @param args
1013
+ * @RateLimit 5s
1014
+ */
1015
+ function rename(args: {
1016
+ /**
1017
+ * The participant's user ID.
1018
+ */
1019
+ userId: number;
1020
+ /**
1021
+ * The participant's current name.
1022
+ */
1023
+ oldName: string;
1024
+ /**
1025
+ * The participant's new name.
1026
+ */
1027
+ newName: string;
1028
+ /**
1029
+ * Callback function on success.
1030
+ */
1031
+ success?: Function;
1032
+ /**
1033
+ * Callback function in the event of an error.
1034
+ */
1035
+ error?: Function
1036
+ }): void;
1037
+ /**
1038
+ * Ejects a participant from the meeting. Host or co-host only.
1039
+ * @param args
1040
+ * @RateLimit 5s
1041
+ */
1042
+ function expel(args: {
1043
+ /**
1044
+ * The participant's user ID.
1045
+ */
1046
+ userId: number;
1047
+ /**
1048
+ * Callback function on success.
1049
+ */
1050
+ success?: Function;
1051
+ /**
1052
+ * Callback function in the event of an error.
1053
+ */
1054
+ error?: Function
1055
+ }): void;
1056
+ /**
1057
+ * Stops or starts cloud recording. Host only.
1058
+ * @param args
1059
+ * @RateLimit 5s
1060
+ */
1061
+ function record(args: {
1062
+ /**
1063
+ * True to record or false to stop recording.
1064
+ */
1065
+ record: boolean;
1066
+ /**
1067
+ * Callback function on success.
1068
+ */
1069
+ success?: Function;
1070
+ /**
1071
+ * Callback function in the event of an error.
1072
+ */
1073
+ error?: Function
1074
+ }): void;
1075
+ /**
1076
+ * Locks or unlocks the meeting. Host or co-host only. If the meeting is locked, others can't join the meeting unless it is unlocked.
1077
+ * @param args
1078
+ * @RateLimit 5s
1079
+ */
1080
+ function lockMeeting(args: {
1081
+ /**
1082
+ * True to lock the meeting or false to unlock it.
1083
+ */
1084
+ lockMeeting: boolean;
1085
+ /**
1086
+ * Callback function on success.
1087
+ */
1088
+ success?: Function;
1089
+ /**
1090
+ * Callback function in the event of an error.
1091
+ */
1092
+ error?: Function
1093
+ }): void;
1094
+ /**
1095
+ * Leaves the meeting. If the host leaves, the meeting will end.
1096
+ * @param args
1097
+ */
1098
+ function leaveMeeting(args: {
1099
+ /**
1100
+ * >=2.9.0 default is false, if confirm = true, will show leave option, not leave direct.
1101
+ */
1102
+ confirm?: boolean;
1103
+ /**
1104
+ * >=2.9.0 callback when click cancel.
1105
+ */
1106
+ cancelCallback?: Function;
1107
+ /**
1108
+ * Callback function on success.
1109
+ */
1110
+ success?: Function;
1111
+ /**
1112
+ * Callback function in the event of an error.
1113
+ */
1114
+ error?: Function
1115
+ }): void;
1116
+ /**
1117
+ * Ends the meeting. Host only.
1118
+ * @param args
1119
+ */
1120
+ function endMeeting(args: { /**
1121
+ * Callback function on success.
1122
+ */
1123
+ success?: Function;
1124
+ /**
1125
+ * Callback function in the event of an error.
1126
+ */
1127
+ error?: Function }): void;
1128
+ /**
1129
+ * Makes this user the host.
1130
+ * @param args
1131
+ * @RateLimit 2s
1132
+ */
1133
+ function makeHost(args: {
1134
+ /**
1135
+ * User ID.
1136
+ */
1137
+ userId: boolean;
1138
+ /**
1139
+ * Callback function on success.
1140
+ */
1141
+ success?: Function;
1142
+ /**
1143
+ * Callback function in the event of an error.
1144
+ */
1145
+ error?: Function
1146
+ }): void;
1147
+
1148
+ /**
1149
+ * Makes co-host.
1150
+ * @param args
1151
+ * @RateLimit 2s
1152
+ */
1153
+ function makeCoHost(args: {
1154
+ /**
1155
+ * User ID.
1156
+ */
1157
+ userId: number;
1158
+ /**
1159
+ * Callback function on success.
1160
+ */
1161
+ success?: Function;
1162
+ /**
1163
+ * Callback function in the event of an error.
1164
+ */
1165
+ error?: Function
1166
+ }): void;
1167
+
1168
+ /**
1169
+ * Removes co-host status.
1170
+ * @param args
1171
+ * @RateLimit 2s
1172
+ */
1173
+ function withdrawCoHost(args: {
1174
+ /**
1175
+ * User ID.
1176
+ */
1177
+ userId: number;
1178
+ /**
1179
+ * Callback function on success.
1180
+ */
1181
+ success?: Function;
1182
+ /**
1183
+ * Callback function in the event of an error.
1184
+ */
1185
+ error?: Function
1186
+ }): void;
1187
+
1188
+ /**
1189
+ * Reclaims the host status if the original host or a co-host.
1190
+ * @param args
1191
+ * @RateLimit 2s
1192
+ */
1193
+ function reclaimHost(args: {
1194
+ /**
1195
+ * Callback function on success.
1196
+ */
1197
+ success?: Function;
1198
+ /**
1199
+ * Callback function in the event of an error.
1200
+ */
1201
+ error?: Function
1202
+ }): void;
1203
+
1204
+ /**
1205
+ * Claims host with host key.
1206
+ * Use ZoomMtg.inMeetingServiceListener('onClaimStatus', function(e){}) to listen for the claim result.
1207
+ * Only successful in meetings with no host.
1208
+ * @param args
1209
+ * @RateLimit 2s
1210
+ */
1211
+ function claimHostWithHostKey(args: {
1212
+ /**
1213
+ * host key
1214
+ */
1215
+ hostKey: string;
1216
+ /**
1217
+ * Callback function on success.
1218
+ */
1219
+ success?: Function;
1220
+ /**
1221
+ * Callback function in the event of an error.
1222
+ */
1223
+ error?: Function
1224
+ }): void;
1225
+
1226
+ /**
1227
+ * Puts the participant in the waiting room or lets the participant join the meeting.
1228
+ * @param args
1229
+ * @RateLimit 0.1s
1230
+ */
1231
+ function putOnHold(args: {
1232
+ /**
1233
+ * The participant's user ID.
1234
+ */
1235
+ userId: number;
1236
+ /**
1237
+ * True to hold the participant in the waiting room or false to let the participant join the meeting.
1238
+ */
1239
+ hold: boolean;
1240
+ /**
1241
+ * Callback function on success.
1242
+ */
1243
+ success?: Function;
1244
+ /**
1245
+ * Callback function in the event of an error.
1246
+ */
1247
+ error?: Function
1248
+ }): void;
1249
+ /**
1250
+ * Lets all participants in the waiting room join the meeting.
1251
+ * @param args
1252
+ * @RateLimit 1s
1253
+ */
1254
+ function admitAll(args: {
1255
+ /**
1256
+ * Callback function on success.
1257
+ */
1258
+ success?: Function;
1259
+ /**
1260
+ * Callback function in the event of an error.
1261
+ */
1262
+ error?: Function
1263
+ }): void;
1264
+ /**
1265
+ * Use changeRedirectUrl instead.
1266
+ * @deprecated
1267
+ * @param args
1268
+ * @RateLimit 1s
1269
+ */
1270
+ function changRedirectUrl(args: {
1271
+ /**
1272
+ * (Deprecated, use changeRedirectUrl). The URL to redirect participants who leave the meeting.
1273
+ */
1274
+ leaveUrl: number;
1275
+ /**
1276
+ * Callback function on success.
1277
+ */
1278
+ success?: Function;
1279
+ /**
1280
+ * Callback function in the event of an error.
1281
+ */
1282
+ error?: Function
1283
+ }): void;
1284
+ /**
1285
+ * Change leaveUrl after participants join the meeting.
1286
+ * @param args
1287
+ * @RateLimit 1s
1288
+ */
1289
+ function changeRedirectUrl(args: {
1290
+ /**
1291
+ * The URL to redirect participants who leave the meeting.
1292
+ */
1293
+ leaveUrl: number;
1294
+ /**
1295
+ * Callback function on success.
1296
+ */
1297
+ success?: Function;
1298
+ /**
1299
+ * Callback function in the event of an error.
1300
+ */
1301
+ error?: Function
1302
+ }): void;
1303
+
1304
+ /**
1305
+ * Listens for user join or leave events and handles them.
1306
+ * @param event
1307
+ * @param callback
1308
+ * Only supported in meetings.
1309
+ * Example:
1310
+ ```js
1311
+ ZoomMtg.inMeetingServiceListener('onUserJoin', function (data) {
1312
+ console.log(data);
1313
+ });
1314
+
1315
+ ZoomMtg.inMeetingServiceListener('onUserLeave', function (data) {
1316
+ console.log(data);
1317
+ });
1318
+
1319
+ ZoomMtg.inMeetingServiceListener('onUserUpdate', function (data) {
1320
+ console.log(data);
1321
+ });
1322
+ ```
1323
+ @category Listener
1324
+ */
1325
+ function inMeetingServiceListener(event: 'onUserJoin' | 'onUserLeave' | 'onUserUpdate' , callback: Function): void;
1326
+ /**
1327
+ * Listens for sharing channel readiness to receive.
1328
+ * @param event
1329
+ * @param callback
1330
+ * Example:
1331
+ * ```js
1332
+ ZoomMtg.inMeetingServiceListener('receiveSharingChannelReady', function (data) {
1333
+ console.log(data);
1334
+ });
1335
+ ```
1336
+ @category Listener
1337
+ */
1338
+ function inMeetingServiceListener(event: 'receiveSharingChannelReady' , callback: Function): void;
1339
+ /**
1340
+ * Listens for waiting room and audio or video preview page status.
1341
+ * @param event
1342
+ * @param callback
1343
+ * Example:
1344
+ * ```js
1345
+
1346
+ ZoomMtg.inMeetingServiceListener('onUserIsInWaitingRoom', function (data) {
1347
+ console.log(data);
1348
+ });
1349
+
1350
+ ZoomMtg.inMeetingServiceListener('onPreviewPannel', function (data) {
1351
+ console.log('onPreviewPannel', data);
1352
+ });
1353
+ ```
1354
+ @category Listener
1355
+ */
1356
+ function inMeetingServiceListener(event: 'onUserIsInWaitingRoom' | 'onPreviewPannel' , callback: Function): void;
1357
+ /**
1358
+ * Listens for meeting status.
1359
+ * @param event
1360
+ * @param callback
1361
+ * Example:
1362
+ * ```js
1363
+ ZoomMtg.inMeetingServiceListener('onMeetingStatus', function (data) {
1364
+ // {status: 1(connecting), 2(connected), 3(disconnected), 4(reconnecting)}
1365
+ console.log(data);
1366
+ });
1367
+ ```
1368
+ @category Listener
1369
+ */
1370
+ function inMeetingServiceListener(event: 'onMeetingStatus', callback: Function): void;
1371
+ /**
1372
+ * Listens for transcriptions. Only works when "save closed captions" is on.
1373
+ * @param event
1374
+ * @param callback
1375
+
1376
+ * Example:
1377
+ * ```js
1378
+
1379
+ ZoomMtg.inMeetingServiceListener('onReceiveTranscriptionMsg', function (data) {
1380
+ console.log('onReceiveTranscriptionMsg', data);
1381
+ });
1382
+
1383
+ ZoomMtg.inMeetingServiceListener('onReceiveTranslateMsg', function (data) {
1384
+ console.log('onReceiveTranslateMsg', data);
1385
+ });
1386
+ ```
1387
+ * @category Listener
1388
+ */
1389
+ function inMeetingServiceListener(event: 'onReceiveTranscriptionMsg' | 'onReceiveTranslateMsg', callback: Function): void;
1390
+ /**
1391
+ * Listens for audio and video quality of service (QoS) events.
1392
+ * @param event
1393
+ * @param callback
1394
+ * Example:
1395
+ * ```js
1396
+ ZoomMtg.inMeetingServiceListener('onAudioQos', function (data) {
1397
+ console.log('onAudioQos', data);
1398
+ });
1399
+
1400
+ ZoomMtg.inMeetingServiceListener('onVideoQos', function (data) {
1401
+ console.log('onVideoQos', data);
1402
+ });
1403
+
1404
+ ZoomMtg.inMeetingServiceListener('onShareQos', function (data) {
1405
+ console.log('onShareQos', data);
1406
+ });
1407
+ ```
1408
+ * @category Listener
1409
+ */
1410
+ function inMeetingServiceListener(event: 'onAudioQos' | 'onVideoQos' | 'onShareQos', callback: Function): void;
1411
+ /**
1412
+ * Listens for claim status after calling claimHost with host key.
1413
+ * @param event
1414
+ * @param callback
1415
+ * Example:
1416
+ * ```js
1417
+ ZoomMtg.inMeetingServiceListener('onClaimStatus', function (data) {
1418
+ console.log(data);
1419
+ });
1420
+ ```
1421
+ @category Listener
1422
+ */
1423
+ function inMeetingServiceListener(event: 'onClaimStatus', callback: Function): void;
1424
+
1425
+ /**
1426
+ * Listens for user network quality change.
1427
+ * @param event
1428
+ * @param callback
1429
+ * Example:
1430
+ ```js
1431
+ ZoomMtg.inMeetingServiceListener('onNetworkQualityChange', function (data) {
1432
+ // {level: 0 || 1 || 2 || 3 || 4 || 5, userId, type: 'uplink' }
1433
+ // 0,1 => bad; 2 => normal; 3,4,5 => good;
1434
+ console.log(data);
1435
+ });
1436
+ ```
1437
+ @category Listener
1438
+ */
1439
+ function inMeetingServiceListener(event: 'onNetworkQualityChange' , callback: Function): void;
1440
+
1441
+ /**
1442
+ * Listens for media capture permission after calling request media capture permission.
1443
+ * @param event
1444
+ * @param callback
1445
+ * Example:
1446
+ * ```js
1447
+ ZoomMtg.inMeetingServiceListener('onMediaCapturePermissionChange', function (data) {
1448
+ // {allow: true || false}
1449
+ console.log(data);
1450
+ });
1451
+ ```
1452
+ @category Listener
1453
+ */
1454
+ function inMeetingServiceListener(event: 'onMediaCapturePermissionChange', callback: Function): void;
1455
+
1456
+ /**
1457
+ * Listens for media capture status change.
1458
+ * @param event
1459
+ * @param callback
1460
+ * Example:
1461
+ * ```js
1462
+ ZoomMtg.inMeetingServiceListener('onMediaCaptureStatusChange', function (data) {
1463
+ // {status: 0|1|2, userId: number}
1464
+ // 0=> not start, 1=> start, 2=> pause
1465
+ console.log(data);
1466
+ });
1467
+ ```
1468
+ @category Listener
1469
+ */
1470
+ function inMeetingServiceListener(event: 'onMediaCaptureStatusChange', callback: Function): void;
1471
+
1472
+ /**
1473
+ * Listens for breakout room status change
1474
+ * @param event
1475
+ * @param callback
1476
+ * Example:
1477
+ * ```js
1478
+ ZoomMtg.inMeetingServiceListener('onRoomStatusChange', function (data) {
1479
+ // {status: 2|3|4}
1480
+ // 2=> InProgress, 3=> Closing, 4=> Closed
1481
+ console.log(data);
1482
+ });
1483
+ ```
1484
+ @category Listener
1485
+ */
1486
+ function inMeetingServiceListener(event: 'onRoomStatusChange', callback: Function): void;
1487
+
1488
+
1489
+ /**
1490
+ * you can remove it >= 3.0.0
1491
+ * @deprecated
1492
+ */
1493
+ function reRender(args: {
1494
+ /**
1495
+ * Callback function on success.
1496
+ */
1497
+ success?: Function;
1498
+ /**
1499
+ * Callback function in the event of an error.
1500
+ */
1501
+ error?: Function }): void;
1502
+ /**
1503
+ * Gets the Meeting SDK for Web version.
1504
+ * @param args
1505
+ */
1506
+ function getWebSDKVersion(args: {
1507
+ /**
1508
+ * Callback function on success.
1509
+ */
1510
+ success?: Function;
1511
+ /**
1512
+ * Callback function in the event of an error.
1513
+ */
1514
+ error?: Function
1515
+ }): void;
1516
+ /**
1517
+ * Subscribes to audio or video quality of service (QoS) data.
1518
+ * @param args.audio
1519
+ * @param args.video
1520
+ */
1521
+ function subscribeStatisticData(args: {
1522
+ /**
1523
+ * If true, subscribe to audio QoS data.
1524
+ */
1525
+ audio?: boolean,
1526
+ /**
1527
+ * If true, subscribe to video QoS data.
1528
+ */
1529
+ video?: boolean,
1530
+ /**
1531
+ * If true, subscribe to share QoS data.
1532
+ */
1533
+ share?: boolean,
1534
+ /**
1535
+ * Callback function on success.
1536
+ */
1537
+ success?: Function;
1538
+ /**
1539
+ * Callback function in the event of an error.
1540
+ */
1541
+ error?: Function }): void;
1542
+ /**
1543
+ * Unsubscribes to audio or video quality of service (QoS) data.
1544
+ * @param args
1545
+ * @param args.audio
1546
+ * @param args.video
1547
+ */
1548
+ function unSubscribeStatisticData(args: {
1549
+ /**
1550
+ * If true, unsubscribe to audio QoS data.
1551
+ */
1552
+ audio?: boolean,
1553
+ /**
1554
+ * If true, unsubscribe to video QoS data.
1555
+ */
1556
+ video?: boolean,
1557
+ /**
1558
+ * If true, unsubscribe to share QoS data.
1559
+ */
1560
+ share?: boolean,
1561
+ /**
1562
+ * Callback function on success.
1563
+ */
1564
+ success?: Function;
1565
+ /**
1566
+ * Callback function in the event of an error.
1567
+ */
1568
+ error?: Function }): void;
1569
+ /**
1570
+ * Checks if the browser supports virtual background (VB) and mask. Must enable "virtual background" to use this function.
1571
+ * @category VirtualBackground
1572
+ */
1573
+ function isSupportVirtualBackground(args: {
1574
+ /**
1575
+ * Callback function on success.
1576
+ */
1577
+ success?: typeof vbSupportDataFunc | Function;
1578
+ /**
1579
+ * Callback function in the event of an error.
1580
+ */
1581
+ error?: Function;
1582
+ }): void;
1583
+ /**
1584
+ * Get virtual background status.
1585
+ * @category VirtualBackground
1586
+ */
1587
+ function getVirtualBackgroundStatus(args: {
1588
+ /**
1589
+ * Callback function on success.
1590
+ */
1591
+ success?: typeof vbStatusDataFunc | Function;
1592
+ /**
1593
+ * Callback function in the event of an error.
1594
+ */
1595
+ error?: Function;
1596
+ }): void;
1597
+ /**
1598
+ * Update VB or mask background image list.
1599
+ * @param args
1600
+ * @category VirtualBackground
1601
+ * @RateLimit 1s
1602
+ */
1603
+ function updateVirtualBackgroundList(args: {
1604
+ /**
1605
+ * Virtual background (VB) list. To disable VB, use vbList=[].
1606
+ */
1607
+ vbList?: Array<VbImageInfoType>;
1608
+ /**
1609
+ * Callback function on success.
1610
+ */
1611
+ success?: Function;
1612
+ /**
1613
+ * Callback function in the event of an error.
1614
+ */
1615
+ error?: Function
1616
+ }): void;
1617
+ /**
1618
+ * Change virtual background (VB) to the specified string from the VB list if the names match.
1619
+ * If id='blur', blur background instead.
1620
+ * Note that you cannot remove the VB once a VB image or blur is set, but you can switch between different VBs.
1621
+ * @param args
1622
+ * @category VirtualBackground
1623
+ * @RateLimit 1s
1624
+ */
1625
+ function setVirtualBackground(args: {
1626
+ /**
1627
+ * VB or mask background ID
1628
+ */
1629
+ id?: string,
1630
+ /**
1631
+ * Callback function on success.
1632
+ */
1633
+ success?: Function;
1634
+ /**
1635
+ * Callback function in the event of an error.
1636
+ */
1637
+ error?: Function
1638
+ }): void;
1639
+ /**
1640
+ *
1641
+ * Lock VB or mask to a specific image.
1642
+ * @param args
1643
+ * @category VirtualBackground
1644
+ * @RateLimit 1s
1645
+ */
1646
+ function lockVirtualBackground(args: {
1647
+ /**
1648
+ * Lock or unlock VB or mask.
1649
+ */
1650
+ isLock: boolean;
1651
+ /**
1652
+ * Callback function on success.
1653
+ */
1654
+ success?: Function;
1655
+ /**
1656
+ * Callback function in the event of an error.
1657
+ */
1658
+ error?: Function
1659
+ }):void;
1660
+
1661
+ /**
1662
+ * In the Electron application, if this method is registered, it calls getVideoSourcesCallBack when a user clicks "screen share" to obtain the application information returned by Electron that can share the desktop. Provide the callback function return desktopCapturer share sources in the Electron app.
1663
+ * @param args
1664
+ */
1665
+ function shareSource(args: {
1666
+ /**
1667
+ * Callback function needed to return the source of the Electron share:
1668
+ */
1669
+ getVideoSourcesCallBack: typeof getShareSourcesFunc | Function;
1670
+ /**
1671
+ * Callback function on success.
1672
+ */
1673
+ success?: Function;
1674
+ /**
1675
+ * Callback function in the event of an error.
1676
+ */
1677
+ error?: Function;
1678
+ }): void;
1679
+
1680
+ /**
1681
+ * Get the supported or unsupported features on the current browser/platform.
1682
+ *
1683
+ * @returns A `SupportFeatures` object. The object has following properties:
1684
+ * - `platform`: string, the browser version info or platform version info.
1685
+ * - `supportFeatures`: Array<string>, contains all the support features on the current platform.
1686
+ * - `unSupportFeatures`: Array<string>, contains all the unsupported features on the current platform.
1687
+ */
1688
+ function checkFeatureRequirements(): SupportFeatures;
1689
+
1690
+ /**
1691
+ * Stop Incoming Audio
1692
+ */
1693
+ function stopIncomingAudio(args: {
1694
+ /**
1695
+ * stop = true, stop incoming audio
1696
+ */
1697
+ stop: boolean;
1698
+ /**
1699
+ * Callback function on success.
1700
+ */
1701
+ success?: Function;
1702
+ /**
1703
+ * Callback function in the event of an error.
1704
+ */
1705
+ error?: Function;
1706
+ }
1707
+ ): void;
1708
+
1709
+ /**
1710
+ * Media capture permission
1711
+ * For current user to request media capture permission.
1712
+ * Use ZoomMtg.inMeetingServiceListener('onMediaCapturePermissionChange', function({allow: boolean}){}) to listen for the request result.
1713
+ */
1714
+ function mediaCapturePermission(args: {
1715
+ /**
1716
+ * operate = 'request', request media capture permission
1717
+ */
1718
+ operate: string;
1719
+ /**
1720
+ * Callback function on success.
1721
+ */
1722
+ success?: Function;
1723
+ /**
1724
+ * Callback function in the event of an error.
1725
+ */
1726
+ error?: Function;
1727
+ }
1728
+ ): void;
1729
+
1730
+ /**
1731
+ * Start, pause, or stop media capture.
1732
+ * Use ZoomMtg.inMeetingServiceListener('onMediaCaptureStatusChange', function({status: 0|1|2, userId}){}) to listen for the media capture status.
1733
+ */
1734
+ function mediaCapture(args: {
1735
+ /**
1736
+ * record = "start" | "pause" | "stop"
1737
+ */
1738
+ record: string;
1739
+ /**
1740
+ * Callback function on success.
1741
+ */
1742
+ success?: Function;
1743
+ /**
1744
+ * Callback function in the event of an error.
1745
+ */
1746
+ error?: Function;
1747
+ }
1748
+ ): void;
1749
+ /**
1750
+ * Ask the host to join the breakout room to help. The host can decline or postpone the request for help.
1751
+ * - Only a non-host or non-co-host can call this method.
1752
+ * @param args
1753
+ * @category BreakoutRoom
1754
+ */
1755
+ function askForHelp(args: {
1756
+ /**
1757
+ * Callback function on success.
1758
+ */
1759
+ success?: Function;
1760
+ /**
1761
+ * Callback function in the event of an error.
1762
+ */
1763
+ error?: Function
1764
+ }): void;
1765
+ /**
1766
+ * Postpone the request for help.
1767
+ * - Only the host can call this method.
1768
+ * @category BreakoutRoom
1769
+ */
1770
+ function postponeHelping(args: {
1771
+ /**
1772
+ * User ID of the user who requested help.
1773
+ */
1774
+ userId: number;
1775
+ /**
1776
+ * Callback function on success.
1777
+ */
1778
+ success?: Function;
1779
+ /**
1780
+ * Callback function in the event of an error.
1781
+ */
1782
+ error?: Function;
1783
+ }): void;
1784
+ /**
1785
+ * Host and co-host create breakout rooms.
1786
+ * @category BreakoutRoom
1787
+ *
1788
+ */
1789
+ function createBreakoutRoom(args: {
1790
+ /**
1791
+ * data: number | string | Array<string>. Three types of parameters:
1792
+ * - number : the number of rooms to create. The specified number of rooms will be created and the room will be automatically named.
1793
+ * - string : the name of the room. The specified name of room will be created.
1794
+ * - Array<string>: list of room names. The specified rooms will be created.
1795
+ */
1796
+ data: number | string | Array<string>,
1797
+ /**
1798
+ * pattern BreakoutRoomAllocationPattern; How to assign the participants to the rooms. Default is `Manually`
1799
+ * - `BreakoutRoomAllocationPattern.auto`: Distribute participants evenly to each room.
1800
+ * - `BreakoutRoomAllocationPattern.manually`: Assign participants manually later.
1801
+ * - `BreakoutRoomAllocationPattern.selfSelect`: Participants will choose the room to join.
1802
+ *
1803
+ * - Room List: success
1804
+ * - Errors:
1805
+ * - INVALID_OPERATION (breakout room has started!)
1806
+ * - INVALID_PARAMETERS (exceed maximum size): maximum_size = 50; if support big rooms plan, up to 100
1807
+ */
1808
+ pattern?: BreakoutRoomAllocationPattern,
1809
+ /**
1810
+ * Callback function on success.
1811
+ */
1812
+ success?: Function;
1813
+ /**
1814
+ * Callback function in the event of an error.
1815
+ */
1816
+ error?: Function;
1817
+ }): void;
1818
+ /**
1819
+ *
1820
+ * Open the created rooms (host or co-host only).
1821
+ * @category BreakoutRoom
1822
+ */
1823
+ function openBreakoutRooms(args: {
1824
+ /**
1825
+ * Room options. Default options = {
1826
+ isAutoJoinRoom: false,
1827
+ isBackToMainSessionEnabled: true,
1828
+ isTimerEnabled: false,
1829
+ timerDuration: 1800,
1830
+ notNotifyMe: false,
1831
+ needCountDown: true,
1832
+ waitSeconds: 60,
1833
+ */
1834
+ options?: RoomOption,
1835
+ /**
1836
+ * Callback function on success.
1837
+ */
1838
+ success?: Function;
1839
+ /**
1840
+ * Callback function in the event of an error.
1841
+ */
1842
+ error?: Function;
1843
+ }): void;
1844
+ /**
1845
+ *
1846
+ * Close the room (host and co-host only).
1847
+ * @category BreakoutRoom
1848
+ */
1849
+ function closeBreakoutRooms(args: {
1850
+ /**
1851
+ * Callback function on success.
1852
+ */
1853
+ success?: Function;
1854
+ /**
1855
+ * Callback function in the event of an error.
1856
+ */
1857
+ error?: Function;
1858
+ }): void;
1859
+ /**
1860
+ * Host and cohost can broadcast content in the main session and all rooms.
1861
+ * @category BreakoutRoom
1862
+ */
1863
+ function broadcast(args: {
1864
+ /**
1865
+ * Content of broadcast.
1866
+ */
1867
+ content: string
1868
+ /**
1869
+ * Callback function on success.
1870
+ */
1871
+ success?: Function;
1872
+ /**
1873
+ * Callback function in the event of an error.
1874
+ */
1875
+ error?: Function;
1876
+ }): void;
1877
+ /**
1878
+ * Assign an unassigned participant to a room (host and co-host only).
1879
+ * @category BreakoutRoom
1880
+ */
1881
+ function assignUserToBreakoutRoom(args: {
1882
+ /**
1883
+ * userId user ID.
1884
+ */
1885
+ userId: number,
1886
+ /**
1887
+ * Target room ID. The getBreakoutRooms method returns the breakout room ID (boId).
1888
+ */
1889
+ targetRoomId: string,
1890
+ /**
1891
+ * Callback function on success.
1892
+ */
1893
+ success?: Function;
1894
+ /**
1895
+ * Callback function in the event of an error.
1896
+ */
1897
+ error?: Function;
1898
+ }): void;
1899
+
1900
+ /**
1901
+ * Move a participant in room to the specified room (host and co-host only).
1902
+ * @category BreakoutRoom
1903
+ */
1904
+ function moveUserToBreakoutRoom(args: {
1905
+ /**
1906
+ * User ID
1907
+ */
1908
+ userId: number,
1909
+ /**
1910
+ * Target room ID. The getBreakoutRooms method returns the breakout room ID (boId).
1911
+ */
1912
+ targetRoomId: string,
1913
+ /**
1914
+ * Callback function on success.
1915
+ */
1916
+ success?: Function;
1917
+ /**
1918
+ * Callback function in the event of an error.
1919
+ */
1920
+ error?: Function;
1921
+ }): void;
1922
+ /**
1923
+ * Join a breakout room
1924
+ * - Join only after the room is open.
1925
+ * @category BreakoutRoom
1926
+ */
1927
+ function joinBreakoutRoom(args: {
1928
+ /**
1929
+ * The room ID.
1930
+ */
1931
+ roomId: string
1932
+ /**
1933
+ * Callback function on success.
1934
+ */
1935
+ success?: Function;
1936
+ /**
1937
+ * Callback function in the event of an error.
1938
+ */
1939
+ error?: Function;
1940
+ }): void;
1941
+
1942
+ /**
1943
+ * Leave the room
1944
+ * - If the participant is not allowed to leave a room, the participant cannot return to the main session.
1945
+ * @category BreakoutRoom
1946
+ */
1947
+ function leaveBreakoutRoom(args: {
1948
+ /**
1949
+ * Callback function on success.
1950
+ */
1951
+ success?: Function;
1952
+ /**
1953
+ * Callback function in the event of an error.
1954
+ */
1955
+ error?: Function;
1956
+ }): void;
1957
+ /**
1958
+ * Get the current breakout room.
1959
+ * @category BreakoutRoom
1960
+ */
1961
+ function getCurrentBreakoutRoom(args: {
1962
+ /**
1963
+ * Callback function on success.
1964
+ */
1965
+ success?: Function;
1966
+ /**
1967
+ * Callback function in the event of an error.
1968
+ */
1969
+ error?: Function;
1970
+ }): {
1971
+ attendeeStatus: BreakoutRoomAttendeeStatus;
1972
+ name: string;
1973
+ roomId: string;
1974
+ };
1975
+ /**
1976
+ *
1977
+ * Get breakout room options.
1978
+ * @category BreakoutRoom
1979
+ */
1980
+ function getBreakoutRoomOptions(args: {
1981
+ /**
1982
+ * Callback function on success.
1983
+ */
1984
+ success?: Function;
1985
+ /**
1986
+ * Callback function in the event of an error.
1987
+ */
1988
+ error?: Function;
1989
+ }): RoomOption;
1990
+ /**
1991
+ *
1992
+ * The status of the breakout room.
1993
+ * @category BreakoutRoom
1994
+ */
1995
+ function getBreakoutRoomStatus(args: {
1996
+ /**
1997
+ * Callback function on success.
1998
+ */
1999
+ success?: Function;
2000
+ /**
2001
+ * Callback function in the event of an error.
2002
+ */
2003
+ error?: Function;
2004
+ }): BreakoutRoomControlStatus;
2005
+ /**
2006
+ * The break room status of the attendee.
2007
+ * @category BreakoutRoom
2008
+ */
2009
+ function getUserStatus(args: {
2010
+ /**
2011
+ * Callback function on success.
2012
+ */
2013
+ success?: Function;
2014
+ /**
2015
+ * Callback function in the event of an error.
2016
+ */
2017
+ error?: Function;
2018
+ }): BreakoutRoomAttendeeStatus;
2019
+ /**
2020
+ * Gets the unassigned list of attendees.
2021
+ * @category BreakoutRoom
2022
+ */
2023
+ function getUnassignedAttendeeList(args: {
2024
+ /**
2025
+ * Callback function on success.
2026
+ */
2027
+ success?: Function;
2028
+ /**
2029
+ * Callback function in the event of an error.
2030
+ */
2031
+ error?: Function;
2032
+ }): void;
2033
+ /**
2034
+ * Pins the corresponding user.
2035
+ */
2036
+ function operatePin(args: {
2037
+ /**
2038
+ * operate 'add' | 'replace' | 'remove' spotlight.
2039
+ */
2040
+ operate: 'add' | 'replace' | 'remove';
2041
+ /**
2042
+ * userId A valid user ID in the current meeting.
2043
+ */
2044
+ userId: number;
2045
+ /**
2046
+ * Callback function on success.
2047
+ */
2048
+ success?: Function;
2049
+ /**
2050
+ * Callback function in the event of an error.
2051
+ */
2052
+ error?: Function;
2053
+ }): void;
2054
+ /**
2055
+ * Gets the pinned userId list.
2056
+ */
2057
+ function getPinList(args: {
2058
+ /**
2059
+ * Callback function on success.
2060
+ */
2061
+ success?: Function;
2062
+ /**
2063
+ * Callback function in the event of an error.
2064
+ */
2065
+ error?: Function;
2066
+ }): number[];
2067
+ /**
2068
+ * Operates Spotlight user (host and cohost only).
2069
+ */
2070
+ function operateSpotlight(args: {
2071
+ /**
2072
+ * operate 'add' | 'replace' | 'remove' spotlight.
2073
+ */
2074
+ operate: 'add' | 'replace' | 'remove';
2075
+ /**
2076
+ * A valid user ID in the current meeting.
2077
+ */
2078
+ userId: number;
2079
+ /**
2080
+ * Callback function on success.
2081
+ */
2082
+ success?: Function;
2083
+ /**
2084
+ * Callback function in the event of an error.
2085
+ */
2086
+ error?: Function;
2087
+ }): void;
2088
+ /**
2089
+ * Gets the Spotlight userId list.
2090
+ */
2091
+ function getSpotlightList(args: {
2092
+ /**
2093
+ * Callback function on success.
2094
+ */
2095
+ success?: Function;
2096
+ /**
2097
+ * Callback function in the event of an error.
2098
+ */
2099
+ error?: Function;
2100
+ }): number[];
2101
+ }