-
Notifications
You must be signed in to change notification settings - Fork 100
/
index.d.ts
2838 lines (2768 loc) · 71.4 KB
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/* eslint-disable @typescript-eslint/no-explicit-any */
/* eslint-disable @typescript-eslint/no-unused-vars */
/**
* initArgs
*/
declare let initArgs: {
/**
* debug: default: false, optional. Turns on debug mode to print logs in the browser console.
*/
debug?: boolean; //optional
/**
* 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.
*/
patchJsMedia?: boolean; //optional
/**
* leaveUrl: Required. The URL to post after the user leaves the meeting. Example: “http://www.zoom.us”
* If you do not set a leaveURL, the default will be -> window.location.origin
* Other substitutions include the following.
*
* http://127.0.0.1 -> http://127.0.0.1 (no change)
*
* https://127.0.0.1 -> https://127.0.0.1 (no change)
*
* about:blank -> about:blank
*
* /meeting -> window.location.origin/meeting
*
* zoom.us -> https://zoom.us
*
*/
leaveUrl: string; //required
/**
* webEndpoint: optional. Web domain option for Zoom PSO environment.
*/
webEndpoint?: string; //optional
/**
* showMeetingHeader: default: true, optional. Shows or hides the meeting header, including the meeting number and topic.
*/
showMeetingHeader?: boolean; //optional
/**
* disableInvite: default: false, optional. Enables or disables the invite function.
*/
disableInvite?: boolean; //optional
/**
* disableCallOut: default: false, optional. Enables or disables the call out function.
*/
disableCallOut?: boolean; //optional
/**
* disableRecord: default: false, optional. Enables or disables the call out function.
*/
disableRecord?: boolean; //optional
/**
* disableJoinAudio: default: false, optional. Enables or disables the join audio function.
*/
disableJoinAudio?: boolean; //optional
/**
* audioPanelAlwaysOpen: default: false, optional. Sets the default state of the audio panel on join. Always open or closed.
*/
audioPanelAlwaysOpen?: boolean; //optional
/**
* showPureSharingContent, default: false, optional. Prevents elements from covering sharing content when show is true.
*/
showPureSharingContent?: boolean; //optional
/**
* isSupportAV: default: true, optional. Enables or disables the audio and video features.
*/
isSupportAV?: boolean; //optional
/**
* isSupportChat: default: true, optional. Enables or disables the chat feature.
*/
isSupportChat?: boolean; //optional
/**
* isSupportQA: default: true, optional. Enables or disables the webinar Q&A feature.
*/
isSupportQA?: boolean; //optional
/**
* isSupportCC: default: true, optional. Enables or disables the meeting closed caption feature.
*/
isSupportCC?: boolean; //optional
/**
* isSupportPolling: default: true, optional. Enables or disables the meeting polling feature.
*/
isSupportPolling?: boolean; //optional
/**
* isSupportBreakout: default: true, optional. Enables or disables the meeting breakout room feature.
*/
isSupportBreakout?: boolean; //optional
/**
* screenShare: default: true, optional. Enables or disables the browser URL sharing feature (Chrome only).
*/
screenShare?: boolean; //optional
/**
* videoDrag: default: true, optional. Enable or disable the drag video tile feature.
*/
videoDrag?: boolean; //optional
/**
* sharingMode: default: 'both', optional. Shares screen. 'fit' - disables sharing "origin size".
*/
sharingMode?: string; //optional
/**
* videoHeader: default: true, optional. Shows or hides the video tile header.
*/
videoHeader?: boolean; //optional
/**
* isLockBottom: default: true, optional. Shows or hides the footer.
*/
isLockBottom?: boolean; // optional
/**
* isSupportNonverbal: default: true, optional. Enables or disables the nonverbal feedback feature such as slow down or speed up icons.
* For more details about this feature, see: https://support.zoom.us/hc/en-us/articles/115001286183-Nonverbal-feedback-and-meeting-reactions-
*/
isSupportNonverbal?: boolean; // optional
/**
* isShowJoiningErrorDialog: default: true, optional. Enables or disables the join error popup dialog when the SDK fails to join a meeting.
*/
isShowJoiningErrorDialog?: boolean; // optional
/**
* inviteUrlFormat: default: '', optional. Customizes the invite URL format. Use the syntax: https://yourdomain/{0}?pwd={1}.
* Only available for v2.4.0+. Requires that Zoom sets the Enable Client SDK Customize Invite URL flag for your account.
* Contact Zoom Developer Support for details.
*/
inviteUrlFormat?: string;
/**
* loginWindow: Defines the registration and login popup window size.
*/
loginWindow?: {
/**
* width: default: 400, optional. Login popup window width, in pixels.
*/
width: string;
/**
* height: default: 380, optional. Login popup window height, in pixels.
*/
height: string;
}; // optional,
/**
* meetingInfo: default: ['topic','host','mn','pwd','telPwd','invite','participant','dc', 'enctype', 'report'], optional.
* Choose the meeting information to display: the meeting topic, host, meeting number (mn), password (pwd), telephone password (telPwd), etc.
*/
meetingInfo?: Array<MeetingInfoType>; // optional
/**
* disableVoIP: default: false, optional. Enables or disables the Voice over IP (VoIP) feature.
*/
disableVoIP?: boolean; // optional
/**
* disableReport: default: false, optional. Enables or disables the report feature.
*/
disableReport?: boolean; // optional
/**
* disablePreview: default: false, optional. Enables or disables the audio and video preview features.
*/
disablePreview?: boolean; // optional
/**
* enableWaitingRoomPreview: default: true, optional. Enables or disables the audio and video preview in the waiting room or when the participant is waiting for the host to start the meeting.
*/
enableWaitingRoomPreview?: boolean; // optional
/**
* disableCORP: default: false, optional. Enables or disables web isolation mode (developer environment feature).
*/
disableCORP?: boolean; // optional
/**
* onRetryCallback: default: null, optional. Sets an on-retry callback function.
*/
onRetryCallback?: Function; // optional
/**
* isSupportSimulive, default false, Simulive not with credentialless mode. https://developer.chrome.com/blog/coep-credentialless-origin-trial/
*/
isSupportSimulive?: boolean; // optional
/**
* 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:
* https://developers.zoom.us/docs/meeting-sdk/web/720p/
*/
enableHD?: boolean; // optional
/**
* enableFullHD: optional, >= 2.9.0 default=false, enable webinar attendee receive 1080P video when zoom backend support.
*/
enableFullHD?: boolean;
/**
* helper: optional, default: ''. Sets a helper HTML page for working around CORS issues.
* Example: https://github.com/zoom/meetingsdk-web/blob/master/helper.html
*/
helper?: string; // optional
/**
* externalLinkPage: an intermediary HTML page for outgoing hyperlinks.
*/
externalLinkPage?: string; // optional
/**
* defaultView: 'gallery' or 'speaker'. Optional. Sets the default video layout to gallery view (if supported) or 'speaker' (default value).
*/
defaultView?: string; // optional
/**
* Shows (false, default value) or hides (true) the "Share tab audio" checkbox when sharing a Chrome tab.
*/
hideShareAudioOption?: boolean;
/**
* disablePictureInPicture: default: false, optional. Enables or disables the Picture in Picture feature.
*/
disablePictureInPicture?: boolean;
/**
* onInviteSearchZoomPhoneCallback, callback when the user uses Invite->Zoom Phone-> search number.
* isSameAccount = true, support direct call internal ext number.
* Example:
```js
onInviteSearchZoomPhoneCallback: function (e) {
const searchResult =[
{
"firstName": "firstName1",
"lastName": "lastName1",
"displayName": "firstName1 lastName1",
"snsEmail": "[email protected]",
"pbx": {dn: ['+1xxxxxxxxxx'], ext: 800},
isSameAccount: true
},
{
"firstName": "firstName2",
"lastName": "lastName2",
"displayName": "firstName2 lastName2",
"snsEmail": "[email protected]",
"pbx": {dn: ['+2xxxxxxxxxx'], ext: 800},
isSameAccount: false
}];
return Promise.resolve(searchResult);
}
```
*/
onInviteSearchZoomPhoneCallback?: Function;
/**
* disableZoomPhone: default: false, optional. Enables or disables the Invite->Zoom Phone feature.
*/
disableZoomPhone?: boolean;
/**
* disableZoomLogo: default: false, optional. If true, removes the Zoom workplace logo.
* Disabling the Zoom logo will not be available in the future. For a custom experience, build with the [Zoom Video SDK](https://developers.zoom.us/docs/video-sdk/).
*/
disableZoomLogo?: boolean;
/**
* Quickly leave the meeting when refreshing or closing the page, instead of experiencing meeting failover. Caveat for two scenarios:
* PSTN: Phone user who is bound to the current user. The phone will hang up instead of staying connected.
* Breakout room: Users in a Breakout room need to be assigned again instead of having been assigned and auto-joining the room.
*/
leaveOnPageUnload?: boolean;
/**
* success: optional, callback function on success.
*/
success?: Function;
/**
* error: optional, callback function on error.
*/
error?: Function;
};
/**
* MeetingInfoType
*/
export type MeetingInfoType =
| 'topic'
| 'host'
| 'mn'
| 'pwd'
| 'telPwd'
| 'invite'
| 'participant'
| 'dc'
| 'enctype'
| 'report';
/**
* Virtual background (VB) or mask image information.
*/
export type VbImageInfoType = {
/**
* VB or mask ID, must be unique
*/
id: string;
/**
* Name to display for VB or mask.
*/
displayName: string;
/**
* Virtual background or mask file name.
*/
fileName: string;
/**
* VB or mask image resource URL.
*/
url: string;
};
/**
* Call out option interface.
*/
export interface CallOutOption {
/**
* Determines whether to require a greeting before being connected.
*/
greeting?: boolean;
/**
* Determines whether to require pressing 1 before being connected.
*/
pressingOne?: boolean;
}
/**
* Invite phone option
*/
export interface InvitePhoneOption {
/**
* Is call me, phone audio, bound to current user?
*/
callMe?: boolean;
/**
* Is a greeting required before being connected?
*/
greeting?: boolean;
/**
* Is the user required to press 1 before being connected?
*/
pressingOne?: boolean;
}
/**
* In meeting event listeners.
*/
export type InMeetingEvent =
| 'onUserJoin'
| 'onUserLeave'
| 'onUserUpdate'
| 'onUserIsInWaitingRoom'
| 'onMeetingStatus'
| 'onPreviewPannel| receiveSharingChannelReady'
| 'onReceiveTranscriptionMsg'
| 'onReceiveTranslateMsg'
| 'onAudioQos'
| 'onVideoQos'
| 'onShareQos'
| 'onClaimStatus'
| 'onNetworkQualityChange'
| 'onMediaCapturePermissionChange'
| 'onMediaCaptureStatusChange'
| 'onRoomStatusChange'
| 'onActiveSpeaker'
| 'onPictureInPicture'
| 'onFocusModeStatusChange'
| 'onJoinSpeed';
/**
* For the APIs that take images, the value of the image type returned by the getVideoSourcesCallBack method, passed in the shareSource API.
*/
export type NativeImageType = {
/**
* The data URL of the image.
*/
toDataURL(): string;
};
/**
* 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.
*/
export type DesktopCapturerSource = {
/**
* appIcon.toDataURL() method used to display the app icon.
*/
appIcon: NativeImageType;
/**
* The display ID.
*/
display_id: string;
/**
* The app ID used to pass the ID to the media stream.
*/
id: string;
/**
* The app name.
*/
name: string;
/**
* thumbnail.toDataURL() method used to display app screenshots.
*/
thumbnail: NativeImageType;
/**
* (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.
*/
imgSrc?: string;
/**
* (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.
*/
appIconSrc?: string;
};
/**
* onMeetingStatus
*/
export declare enum onMeetingStatus {
connecting = 1,
connected = 2,
disconnected = 3,
reconnecting = 4,
}
/**
* BreakoutRoomControlStatus
*/
export enum BreakoutRoomControlStatus {
NotStarted = 1,
InProgress = 2,
Closing = 3,
Closed = 4,
}
/**
* BreakoutRoomStatus
*/
export enum BreakoutRoomStatus {
NoToken = 1,
GotToken = 2,
Started = 3,
Closing = 4,
Closed = 5,
}
/**
* Allocation pattern of breakout room
* @enum
*/
export enum BreakoutRoomAllocationPattern {
auto = 1,
manually = 2,
selfSelect = 3,
}
/**
* Room Status of attendee
* @enum
*/
export enum BreakoutRoomAttendeeStatus {
/**
* Unassigned
*/
Initial = 'initial',
/**
* Assigned but not in room
*/
Invited = 'be invited',
/**
* Joining the room
*/
Joining = 'joining',
/**
* In room
*/
InRoom = 'in room',
/**
* Leaving the room
*/
Returning = 'returning',
/**
* Not joined to the room
*/
NotJoined = 'not joined',
/**
* Time up
*/
TimeUp = 'time up',
/**
* In the main session
*/
MainSession = 'main session',
}
/**
* Room creation options.
*/
export interface RoomOption {
/**
* Whether to automatically join the room when the participant is assigned to a room.
*/
isAutoJoinRoom?: boolean;
/**
* Whether to allow participants in the room to return to the main session.
*/
isBackToMainSessionEnabled?: boolean;
/**
* Whether to set a timer for the breakout room.
*/
isTimerEnabled?: boolean;
/**
* Duration of the timer.
*/
timerDuration?: number;
/**
* Whether to notify the user when the time is up. True: Do not notify. False: Notify.
*/
notNotifyMe?: boolean;
/**
* Whether to offer a countdown after closing the breakout room.
*/
needCountDown?: boolean;
/**
* When the breakout room is closing, the buffer time (in seconds) to leave the room. Values: 10 | 15 | 30 | 60 | 120.
*/
waitSeconds?: number;
}
/**
* Interface for the result of the check feature support information on the user's platform.
* Features in the supportFeatures array are supported on the current platform.
* Features in the unSupportFeatures array are not supported on the current platform.
*/
export interface SupportFeatures {
/**
* @ignore
*/
platform: string;
/**
* @ignore
*/
supportFeatures: Array<string>;
/**
* @ignore
*/
unSupportFeatures: Array<string>;
}
/**
* ZoomMtg.i18n
*
* Examples:
*
* en-US https://source.zoom.us/{VERSION_NUMBER}/lib/lang/en-US.json
*
* zh-CN https://source.zoom.us/{VERSION_NUMBER}/lib/lang/zh-CN.json
* ```js
* ZoomMtg.i18n.load('en-US');
var userLangTemplate = ZoomMtg.i18n.getAll("en-US");
var userLangDict = Object.assign({}, userLangTemplate, {
'apac.toolbar_leave': 'Leave',
'apac.wc_leave_meeting': 'Do you want leave',
'apac.wc_joining_meeting': 'I want to join...',
'apac.wc_video.start_video': 'Turn on video',
'apac.wc_video.stop_video': 'Turn off video'
});
ZoomMtg.i18n.load(userLangDict, "myLang");
ZoomMtg.i18n.reload('myLang');
* ```
*/
export declare namespace ZoomMtgLang {
/**
* Loads translations.
* See for abbreviation descriptions: https://developers.zoom.us/docs/meeting-sdk/web/client-view/multi-language/
* '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', 'sv-SE'
* Be sure to call it before calling `init`.
* @param lang
*
*/
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'
| 'sv-SE',
): Promise<any>;
/**
* Loads translation URL. Use the URL provided by Zoom or your own resource object.
* For the Zoom-provided JSON language use this syntax: https://source.zoom.us/{VERSION_NUMBER}/lib/lang/{LANG_CODE}.json.
* 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
* Or create your own JSON resource object.
* Be sure to call it before calling `init`.
* @param url JSON Language resource URL or resource object
* @param lang Your assigned language name for the resource.
*/
function load(url: string | object, lang: string): Promise<any>;
/**
* This is deprecated in versions >= 3.0.0, so you can remove it.
@deprecated
*
*/
function reload(lang: string): void;
/**
* Gets all language resource results.
* @param lang
*
*/
function getAll(lang: string): object;
/**
* Looks up the given string up in the dictionary and returns the translation if one exists.
* If a translation is not found, returns the original word.
* @param key
*
*/
function get(key: string): void;
/**
* Gets the current language resource result.
*
*/
function getCurrentLang(): string;
/**
* Gets the support language array.
*
*/
function getSupportLanguage(): Array<string>;
/**
* This is deprecated in versions >= 3.0.0, so you can remove it.
* @deprecated
*/
function setSupportLanguage(langArray: Array<string>): void;
}
/**
* Virtual background (VB) status success callback
* @param args
*/
export function vbStatusDataFunc(data: {
/**
* Result:
*/
result: {
/**
* vbList, name is VB image name, must be unique and identify different VB image
*/
vbList: Array<VbImageInfoType>;
/**
* Whether or not VB is locked.
*/
lock: boolean;
/**
* Enable a blurred background or not.
*/
blur: boolean;
/**
* If true, the user can enable VB, mask, or blur through the UI
* and the developer can't call the following APIs to control it:
* updateVirtualBackgroundList
* setVirtualBackground
* lockVirtualBackground
*/
status: boolean;
/**
* True if the user selected VB, false if not.
*/
vb: boolean;
/**
* True if the user selected mask, false if not.
*/
mask: boolean;
/**
* The current user's VB ID.
*/
id: any;
};
}): void;
/**
* Support for virtual background (VB) callback
* @param args
*/
export function vbSupportDataFunc(data: {
/**
* Result:
*/
result: {
/**
* True if the user can support VB, false if not.
*/
vb: boolean;
/**
* True if the user can support mask, false if not.
*/
mask: boolean;
/**
* True if VB is enabled, false if not.
*/
enable: boolean;
};
}): void;
/**
* This method will be called when the “screen share” is clicked. Support for get screen share sources callback.
*/
export function getShareSourcesFunc(): Promise<DesktopCapturerSource[]>;
/**
* ZoomMtg
*/
export namespace ZoomMtg {
/**
* i18n
* @
*/
const i18n: typeof ZoomMtgLang;
/**
* Generate each time you join a meeting or webinar through a server-side function where you can securely store SDK credentials.
* See Generate the SDK JWT key for details:
* https://developers.zoom.us/docs/meeting-sdk/auth/
* See the Sample Signature app for an example:
* https://github.com/zoom/meetingsdk-sample-signature-node.js
* @category Join
*/
function generateSDKSignature(args: {
/**
* Required, your Meeting SDK SDK key or client id
*/
sdkKey: string;
/**
* Required, your Meeting SDK SDK secret or client secret
*/
sdkSecret: string;
/**
* Required, the Zoom meeting or webinar number.
*/
meetingNumber: string;
/**
* Required, 0 to specify participant, 1 to specify host.
*/
role: string;
/**
* Callback function on success.
*/
success?: Function;
/**
* Callback function in the event of an error.
*/
error?: Function;
}): string;
/**
* Changes the Zoom default library resource requirements.
* Default is ZoomMtg.setZoomJSLib('https://source.zoom.us/{VERSION_NUMBER}/lib', '/av')
* @category Join
*/
function setZoomJSLib(path?: string, dir?: string): void;
/**
* Preloads the WebAssembly (Wasm) files to reduce download time and improve the experience for users joining meetings.
* @category Join
*/
function preLoadWasm(): void;
/*
* Adds a script to download a requirements.js file and a node to the HTML body for the Meeting SDK for Web to use.
* Note that Chrome origin trials (OT) provide many new features before Chrome releases. See the following links for details:
* https://developer.chrome.com/origintrials/#/trials/active and https://developer.chrome.com/blog/origin-trials/
* The Meeting SDK for Web can use:
* 1. SharedArrayBuffer (SAB) OT for gallery view (Chrome 92 to 103). See: https://developers.zoom.us/docs/meeting-sdk/web/gallery-view/
* 2. WebAssembly SIMD to improve video and sharing performance (Chrome91 release). See: https://chromestatus.com/feature/6533147810332672
* 3. WebCodecs to address latency when starting video (Chrome94 release). See: https://chromestatus.com/feature/5669293909868544
* @category Join
*/
function prepareWebSDK(
origintrials?: Array<string>,
webim?: string,
jsmedia?: string,
): void;
/**
* Initializes a Zoom Meeting. You must initialize a Zoom meeting in order to start or join it.
* This method only requires the leaveUrl parameter.
* @param args
* @category Join
*/
function init(args: typeof initArgs): void;
/**
* Joins a meeting.
* @param args
* @category Join
* @RateLimit 10s
*/
function join(args: {
/**
* Required, the Zoom meeting or webinar number.
*/
meetingNumber: string | number;
/**
* Required. The name of the user starting or joining the meeting or webinar.
*/
userName: string;
/**
* Required for webinar. Required for meeting if registration is required; optional if not.
* The email of the user starting or joining the meeting or webinar.
*/
userEmail?: string;
/**
* Required. The meeting’s password. Leave as an empty string if the meeting or webinar only requires the waiting room.
*/
passWord?: string;
/**
* Optional. An identifier for the user that you can get back from the Meeting API. Max length 36 char.
*/
customerKey?: string;
/**
* Required if registration is required; optional if not. The registrant’s token.
*/
tk?: string;
/**
* Required for hosts starting a meeting or webinar; optional otherwise. The host’s Zoom Access Key (ZAK) token.
*/
zak?: string;
/**
* Required. Only sdkKey is supported for joining meetings on version 2.7.0 and higher.
*/
sdkKey?: string;
/**
* Required. The signature to start or join a meeting. See https://developers.zoom.us/docs/meeting-sdk/auth/ for details.
*/
signature: string;
/**
* 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.
*/
recordingToken?: string;
/**
* Optional. childToken.
*/
childToken?: string;
/**
* Callback function on success.
*/
success: Function;
/**
* Callback function in the event of an error.
*/
error: Function;
}): void;
/**
* Join a test meeting. JWT SDK signature only supports role=0.
* @param args
* @category Join
* @RateLimit 10s
*/
function joinTest(args: {
/**
* Required, the Zoom meeting or webinar number.
*/
meetingNumber: string | number;
/**
* Required. The name of the user starting or joining the meeting or webinar.
*/
userName: string;
/**
* Required for webinar. Required for meeting if registration is required; optional if not.
* The email of the user starting or joining the meeting or webinar.
*/
userEmail?: string;
/**
* Required. The meeting’s password. Leave as an empty string if the meeting or webinar only requires the waiting room.
*/
passWord?: string;
/**
* Optional. An identifier for the user that you can get back from the Meeting API. Max length 36 char.
*/
customerKey?: string;
/**
* Required. Only sdkKey is supported for joining meetings for versions 2.7.0 and above.
*/
sdkKey?: string;
/**
* Required. The signature to start or join a meeting. See https://developers.zoom.us/docs/meeting-sdk/auth/ for details.
*/
signature: string;
success: Function;
/**
* Callback function in the event of an error.
*/
error: Function;
}): void;
/**
* Shows or hides the invite button.
* @param args
*/
function showInviteFunction(args: {
/**
* Required
*/
show: boolean;
}): void;
/**
* Shows or hides the call out button to invite others by phone.
* See for details: https://support.zoom.com/hc/en/article?id=zm_kb&sysparm_article=KB0062038.
* @param args
*/
function showCalloutFunction(args: {
/**
* Required
*/
show: boolean;
}): void;
/**
* Shows or hides the meeting header.
* @param args
*/
function showMeetingHeader(args: {
/**
* Required
*/
show: boolean;
}): void;
/**
* Shows or hides the record button.
* @param args
*/
function showRecordFunction(args: {
/**
* Required
*/
show: boolean;
}): void;
/**
* Shows or hides the join audio button.
* @param args
*/
function showJoinAudioFunction(args: {
/**
* Required
*/
show: boolean;
}): void;
/**
* Set customized polling URL. Only works when you enable **Enable Client SDK Customized Invite URL** flag for your account.
* @param args
* @RateLimit 10s
*/
function setCustomizedPollingUrl(args: {
/**
* Customize create polling URL or callback.
*/
create?: string | Function;
/**
* Customize edit polling URL or callback.
*/
edit?: string | Function;
/**
* Callback function on success.
*/
success?: Function;
/**
* Callback function in the event of an error.
*/
error?: Function;
}): void;
/**
* Set customized waiting room title and description.
* @param args
* @RateLimit 10s
*/
function setCustomizeWaitingRoom(args: {
/**
* Customize waiting room title.
*/
title: string;
/**
* Customize waiting room description.
*/
desc?: string;
/**
* Callback function on success.
*/
success?: Function;
/**
* Callback function in the event of an error.
*/
error?: Function;
}): void;
/**
* Shows or hides border around shared content.
* @param args
*/
function showPureSharingContent(args: {
/**
* Required, true to hide border, false to show it.
*/
show: boolean;
}): void;
/**
* Gets the current list of participants. Index 0 is the current user.
* @param args
*/
function getAttendeeslist(args: {
/**
* Callback function on success.
*/
success?: Function;
/**
* Callback function in the event of an error.
*/
error?: Function;
}): void;
/**
* Gets the list of breakout rooms and attendees.
* @param args
*/
function getBreakoutRooms(args: {
/**
* Callback function on success.
*/
success?: Function;
/**