forked from zoom/meetingsdk-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
1233 lines (1212 loc) · 34.1 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
/**
* initArgs
*/
declare let initArgs: {
/**
* debug: default: false, optional. Turns on debug mode to print logs in the browser console.
*/
debug?: boolean; //optional
/**
* leaveUrl: Required. The URL to post after the user leaves the meeting. Example: “http://www.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
/**
* 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://marketplace.zoom.us/docs/sdk/overview/720p/
*/
enableHD?: boolean; // optional
/**
* enableFullHD, optional, >= 2.9.0 default=false, enable webinar attendee receive 1080P video when zoom backend support.
*/
enableFullHD?: boolean;
/**
* helper: default: '', optional. 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: Set an intermediary HTML page for outgoing hyperlinks.
*/
externalLinkPage?: string // optional
/**
* success: callback, optional. Callback function on success.
*/
success?: Function;
/**
* error: callback, 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 info
*/
export type VbImageInfoType = {
/**
* VB or mask ID, must be unique
*/
id: String;
/**
* Name to display for VB or mask.
*/
displayName: String;
/**
* VB or mask file name.
*/
fileName: string;
/**
* VB or mask image resource URL
*/
url: string;
}
/**
* In meeting event listeners
*/
export type InMeetingEvent = 'onUserJoin' | 'onUserLeave' | 'onUserIsInWaitingRoom' | 'onMeetingStatus' | 'onPreviewPannel| receiveSharingChannelReady' | 'onReceiveTranscriptionMsg' | 'onReceiveTranslateMsg' | 'onAudioQos' | 'onVideoQos'
/**
* 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 passed in the shareSource api
*/
export type DesktopCapturerSource = {
/**
* appIcon.toDataURL() method used to display app icon.
*/
appIcon: NativeImageType;
/**
* display_id
*/
display_id: string;
/**
* app id: Used to pass the id to the media stream
*/
id: string;
/**
* app name
*/
name: string;
/**
* thumbnail.toDataURL() method used to display app screenshots.
*/
thumbnail: NativeImageType;
/**
* imgSrc(Options) The <img/> src url of the app screenshot, Used to display app screenshots.If this parameter is passed, it will be used in preference to thumbnail.
*/
imgSrc?: string;
/**
* appIconSrc(Options)The <img/> src url of the app icon, Used to display app icon.If this parameter is passed, it will be used in preference to appIcon.
*/
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
}
/**
* ZoomMtg.i18n
*
* Examples:
*
* en-US https://source.zoom.us/2.9.0/lib/lang/en-US.json
*
* zh-CN https://source.zoom.us/2.9.0/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://marketplace.zoom.us/docs/api-reference/other-references/abbreviation-lists/#languages
* 'de-DE', 'es-ES', 'en-US', 'fr-FR', 'jp-JP', 'pt-PT', 'ru-RU', 'zh-CN', 'zh-TW', 'ko-KO', 'vi-VN', 'it-IT'
* @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'): 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.
* @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>;
/**
* Changes UI language. Set a supported language when joining a meeting.
* 'de-DE', 'es-ES', 'en-US', 'fr-FR', 'jp-JP', 'pt-PT', 'ru-RU', 'zh-CN', 'zh-TW', 'ko-KO', 'vi-VN', 'it-IT' or you loaded lang
* @param lang
*
*/
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>;
/**
* Sets the support language array.
* @param langArray Array of the languages that you want to support.
* This will replace the default: ['de-DE', 'es-ES', 'en-US', 'fr-FR', 'jp-JP', 'pt-PT', 'ru-RU', 'zh-CN', 'zh-TW', 'ko-KO', 'vi-VN', 'it-IT']
*/
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 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://marketplace.zoom.us/docs/sdk/native-sdks/auth/#generate-the-sdk-jwt
* See the Sample Signature app for an example:
* https://github.com/zoom/meetingsdk-sample-signature-node.js
* @category Join
*/
function generateSDKSignature(args: {
/**
* Required, your SDK JWT key
*/
sdkKey: string;
/**
* Required, your SDK JWT 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://marketplace.zoom.us/docs/sdk/overview/websdk-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>): 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
*/
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.
*/
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://marketplace.zoom.us/docs/sdk/native-sdks/auth/ for details.
*/
signature: string;
/**
* Callback function on success.
*/
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.us/hc/en-us/articles/4404535651085-Inviting-others-by-phone-call-out-.
* @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 customize polling url, only work when Enable Client SDK Customize Invite URL flag for your account
* @param args
*/
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;
/**
* 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;
/**
* Callback function in the event of an error.
*/
error?: Function
}): void;
/**
* Gets the current user information.
* @param args
*/
function getCurrentUser(args: {
/**
* Callback function on success.
*/
success?: Function;
/**
* Callback function in the event of an error.
*/
error?: Function
}): void;
/**
* Sets the log level.
* @param level
*/
function setLogLevel(level?: 'info' | 'error' | 'silent'): void;
/**
* Gets the current meeting information.
* @param args
*/
function getCurrentMeetingInfo(args: {
/**
* Callback function on success.
*/
success?: Function;
/**
* Callback function in the event of an error.
*/
error?: Function
}): void;
/**
* Invites yourself to join by phone.
* @param args
*/
function callOut(args: {
/**
* Call out phone number.
*/
phoneNumber: string;
/**
* Callback function on success.
*/
success?: Function;
/**
* Callback function in the event of an error.
*/
error?: Function }): void;
/**
* Invites a participant to join by phone.
* @param args
*/
function inviteByPhone(args: {
/**
* The phone number. Example: +1123456789
*/
phoneNumber: string;
/**
* Required. The name of the user starting or joining the meeting or webinar.
*/
userName: string;
/**
* Callback function on success.
*/
success?: Function;
/**
* Callback function in the event of an error.
*/
error?: Function
}): void;
/**
* Invites Zoom Cloud Room Connector (CRC) device.
* @param args
*/
function inviteCRCDevice(args: {
/**
* Device IP address.
*/
ip: string;
/**
* Device type: type=1 invites an H.323 device; type=2 invites a SIP device.
*/
type: Number;
/**
* Callback function on success.
*/
success?: Function;
/**
* Callback function in the event of an error.
*/
error?: Function
}): void;
/**
* Cancels Zoom Cloud Room Connector (CRC) device invitation.
* @param args
*/
function cancelInviteCRCDevice(args: {
/**
* Callback function on success.
*/
success?: Function;
/**
* Callback function in the event of an error.
*/
error?: Function
}): void;
/**
* Mutes or unmutes a participant.
* @param args
*/
function mute(args: {
/**
* The participant's user ID.
*/
userId: Number;
/**
* True to mute or false to unmute.
*/
mute: boolean;
/**
* Callback function on success.
*/
success?: Function;
/**
* Callback function in the event of an error.
*/
error?: Function
}): void;
/**
* Mutes or unmutes all attendees. Host or co-host only.
* @param args
*/
function muteAll(args: {
/**
* True to mute all or false to unmute all.
*/
muteAll: boolean;
/**
* Callback function on success.
*/
success?: Function;
/**
* Callback function in the event of an error.
*/
error?: Function
}): void;
/**
* Renames the participant. Host or co-host only. The userId and oldName must be correct for this operation to succeed.
* @param args
*/
function rename(args: {
/**
* The participant's user ID.
*/
userId: number;
/**
* The participant's current name.
*/
oldName: string;
/**
* The new name for the participant.
*/
newName: string;
/**
* Callback function on success.
*/
success?: Function;
/**
* Callback function in the event of an error.
*/
error?: Function
}): void;
/**
* Ejects a participant from the meeting. Host or co-host only.
* @param args
*/
function expel(args: {
/**
* The participant's user ID.
*/
userId: number;
/**
* Callback function on success.
*/
success?: Function;
/**
* Callback function in the event of an error.
*/
error?: Function
}): void;
/**
* Stops or starts cloud recording. Host only.
* @param args
*/
function record(args: {
/**
* True to record or false to stop recording.
*/
record: boolean;
/**
* Callback function on success.
*/
success?: Function;
/**
* Callback function in the event of an error.
*/
error?: Function
}): void;
/**
* 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.
* @param args
*/
function lockMeeting(args: {
/**
* True to lock the meeting or false to unlock it.
*/
lockMeeting: boolean;
/**
* Callback function on success.
*/
success?: Function;
/**
* Callback function in the event of an error.
*/
error?: Function
}): void;
/**
* Leaves the meeting. If the host leaves, the meeting will end.
* @param args
*/
function leaveMeeting(args: {
/**
* >=2.9.0 default is false, if confirm = true, will show leave option, not leave direct.
*/
confirm?: boolean;
/**
* >=2.9.0 callback when click cancel.
*/
cancelCallback?: Function;
/**
* Callback function on success.
*/
success?: Function;
/**
* Callback function in the event of an error.
*/
error?: Function
}): void;
/**
* Ends the meeting. Host only.
* @param args
*/
function endMeeting(args: { /**
* Callback function on success.
*/
success?: Function;
/**
* Callback function in the event of an error.
*/
error?: Function }): void;
/**
* Puts the participant in the waiting room or lets the participant join the meeting.
* @param args
*/
function putOnHold(args: {
/**
* The participant's user ID.
*/
userId: number;
/**
* True to hold the participant in the waiting room or false to let the participant join the meeting.
*/
hold: boolean;
/**
* Callback function on success.
*/
success?: Function;
/**
* Callback function in the event of an error.
*/
error?: Function
}): void;
/**
* Listens for user join or leave events and handles them.
* @param event
* @param callback
* Only supported in meetings.
* Example:
```js
ZoomMtg.inMeetingServiceListener('onUserJoin', function (data) {
console.log(data);
});
ZoomMtg.inMeetingServiceListener('onUserLeave', function (data) {
console.log(data);
});
```
@category Listener
*/
function inMeetingServiceListener(event: 'onUserJoin' | 'onUserLeave' , callback: Function): void;
/**
* Listens for sharing channel readiness to receive.
* @param event
* @param callback
* Example:
* ```js
ZoomMtg.inMeetingServiceListener('receiveSharingChannelReady', function (data) {
console.log(data);
});
```
@category Listener
*/
function inMeetingServiceListener(event: 'receiveSharingChannelReady' , callback: Function): void;
/**
* Listens for waiting room and audio/video preview page status.
* @param event
* @param callback
* Example:
* ```js
ZoomMtg.inMeetingServiceListener('onUserIsInWaitingRoom', function (data) {
console.log(data);
});
ZoomMtg.inMeetingServiceListener('onPreviewPannel', function (data) {
console.log('onPreviewPannel', data);
});
```