@ylink-sdk/meeting 0.1.5 → 0.1.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +20 -20
- package/README.md +3 -3
- package/dist/index.d.ts +161 -156
- package/dist/types/ctrl.d.ts +1026 -874
- package/dist/types/data.d.ts +737 -687
- package/dist/types/enums.d.ts +240 -234
- package/dist/ylink-sdk-meeting.es.js +1 -1
- package/dist/ylink-sdk-meeting.umd.js +1 -1
- package/package.json +59 -58
package/dist/types/ctrl.d.ts
CHANGED
|
@@ -1,874 +1,1026 @@
|
|
|
1
|
-
import { ENDPOINT_TYPE, ROLE } from './enums';
|
|
2
|
-
import { UserState, Inbox, ResultInfo, CustomLayout, BasicLayout, Barrage } from './data';
|
|
3
|
-
/**
|
|
4
|
-
* SFU会控返回响应值
|
|
5
|
-
*/
|
|
6
|
-
export interface Result<T = any> extends Response {
|
|
7
|
-
bizCode?: number;
|
|
8
|
-
ret: number;
|
|
9
|
-
data: T;
|
|
10
|
-
error?: {
|
|
11
|
-
errorCode: number;
|
|
12
|
-
fieldErrors: null;
|
|
13
|
-
msg: string;
|
|
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
|
-
}) => Promise<Result>;
|
|
500
|
-
/**
|
|
501
|
-
*
|
|
502
|
-
* @since 1.0.0
|
|
503
|
-
*/
|
|
504
|
-
|
|
505
|
-
/**
|
|
506
|
-
* 用户ID
|
|
507
|
-
*/
|
|
508
|
-
userID: number;
|
|
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
|
-
meetingNum: string;
|
|
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
|
-
|
|
1
|
+
import { ENDPOINT_TYPE, ROLE } from './enums';
|
|
2
|
+
import { UserState, Inbox, ResultInfo, CustomLayout, BasicLayout, Barrage } from './data';
|
|
3
|
+
/**
|
|
4
|
+
* SFU会控返回响应值
|
|
5
|
+
*/
|
|
6
|
+
export interface Result<T = any> extends Response {
|
|
7
|
+
bizCode?: number;
|
|
8
|
+
ret: number;
|
|
9
|
+
data: T;
|
|
10
|
+
error?: {
|
|
11
|
+
errorCode: number;
|
|
12
|
+
fieldErrors: null;
|
|
13
|
+
msg: string;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
16
|
+
export interface audioStats {
|
|
17
|
+
/**
|
|
18
|
+
* 编解码器
|
|
19
|
+
*/
|
|
20
|
+
codec: string;
|
|
21
|
+
/**
|
|
22
|
+
* bps 带宽
|
|
23
|
+
*/
|
|
24
|
+
bandwidth: number;
|
|
25
|
+
/**
|
|
26
|
+
* ms 环回延时
|
|
27
|
+
*/
|
|
28
|
+
rtt: number;
|
|
29
|
+
/**
|
|
30
|
+
* ms 抖动
|
|
31
|
+
*/
|
|
32
|
+
jitter: number;
|
|
33
|
+
/**
|
|
34
|
+
* % 丢包率
|
|
35
|
+
*/
|
|
36
|
+
lossrate: number;
|
|
37
|
+
/**
|
|
38
|
+
* 个 丢包数
|
|
39
|
+
*/
|
|
40
|
+
packetlost: number;
|
|
41
|
+
}
|
|
42
|
+
export interface videoStats {
|
|
43
|
+
/**
|
|
44
|
+
* bps 带宽
|
|
45
|
+
*/
|
|
46
|
+
bandwidth: number;
|
|
47
|
+
/**
|
|
48
|
+
* ms 环回延时
|
|
49
|
+
*/
|
|
50
|
+
rtt: number;
|
|
51
|
+
/**
|
|
52
|
+
* ms 抖动
|
|
53
|
+
*/
|
|
54
|
+
jitter: number;
|
|
55
|
+
/**
|
|
56
|
+
* 分辨率宽
|
|
57
|
+
*/
|
|
58
|
+
width: number;
|
|
59
|
+
/**
|
|
60
|
+
* 分辨率高
|
|
61
|
+
*/
|
|
62
|
+
height: number;
|
|
63
|
+
/**
|
|
64
|
+
* 帧率
|
|
65
|
+
*/
|
|
66
|
+
fr: number;
|
|
67
|
+
/**
|
|
68
|
+
* % 丢包率
|
|
69
|
+
*/
|
|
70
|
+
lossrate: number;
|
|
71
|
+
/**
|
|
72
|
+
* 个 丢包数
|
|
73
|
+
*/
|
|
74
|
+
packetlost: number;
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* 会控功能
|
|
78
|
+
*/
|
|
79
|
+
export interface Ctrl {
|
|
80
|
+
/**
|
|
81
|
+
* 取消请求,目前只针对polling和keepalive有效
|
|
82
|
+
* @since 1.0.0
|
|
83
|
+
*/
|
|
84
|
+
cancelToken: (reason: string) => void;
|
|
85
|
+
developerToken: (params: {
|
|
86
|
+
version: string;
|
|
87
|
+
Authorization: string;
|
|
88
|
+
timestamp: string;
|
|
89
|
+
nonce: string;
|
|
90
|
+
}) => Promise<Result>;
|
|
91
|
+
/**
|
|
92
|
+
* 获取当前会议通告推送的收件箱信息
|
|
93
|
+
* @since 1.0.0
|
|
94
|
+
* @ignore
|
|
95
|
+
*/
|
|
96
|
+
inbox: (params: {
|
|
97
|
+
basic: {
|
|
98
|
+
/**
|
|
99
|
+
* 租户Id,目前为100
|
|
100
|
+
*/
|
|
101
|
+
tenantId: number;
|
|
102
|
+
/**
|
|
103
|
+
* 终端标识,由客户端保证唯一
|
|
104
|
+
*/
|
|
105
|
+
clientId: string;
|
|
106
|
+
/**
|
|
107
|
+
* 每次会议的唯一标识
|
|
108
|
+
*/
|
|
109
|
+
meetingId: string;
|
|
110
|
+
};
|
|
111
|
+
/**
|
|
112
|
+
* 终端订阅的topic对应的收件箱标识。
|
|
113
|
+
*/
|
|
114
|
+
inboxes: Array<string>;
|
|
115
|
+
}) => Promise<Result>;
|
|
116
|
+
/**
|
|
117
|
+
* 消息轮询
|
|
118
|
+
* @since 1.0.0
|
|
119
|
+
* @ignore
|
|
120
|
+
*/
|
|
121
|
+
polling: (params: {
|
|
122
|
+
basic: {
|
|
123
|
+
/**
|
|
124
|
+
* 租户Id,目前为100
|
|
125
|
+
*/
|
|
126
|
+
tenantId: number;
|
|
127
|
+
/**
|
|
128
|
+
* 终端标识,由客户端保证唯一
|
|
129
|
+
*/
|
|
130
|
+
clientId: string;
|
|
131
|
+
/**
|
|
132
|
+
* 每次会议的唯一标识
|
|
133
|
+
*/
|
|
134
|
+
meetingId: string;
|
|
135
|
+
};
|
|
136
|
+
/**
|
|
137
|
+
* 收件箱对象的信息列表
|
|
138
|
+
*/
|
|
139
|
+
inboxes: Array<Inbox>;
|
|
140
|
+
}) => Promise<Result>;
|
|
141
|
+
/**
|
|
142
|
+
* ## 获取入会秘钥
|
|
143
|
+
* @since 1.0.0
|
|
144
|
+
* @ignore
|
|
145
|
+
*/
|
|
146
|
+
credential: (params: {
|
|
147
|
+
/**
|
|
148
|
+
* 会议号(如果不带url,则必选)
|
|
149
|
+
*/
|
|
150
|
+
meetingNum?: string;
|
|
151
|
+
/**
|
|
152
|
+
* 会议密码
|
|
153
|
+
*/
|
|
154
|
+
pwd?: string;
|
|
155
|
+
/**
|
|
156
|
+
* 入会链接,兼容3x的链接(如果不带meetingNum则必选)
|
|
157
|
+
*/
|
|
158
|
+
url?: string;
|
|
159
|
+
/**
|
|
160
|
+
* 手机区号
|
|
161
|
+
*/
|
|
162
|
+
mobileCode?: string;
|
|
163
|
+
/**
|
|
164
|
+
* 观众注册手机号
|
|
165
|
+
*/
|
|
166
|
+
mobile?: string;
|
|
167
|
+
/**
|
|
168
|
+
* 观众注册邮箱
|
|
169
|
+
*/
|
|
170
|
+
regEmail?: string;
|
|
171
|
+
/**
|
|
172
|
+
* 云账号邮箱
|
|
173
|
+
*/
|
|
174
|
+
accEmail?: string;
|
|
175
|
+
/**
|
|
176
|
+
* 观众 tk
|
|
177
|
+
*/
|
|
178
|
+
tk?: string;
|
|
179
|
+
/**
|
|
180
|
+
* 入会名称
|
|
181
|
+
*/
|
|
182
|
+
displayName?: string;
|
|
183
|
+
}) => Promise<Result>;
|
|
184
|
+
/**
|
|
185
|
+
* ## 加入会议
|
|
186
|
+
* @since 1.0.0
|
|
187
|
+
* @ignore
|
|
188
|
+
*/
|
|
189
|
+
join: (params: {
|
|
190
|
+
/**
|
|
191
|
+
* 会议号
|
|
192
|
+
*/
|
|
193
|
+
meetingNum: string;
|
|
194
|
+
/**
|
|
195
|
+
* credential接口获取到的入会秘钥
|
|
196
|
+
*/
|
|
197
|
+
credential: string;
|
|
198
|
+
/**
|
|
199
|
+
* 显示名
|
|
200
|
+
*/
|
|
201
|
+
displayName: string;
|
|
202
|
+
/**
|
|
203
|
+
* 终端类型
|
|
204
|
+
*/
|
|
205
|
+
endpointType: ENDPOINT_TYPE;
|
|
206
|
+
/**
|
|
207
|
+
* 邀请入会的事务ID, 邀请入会必选
|
|
208
|
+
*/
|
|
209
|
+
inviteTransID?: string;
|
|
210
|
+
/**
|
|
211
|
+
* 组织架构id列表
|
|
212
|
+
*/
|
|
213
|
+
groupIDs?: Array<string>;
|
|
214
|
+
/**
|
|
215
|
+
* 云账号
|
|
216
|
+
*/
|
|
217
|
+
account?: string;
|
|
218
|
+
/**
|
|
219
|
+
* 终端设备类型UA
|
|
220
|
+
*/
|
|
221
|
+
userAgent?: string;
|
|
222
|
+
/**
|
|
223
|
+
* 账号的GroupName名称
|
|
224
|
+
*/
|
|
225
|
+
groupName?: string;
|
|
226
|
+
/**
|
|
227
|
+
* 终端设备ID
|
|
228
|
+
*/
|
|
229
|
+
clientID?: string;
|
|
230
|
+
/**
|
|
231
|
+
* 网关主机uuid
|
|
232
|
+
*/
|
|
233
|
+
gwID?: string;
|
|
234
|
+
/**
|
|
235
|
+
* 终端IP地址
|
|
236
|
+
*/
|
|
237
|
+
clientIP?: string;
|
|
238
|
+
/**
|
|
239
|
+
* 分辨率信息,高清端口参数
|
|
240
|
+
*/
|
|
241
|
+
mediaContentReq?: {
|
|
242
|
+
/**
|
|
243
|
+
* 视频参数设置
|
|
244
|
+
*/
|
|
245
|
+
video?: {
|
|
246
|
+
/**
|
|
247
|
+
* 分辨率宽
|
|
248
|
+
*/
|
|
249
|
+
width: number;
|
|
250
|
+
/**
|
|
251
|
+
* 分辨率高
|
|
252
|
+
*/
|
|
253
|
+
height: number;
|
|
254
|
+
/**
|
|
255
|
+
* 帧率
|
|
256
|
+
*/
|
|
257
|
+
fr: number;
|
|
258
|
+
};
|
|
259
|
+
/**
|
|
260
|
+
* 仅音频
|
|
261
|
+
*/
|
|
262
|
+
audioOnly: boolean;
|
|
263
|
+
};
|
|
264
|
+
}) => Promise<Result>;
|
|
265
|
+
/**
|
|
266
|
+
* 上报用户媒体信息
|
|
267
|
+
* @since 1.0.0
|
|
268
|
+
* @ignore
|
|
269
|
+
*/
|
|
270
|
+
updateUserState: (params: UserState) => Promise<Result>;
|
|
271
|
+
/**
|
|
272
|
+
* 订阅通告
|
|
273
|
+
* @since 1.0.0
|
|
274
|
+
* @ignore
|
|
275
|
+
*/
|
|
276
|
+
subscribe: (params: {
|
|
277
|
+
/**
|
|
278
|
+
* 要订阅的的topic和inbox接口的inboxes一致
|
|
279
|
+
*/
|
|
280
|
+
topics: Array<string>;
|
|
281
|
+
}) => Promise<Result>;
|
|
282
|
+
/**
|
|
283
|
+
* 邀请 trying
|
|
284
|
+
* @since 1.0.0
|
|
285
|
+
*/
|
|
286
|
+
trying: (params: {
|
|
287
|
+
/**
|
|
288
|
+
* 账户token
|
|
289
|
+
*/
|
|
290
|
+
token: string;
|
|
291
|
+
/**
|
|
292
|
+
* 终端类型
|
|
293
|
+
*/
|
|
294
|
+
endpointType: ENDPOINT_TYPE;
|
|
295
|
+
/**
|
|
296
|
+
* 会议号
|
|
297
|
+
*/
|
|
298
|
+
meetingNum: string;
|
|
299
|
+
/**
|
|
300
|
+
* credential接口获取到的入会秘钥
|
|
301
|
+
*/
|
|
302
|
+
credential: string;
|
|
303
|
+
/**
|
|
304
|
+
* 邀请事务id
|
|
305
|
+
*/
|
|
306
|
+
inviteTransID: string;
|
|
307
|
+
/**
|
|
308
|
+
* 0 默认,终端通知服务器已收到邀请通知,多次调用都能成功(目前不用调)
|
|
309
|
+
* 1 独占模式,用于一呼多只能一方入会的场景,多次trying只有第一次能成功,比如邀请IP或直播录播2 兼容3x使用,仅用于邀请v3x亿联终端,多次trying都成功且返回meetingID等数据
|
|
310
|
+
*/
|
|
311
|
+
inviteMode?: number;
|
|
312
|
+
}) => Promise<Result>;
|
|
313
|
+
/**
|
|
314
|
+
* 邀请拒接
|
|
315
|
+
* @since 1.0.0
|
|
316
|
+
*/
|
|
317
|
+
rejectCall: (params: {
|
|
318
|
+
/**
|
|
319
|
+
* 账户token
|
|
320
|
+
*/
|
|
321
|
+
token: string;
|
|
322
|
+
/**
|
|
323
|
+
* 终端类型
|
|
324
|
+
*/
|
|
325
|
+
endpointType: ENDPOINT_TYPE;
|
|
326
|
+
/**
|
|
327
|
+
* 会议号
|
|
328
|
+
*/
|
|
329
|
+
meetingNum: string;
|
|
330
|
+
/**
|
|
331
|
+
* credential接口获取到的入会秘钥
|
|
332
|
+
*/
|
|
333
|
+
credential: string;
|
|
334
|
+
/**
|
|
335
|
+
* 退会的信息
|
|
336
|
+
*/
|
|
337
|
+
resultInfo?: ResultInfo;
|
|
338
|
+
/**
|
|
339
|
+
* 邀请事务id
|
|
340
|
+
*/
|
|
341
|
+
inviteTransID: string;
|
|
342
|
+
/**
|
|
343
|
+
* YTMS设备id,也是会议邀请推送的ID
|
|
344
|
+
*/
|
|
345
|
+
clientID?: string;
|
|
346
|
+
}) => Promise<Result>;
|
|
347
|
+
/**
|
|
348
|
+
* 离开会议
|
|
349
|
+
* @since 1.0.0
|
|
350
|
+
*/
|
|
351
|
+
leave: (params: {
|
|
352
|
+
resultInfo: ResultInfo;
|
|
353
|
+
}) => Promise<Result>;
|
|
354
|
+
/**
|
|
355
|
+
* 上报通话统计
|
|
356
|
+
*/
|
|
357
|
+
callStatsReport: (params: {
|
|
358
|
+
/**
|
|
359
|
+
* 用户ID
|
|
360
|
+
*/
|
|
361
|
+
userID: number;
|
|
362
|
+
stats: {
|
|
363
|
+
audio: audioStats;
|
|
364
|
+
video: videoStats;
|
|
365
|
+
share: videoStats;
|
|
366
|
+
};
|
|
367
|
+
deviceInfo: string;
|
|
368
|
+
protocol: string;
|
|
369
|
+
}) => Promise<Result>;
|
|
370
|
+
/**
|
|
371
|
+
* 闭音
|
|
372
|
+
* @since 1.0.0
|
|
373
|
+
*/
|
|
374
|
+
pauseAudio: (params: {
|
|
375
|
+
/**
|
|
376
|
+
* 用户ID
|
|
377
|
+
*/
|
|
378
|
+
userID: number;
|
|
379
|
+
}) => Promise<Result>;
|
|
380
|
+
/**
|
|
381
|
+
* 开音
|
|
382
|
+
* @since 1.0.0
|
|
383
|
+
*/
|
|
384
|
+
resumeAudio: (params: {
|
|
385
|
+
/**
|
|
386
|
+
* 用户ID
|
|
387
|
+
*/
|
|
388
|
+
userID: number;
|
|
389
|
+
}) => Promise<Result>;
|
|
390
|
+
/**
|
|
391
|
+
* 大厅切换
|
|
392
|
+
* @since 1.0.0
|
|
393
|
+
*/
|
|
394
|
+
lobbyState: (params: {
|
|
395
|
+
/**
|
|
396
|
+
* 用户ID
|
|
397
|
+
*/
|
|
398
|
+
userID: number;
|
|
399
|
+
/**
|
|
400
|
+
* 当isInLobby=true, 用户从会议中被移到会议大厅同时互动方切换为大厅用户。
|
|
401
|
+
* 当isInLobby=false, 用户从会议大厅被移到会议中,大厅用户切换为互动方。
|
|
402
|
+
*/
|
|
403
|
+
isInLobby: boolean;
|
|
404
|
+
}) => Promise<Result>;
|
|
405
|
+
/**
|
|
406
|
+
* 改名
|
|
407
|
+
* @since 1.0.0
|
|
408
|
+
*/
|
|
409
|
+
displayName: (params: {
|
|
410
|
+
/**
|
|
411
|
+
* 用户ID
|
|
412
|
+
*/
|
|
413
|
+
userID: number;
|
|
414
|
+
/**
|
|
415
|
+
* 新用户名
|
|
416
|
+
*/
|
|
417
|
+
displayName: string;
|
|
418
|
+
}) => Promise<Result>;
|
|
419
|
+
/**
|
|
420
|
+
* 获取通话统计
|
|
421
|
+
* @since 1.0.0
|
|
422
|
+
*/
|
|
423
|
+
callStats: (params: {
|
|
424
|
+
/**
|
|
425
|
+
* 用户ID
|
|
426
|
+
*/
|
|
427
|
+
userID: number;
|
|
428
|
+
}) => Promise<Result>;
|
|
429
|
+
/**
|
|
430
|
+
* 获取用户信息,若某个用户的seq发生跳变或者终端想获取单个用户的最新信息
|
|
431
|
+
* @since 1.0.0
|
|
432
|
+
*/
|
|
433
|
+
user: (params: {
|
|
434
|
+
/**
|
|
435
|
+
* 用户ID
|
|
436
|
+
*/
|
|
437
|
+
userID: number;
|
|
438
|
+
}) => Promise<Result>;
|
|
439
|
+
/**
|
|
440
|
+
* 禁屏
|
|
441
|
+
* @since 1.0.0
|
|
442
|
+
*/
|
|
443
|
+
blockVideo: (params: {
|
|
444
|
+
/**
|
|
445
|
+
* 用户ID
|
|
446
|
+
*/
|
|
447
|
+
userID: number;
|
|
448
|
+
}) => Promise<Result>;
|
|
449
|
+
/**
|
|
450
|
+
* 取消禁屏
|
|
451
|
+
* @since 1.0.0
|
|
452
|
+
*/
|
|
453
|
+
unblockVideo: (params: {
|
|
454
|
+
/**
|
|
455
|
+
* 用户ID
|
|
456
|
+
*/
|
|
457
|
+
userID: number;
|
|
458
|
+
}) => Promise<Result>;
|
|
459
|
+
/**
|
|
460
|
+
* 举手
|
|
461
|
+
* @since 1.0.0
|
|
462
|
+
*/
|
|
463
|
+
handUp: (params: {
|
|
464
|
+
/**
|
|
465
|
+
* 用户ID
|
|
466
|
+
*/
|
|
467
|
+
userID: number;
|
|
468
|
+
/**
|
|
469
|
+
* 是否举手,可选true举手,false手放下
|
|
470
|
+
*/
|
|
471
|
+
handUp: boolean;
|
|
472
|
+
}) => Promise<Result>;
|
|
473
|
+
/**
|
|
474
|
+
* 响应举手
|
|
475
|
+
* @since 1.0.0
|
|
476
|
+
*/
|
|
477
|
+
replyHandUp: (params: {
|
|
478
|
+
/**
|
|
479
|
+
* 用户ID
|
|
480
|
+
*/
|
|
481
|
+
userID: number;
|
|
482
|
+
/**
|
|
483
|
+
* 当permit=true,主持人同意用户发言,若是与会者,同意举手就是允许发言;
|
|
484
|
+
* 若是观众同意举手,会切换广播方的状态为互动方并允许发言,但角色还是观众。
|
|
485
|
+
* permit=false,主持人不同意发言,手放下
|
|
486
|
+
*/
|
|
487
|
+
permit: boolean;
|
|
488
|
+
}) => Promise<Result>;
|
|
489
|
+
/**
|
|
490
|
+
* 用户保活
|
|
491
|
+
* @since 1.0.0
|
|
492
|
+
* @ignore
|
|
493
|
+
*/
|
|
494
|
+
keepalive: (params: {
|
|
495
|
+
/**
|
|
496
|
+
* 入会用户ID
|
|
497
|
+
*/
|
|
498
|
+
userID: number;
|
|
499
|
+
}) => Promise<Result>;
|
|
500
|
+
/**
|
|
501
|
+
* 设置音频
|
|
502
|
+
* @since 1.0.0
|
|
503
|
+
*/
|
|
504
|
+
audio: (params: {
|
|
505
|
+
/**
|
|
506
|
+
* 用户ID
|
|
507
|
+
*/
|
|
508
|
+
userID: number;
|
|
509
|
+
/**
|
|
510
|
+
* 音频状态
|
|
511
|
+
*/
|
|
512
|
+
sendOn: boolean;
|
|
513
|
+
/**
|
|
514
|
+
* 认证信息,当远端请求开启时下发的cred
|
|
515
|
+
*/
|
|
516
|
+
cred?: string;
|
|
517
|
+
}) => Promise<Result>;
|
|
518
|
+
/**
|
|
519
|
+
* 设置视频
|
|
520
|
+
* @since 1.0.0
|
|
521
|
+
*/
|
|
522
|
+
video: (params: {
|
|
523
|
+
/**
|
|
524
|
+
* 用户ID
|
|
525
|
+
*/
|
|
526
|
+
userID: number;
|
|
527
|
+
/**
|
|
528
|
+
* 视频状态
|
|
529
|
+
*/
|
|
530
|
+
sendOn: boolean;
|
|
531
|
+
/**
|
|
532
|
+
* 认证信息,当远端请求开启时下发的cred
|
|
533
|
+
*/
|
|
534
|
+
cred?: string;
|
|
535
|
+
}) => Promise<Result>;
|
|
536
|
+
/**
|
|
537
|
+
* 设置辅流
|
|
538
|
+
* @since 1.0.0
|
|
539
|
+
*/
|
|
540
|
+
share: (params: {
|
|
541
|
+
/**
|
|
542
|
+
* 用户ID
|
|
543
|
+
*/
|
|
544
|
+
userID: number;
|
|
545
|
+
/**
|
|
546
|
+
* 辅流状态
|
|
547
|
+
*/
|
|
548
|
+
sendOn: boolean;
|
|
549
|
+
/**
|
|
550
|
+
* 认证信息,当远端请求开启时下发的cred
|
|
551
|
+
*/
|
|
552
|
+
cred?: string;
|
|
553
|
+
/**
|
|
554
|
+
* 是否需服务器提供辅流协助
|
|
555
|
+
*/
|
|
556
|
+
serverCoop?: boolean;
|
|
557
|
+
/**
|
|
558
|
+
* 共享类型,可选参数:1-application(窗口)、2-desktop(屏幕)、3-whiteboard(白板)
|
|
559
|
+
*/
|
|
560
|
+
type?: number;
|
|
561
|
+
/**
|
|
562
|
+
* 辅流分享模式,默认为高清辅流模式。可选:0-高清辅流模式,1-流畅度优先模式
|
|
563
|
+
*/
|
|
564
|
+
mode?: number;
|
|
565
|
+
}) => Promise<Result>;
|
|
566
|
+
/**
|
|
567
|
+
* 修改角色
|
|
568
|
+
* @since 1.0.0
|
|
569
|
+
*/
|
|
570
|
+
role: (params: {
|
|
571
|
+
/**
|
|
572
|
+
* 用户ID
|
|
573
|
+
*/
|
|
574
|
+
userID: number;
|
|
575
|
+
/**
|
|
576
|
+
* 用户角色
|
|
577
|
+
*/
|
|
578
|
+
role: ROLE | string;
|
|
579
|
+
}) => Promise<Result>;
|
|
580
|
+
/**
|
|
581
|
+
* 移出会议
|
|
582
|
+
* @since 1.0.0
|
|
583
|
+
*/
|
|
584
|
+
remove: (params: {
|
|
585
|
+
/**
|
|
586
|
+
* 用户ID
|
|
587
|
+
*/
|
|
588
|
+
userID: number;
|
|
589
|
+
/**
|
|
590
|
+
* 移出原因
|
|
591
|
+
*/
|
|
592
|
+
resultInfo?: ResultInfo;
|
|
593
|
+
}) => Promise<Result>;
|
|
594
|
+
/**
|
|
595
|
+
* DTMF
|
|
596
|
+
* @since 1.0.0
|
|
597
|
+
*/
|
|
598
|
+
dtmf: (params: {
|
|
599
|
+
/**
|
|
600
|
+
* 用户ID
|
|
601
|
+
*/
|
|
602
|
+
userID: number;
|
|
603
|
+
/**
|
|
604
|
+
* 0~9,*,#
|
|
605
|
+
*/
|
|
606
|
+
dtmf: string;
|
|
607
|
+
}) => Promise<Result>;
|
|
608
|
+
/**
|
|
609
|
+
* FECC
|
|
610
|
+
* @since 1.0.0
|
|
611
|
+
*/
|
|
612
|
+
fecc: (params: {
|
|
613
|
+
/**
|
|
614
|
+
* 用户ID
|
|
615
|
+
*/
|
|
616
|
+
userID: number;
|
|
617
|
+
/**
|
|
618
|
+
* 行为动作,取值可选:panLeft(摄像头左移)、panRight(摄像头右移)、tiltDown(摄像头下移)、tiltUp(摄像头上移)、zoomOut(缩小)、zoomIn(放大)、focusOut(分散)、focusIn(聚焦)
|
|
619
|
+
*/
|
|
620
|
+
action: string;
|
|
621
|
+
/**
|
|
622
|
+
* 动作执行次数
|
|
623
|
+
*/
|
|
624
|
+
actionPlayTimes: number;
|
|
625
|
+
}) => Promise<Result>;
|
|
626
|
+
/**
|
|
627
|
+
* 设置主持人布局
|
|
628
|
+
* @since 1.0.0
|
|
629
|
+
*/
|
|
630
|
+
hostLayout: (params: {
|
|
631
|
+
/**
|
|
632
|
+
* 布局模式,可选参数:basic、custom
|
|
633
|
+
* 当mode=basic时,终端入会默认显示服务器推送的布局类型,但允许主持人、与会者本地切换为其它布局,研讨会观众无法切换
|
|
634
|
+
* 当mode=custom时,终端都固定显示,无法本地切换布局
|
|
635
|
+
*/
|
|
636
|
+
mode: string;
|
|
637
|
+
/**
|
|
638
|
+
* 布局结构体;当mode=basic时无需带;当mode=custom,采用customLayout结构体
|
|
639
|
+
*/
|
|
640
|
+
layout?: CustomLayout | BasicLayout;
|
|
641
|
+
/**
|
|
642
|
+
* 自定义布局是否同时应用于与会者
|
|
643
|
+
*/
|
|
644
|
+
applyToAttendee?: boolean;
|
|
645
|
+
}) => Promise<Result>;
|
|
646
|
+
/**
|
|
647
|
+
* 设置与会者布局
|
|
648
|
+
* @since 1.0.0
|
|
649
|
+
*/
|
|
650
|
+
attendeeLayout: (params: {
|
|
651
|
+
/**
|
|
652
|
+
* 布局模式,可选参数:basic、custom
|
|
653
|
+
* 当mode=basic时,终端入会默认显示服务器推送的布局类型,但允许主持人、与会者本地切换为其它布局,研讨会观众无法切换
|
|
654
|
+
* 当mode=custom时,终端都固定显示,无法本地切换布局
|
|
655
|
+
*/
|
|
656
|
+
mode: string;
|
|
657
|
+
/**
|
|
658
|
+
* 布局结构体;当mode=basic时无需带;当mode=custom,采用customLayout结构体
|
|
659
|
+
*/
|
|
660
|
+
layout?: CustomLayout | BasicLayout;
|
|
661
|
+
}) => Promise<Result>;
|
|
662
|
+
/**
|
|
663
|
+
* 设置观众布局
|
|
664
|
+
* @since 1.0.0
|
|
665
|
+
*/
|
|
666
|
+
audienceLayout: (params: {
|
|
667
|
+
/**
|
|
668
|
+
* 布局模式,可选参数:basic、custom
|
|
669
|
+
* 当mode=basic时,终端入会默认显示服务器推送的布局类型,但允许主持人、与会者本地切换为其它布局,研讨会观众无法切换
|
|
670
|
+
* 当mode=custom时,终端都固定显示,无法本地切换布局
|
|
671
|
+
*/
|
|
672
|
+
mode: string;
|
|
673
|
+
/**
|
|
674
|
+
* 布局结构体;当mode=basic时无需带;当mode=custom,采用customLayout结构体
|
|
675
|
+
*/
|
|
676
|
+
layout?: CustomLayout | BasicLayout;
|
|
677
|
+
}) => Promise<Result>;
|
|
678
|
+
/**
|
|
679
|
+
* 应用个人布局
|
|
680
|
+
* @since 1.0.0
|
|
681
|
+
*/
|
|
682
|
+
personalLayout: (params: {
|
|
683
|
+
/**
|
|
684
|
+
* 布局模式,为custom
|
|
685
|
+
*/
|
|
686
|
+
mode: string;
|
|
687
|
+
/**
|
|
688
|
+
* 布局结构体,采用customLayout
|
|
689
|
+
*/
|
|
690
|
+
layout: CustomLayout;
|
|
691
|
+
/**
|
|
692
|
+
* 个人布局订阅者信息
|
|
693
|
+
*/
|
|
694
|
+
subscriber: {
|
|
695
|
+
userID?: number;
|
|
696
|
+
subjectID?: string;
|
|
697
|
+
};
|
|
698
|
+
}) => Promise<Result>;
|
|
699
|
+
/**
|
|
700
|
+
* 取消个人布局
|
|
701
|
+
* @since 1.0.0
|
|
702
|
+
*/
|
|
703
|
+
personalLayoutDelete: (params: {
|
|
704
|
+
/**
|
|
705
|
+
* 个人布局订阅者参数
|
|
706
|
+
*/
|
|
707
|
+
subscriber: {
|
|
708
|
+
userID?: number;
|
|
709
|
+
subjectID?: string;
|
|
710
|
+
};
|
|
711
|
+
}) => Promise<Result>;
|
|
712
|
+
/**
|
|
713
|
+
* 设置虚拟教室
|
|
714
|
+
* @since 1.0.0
|
|
715
|
+
*/
|
|
716
|
+
virtualClassLayout: (params: {
|
|
717
|
+
/**
|
|
718
|
+
* 布局结构体,采用customLayout
|
|
719
|
+
*/
|
|
720
|
+
layout: CustomLayout;
|
|
721
|
+
/**
|
|
722
|
+
* 布局个数,也是大屏终端屏幕个数
|
|
723
|
+
*/
|
|
724
|
+
count: number;
|
|
725
|
+
/**
|
|
726
|
+
* 黑名单subjectID列表
|
|
727
|
+
*/
|
|
728
|
+
blackList: string[];
|
|
729
|
+
}) => Promise<Result>;
|
|
730
|
+
/**
|
|
731
|
+
* 关闭虚拟教室
|
|
732
|
+
* @since 1.0.0
|
|
733
|
+
*/
|
|
734
|
+
virtualClassClose: () => Promise<Result>;
|
|
735
|
+
/**
|
|
736
|
+
* 设置焦点视频
|
|
737
|
+
* @since 1.0.0
|
|
738
|
+
*/
|
|
739
|
+
spotlight: (params: {
|
|
740
|
+
/**
|
|
741
|
+
* 操作类型 add/remove/replace/removeAll
|
|
742
|
+
*/
|
|
743
|
+
action: string;
|
|
744
|
+
/**
|
|
745
|
+
* 被操作的用户,action不是removeAll则必选
|
|
746
|
+
*/
|
|
747
|
+
userID?: number;
|
|
748
|
+
}) => Promise<Result>;
|
|
749
|
+
/**
|
|
750
|
+
* 大厅全部拒绝
|
|
751
|
+
* @since 1.0.0
|
|
752
|
+
*/
|
|
753
|
+
lobbyRefuseAll: () => Promise<Result>;
|
|
754
|
+
/**
|
|
755
|
+
* 大厅全部准入
|
|
756
|
+
* @since 1.0.0
|
|
757
|
+
*/
|
|
758
|
+
lobbyAdmitAll: () => Promise<Result>;
|
|
759
|
+
/**
|
|
760
|
+
* 发送弹幕
|
|
761
|
+
* @since 1.0.0
|
|
762
|
+
*/
|
|
763
|
+
barrage: (params: Barrage) => Promise<Result>;
|
|
764
|
+
/**
|
|
765
|
+
* 关闭弹幕
|
|
766
|
+
* @since 1.0.0
|
|
767
|
+
*/
|
|
768
|
+
deleteBarrage: () => Promise<Result>;
|
|
769
|
+
/**
|
|
770
|
+
* 获取操作记录
|
|
771
|
+
* @since 1.0.0
|
|
772
|
+
*/
|
|
773
|
+
operationRecord: (params: {
|
|
774
|
+
/**
|
|
775
|
+
* 分页查询参数
|
|
776
|
+
*/
|
|
777
|
+
skip: number;
|
|
778
|
+
/**
|
|
779
|
+
* 查询的数量
|
|
780
|
+
*/
|
|
781
|
+
limit: number;
|
|
782
|
+
/**
|
|
783
|
+
* 排序的规则
|
|
784
|
+
*/
|
|
785
|
+
orderbys?: {
|
|
786
|
+
/**
|
|
787
|
+
* 排序的字段
|
|
788
|
+
*/
|
|
789
|
+
field: string;
|
|
790
|
+
/**
|
|
791
|
+
* 排序的类型,1:升序,-1:降序
|
|
792
|
+
*/
|
|
793
|
+
order: number;
|
|
794
|
+
};
|
|
795
|
+
/**
|
|
796
|
+
* 搜索的key
|
|
797
|
+
*/
|
|
798
|
+
searchKey?: string;
|
|
799
|
+
/**
|
|
800
|
+
* 查询role角色操作
|
|
801
|
+
*/
|
|
802
|
+
role?: string;
|
|
803
|
+
/**
|
|
804
|
+
* 查询对应模块操作
|
|
805
|
+
*/
|
|
806
|
+
opModule?: string;
|
|
807
|
+
/**
|
|
808
|
+
* 操作的结果,true:成功,false:失败
|
|
809
|
+
*/
|
|
810
|
+
opResult?: boolean;
|
|
811
|
+
}) => Promise<Result>;
|
|
812
|
+
/**
|
|
813
|
+
* 获取分享信息
|
|
814
|
+
* @since 1.0.0
|
|
815
|
+
*/
|
|
816
|
+
shareInfo: (params: {
|
|
817
|
+
/**
|
|
818
|
+
* 会议号码
|
|
819
|
+
*/
|
|
820
|
+
meetingNum: string;
|
|
821
|
+
/**
|
|
822
|
+
* 需要预约成员信息带true
|
|
823
|
+
*/
|
|
824
|
+
participant?: boolean;
|
|
825
|
+
}) => Promise<Result>;
|
|
826
|
+
/**
|
|
827
|
+
* 结束会议
|
|
828
|
+
* @since 1.0.0
|
|
829
|
+
*/
|
|
830
|
+
end: () => Promise<Result>;
|
|
831
|
+
/**
|
|
832
|
+
* 结束准备模式
|
|
833
|
+
* @since 1.0.0
|
|
834
|
+
*/
|
|
835
|
+
practiceSession: () => Promise<Result>;
|
|
836
|
+
/**
|
|
837
|
+
* 全部手放下
|
|
838
|
+
* @since 1.0.0
|
|
839
|
+
*/
|
|
840
|
+
replyAllHandUp: () => Promise<Result>;
|
|
841
|
+
/**
|
|
842
|
+
* 全体解禁言
|
|
843
|
+
* @since 1.0.0
|
|
844
|
+
*/
|
|
845
|
+
unmuteAll: () => Promise<Result>;
|
|
846
|
+
/**
|
|
847
|
+
* 全体禁言
|
|
848
|
+
* @since 1.0.0
|
|
849
|
+
*/
|
|
850
|
+
muteAll: () => Promise<Result>;
|
|
851
|
+
/**
|
|
852
|
+
* 通知上报音频转储
|
|
853
|
+
* @since 1.0.0
|
|
854
|
+
*/
|
|
855
|
+
audioDump: () => Promise<Result>;
|
|
856
|
+
mailTemplate: (params: {
|
|
857
|
+
/**
|
|
858
|
+
* 语言
|
|
859
|
+
*/
|
|
860
|
+
language: string;
|
|
861
|
+
}) => Promise<Result>;
|
|
862
|
+
/**
|
|
863
|
+
* 问答
|
|
864
|
+
* @since 1.0.0
|
|
865
|
+
*/
|
|
866
|
+
/**
|
|
867
|
+
* 发送聊天信息
|
|
868
|
+
*/
|
|
869
|
+
msg: (params: {
|
|
870
|
+
/**
|
|
871
|
+
* 终端生成消息唯一id,可用随机数
|
|
872
|
+
*/
|
|
873
|
+
msgID: string;
|
|
874
|
+
/**
|
|
875
|
+
* 消息的类型:text/plain。(后续根据产品需求可拓展支持text/enriched)
|
|
876
|
+
*/
|
|
877
|
+
contentType: string;
|
|
878
|
+
/**
|
|
879
|
+
* 消息内容
|
|
880
|
+
*/
|
|
881
|
+
content: string;
|
|
882
|
+
/**
|
|
883
|
+
* 消息类型,可选:0(群聊)、1(私聊)、2(发给大厅)
|
|
884
|
+
*/
|
|
885
|
+
msgType?: number;
|
|
886
|
+
/**
|
|
887
|
+
* 接收者的信息
|
|
888
|
+
*/
|
|
889
|
+
receiver?: {
|
|
890
|
+
userID: number;
|
|
891
|
+
};
|
|
892
|
+
/**
|
|
893
|
+
* 时间戳,服务器填
|
|
894
|
+
*/
|
|
895
|
+
timestamp?: number;
|
|
896
|
+
/**
|
|
897
|
+
* 发送者的信息,服务器填
|
|
898
|
+
*/
|
|
899
|
+
sender?: {
|
|
900
|
+
userID?: number;
|
|
901
|
+
displayName?: string;
|
|
902
|
+
};
|
|
903
|
+
}) => Promise<Result>;
|
|
904
|
+
/**
|
|
905
|
+
* 查询聊天历史信息
|
|
906
|
+
*/
|
|
907
|
+
historyMsg: (params: {
|
|
908
|
+
/**
|
|
909
|
+
* 最大只返回100条,limit>100 或 limit<1时,limit都取100
|
|
910
|
+
*/
|
|
911
|
+
limit: number;
|
|
912
|
+
}) => Promise<Result>;
|
|
913
|
+
/**
|
|
914
|
+
* 远程桌面
|
|
915
|
+
*/
|
|
916
|
+
remoteDesktop: (params: {
|
|
917
|
+
/**
|
|
918
|
+
* 指令信息(包含request,close,refuse和connect)
|
|
919
|
+
*/
|
|
920
|
+
action: string;
|
|
921
|
+
/**
|
|
922
|
+
* 被操作的用户
|
|
923
|
+
*/
|
|
924
|
+
userID: number;
|
|
925
|
+
}) => Promise<Result>;
|
|
926
|
+
/**
|
|
927
|
+
* 通过会议号结束会议
|
|
928
|
+
*/
|
|
929
|
+
endMeeting: (params: {
|
|
930
|
+
/**
|
|
931
|
+
* 会议号
|
|
932
|
+
*/
|
|
933
|
+
meetingNum: string;
|
|
934
|
+
}) => Promise<Result>;
|
|
935
|
+
/**
|
|
936
|
+
* 获取会议静态
|
|
937
|
+
*/
|
|
938
|
+
meetings: (params: {
|
|
939
|
+
/**
|
|
940
|
+
* 会议号
|
|
941
|
+
*/
|
|
942
|
+
meetingNum: string;
|
|
943
|
+
/**
|
|
944
|
+
* 调取credential接口获取的临时秘钥
|
|
945
|
+
*/
|
|
946
|
+
credential: string;
|
|
947
|
+
/**
|
|
948
|
+
* 需要预约成员信息带true
|
|
949
|
+
*/
|
|
950
|
+
participant?: boolean;
|
|
951
|
+
/**
|
|
952
|
+
* 需要AVC配置信息带true
|
|
953
|
+
*/
|
|
954
|
+
avcConfig?: boolean;
|
|
955
|
+
}) => Promise<Result>;
|
|
956
|
+
/**
|
|
957
|
+
* 获取请求baseURL
|
|
958
|
+
* @since 1.0.0
|
|
959
|
+
* @ignore
|
|
960
|
+
*/
|
|
961
|
+
get baseURL(): string;
|
|
962
|
+
/**
|
|
963
|
+
* 设置请求baseURL
|
|
964
|
+
* @since 1.0.0
|
|
965
|
+
* @ignore
|
|
966
|
+
*/
|
|
967
|
+
setBaseURL(url: string): void;
|
|
968
|
+
/**
|
|
969
|
+
* 获取 SDK token
|
|
970
|
+
*/
|
|
971
|
+
get accessToken(): string;
|
|
972
|
+
/**
|
|
973
|
+
* 设置 SDK token
|
|
974
|
+
* @param token
|
|
975
|
+
*/
|
|
976
|
+
setAccessToken(token: string): void;
|
|
977
|
+
/**
|
|
978
|
+
* 获取 SDK 版本
|
|
979
|
+
*/
|
|
980
|
+
get version(): string;
|
|
981
|
+
/**
|
|
982
|
+
* 设置 SDK 版本
|
|
983
|
+
* @param version
|
|
984
|
+
*/
|
|
985
|
+
setVersion(version: string): void;
|
|
986
|
+
/**
|
|
987
|
+
* 获取会话ID,标识一次入会的所有请求响应
|
|
988
|
+
* @since 1.0.0
|
|
989
|
+
*/
|
|
990
|
+
get sessionID(): string;
|
|
991
|
+
/**
|
|
992
|
+
* 设置会话ID,标识一次入会的所有请求响应
|
|
993
|
+
* @since 1.0.0
|
|
994
|
+
* @param id 生成格式建议:YTMSclientID_MMddhhmmss_会议号_用户账号或enpointType
|
|
995
|
+
*/
|
|
996
|
+
setSessionID(id: string): void;
|
|
997
|
+
/**
|
|
998
|
+
* 获取会议ID
|
|
999
|
+
* @since 1.0.0
|
|
1000
|
+
*/
|
|
1001
|
+
get meetingID(): string;
|
|
1002
|
+
/**
|
|
1003
|
+
* 设置会议ID
|
|
1004
|
+
* @since 1.0.0
|
|
1005
|
+
* @param id 正常为join后返回的meetingID
|
|
1006
|
+
*/
|
|
1007
|
+
setMeetingID(id: string): void;
|
|
1008
|
+
/**
|
|
1009
|
+
* 获取会议归属地
|
|
1010
|
+
*/
|
|
1011
|
+
get location(): string;
|
|
1012
|
+
/**
|
|
1013
|
+
* 设置会议归属地,后续请求带header
|
|
1014
|
+
* @param val credential时返回
|
|
1015
|
+
*/
|
|
1016
|
+
setLocation(val: string): void;
|
|
1017
|
+
/**
|
|
1018
|
+
* 获取会控token
|
|
1019
|
+
*/
|
|
1020
|
+
get ctrlID(): string;
|
|
1021
|
+
/**
|
|
1022
|
+
* 设置会控Token
|
|
1023
|
+
* @param id 会控ctrlID,join后返回
|
|
1024
|
+
*/
|
|
1025
|
+
setCtrlID(id: string): void;
|
|
1026
|
+
}
|