@ylink-sdk/meeting 0.2.0-beta.8 → 0.2.1
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/dist/meeting.d.ts
CHANGED
|
@@ -12,6 +12,33 @@ declare type AddVirtualClassParams = VirtualClassParams & {
|
|
|
12
12
|
type: number;
|
|
13
13
|
};
|
|
14
14
|
|
|
15
|
+
export declare interface audioStats {
|
|
16
|
+
/**
|
|
17
|
+
* 编解码器
|
|
18
|
+
*/
|
|
19
|
+
codec: string;
|
|
20
|
+
/**
|
|
21
|
+
* bps 带宽
|
|
22
|
+
*/
|
|
23
|
+
bandwidth: number;
|
|
24
|
+
/**
|
|
25
|
+
* ms 环回延时
|
|
26
|
+
*/
|
|
27
|
+
rtt: number;
|
|
28
|
+
/**
|
|
29
|
+
* ms 抖动
|
|
30
|
+
*/
|
|
31
|
+
jitter: number;
|
|
32
|
+
/**
|
|
33
|
+
* % 丢包率
|
|
34
|
+
*/
|
|
35
|
+
lossrate: number;
|
|
36
|
+
/**
|
|
37
|
+
* 个 丢包数
|
|
38
|
+
*/
|
|
39
|
+
packetlost: number;
|
|
40
|
+
}
|
|
41
|
+
|
|
15
42
|
declare interface BarrageRecord {
|
|
16
43
|
content: string;
|
|
17
44
|
time: number;
|
|
@@ -99,6 +126,10 @@ declare interface Config {
|
|
|
99
126
|
* ```
|
|
100
127
|
*/
|
|
101
128
|
modules: any[];
|
|
129
|
+
/**
|
|
130
|
+
* 当前设备ID
|
|
131
|
+
*/
|
|
132
|
+
clientID?: string;
|
|
102
133
|
/**
|
|
103
134
|
* 消息推送采用子线程模式,避免推送过快,抢占请求资源
|
|
104
135
|
* @example
|
|
@@ -244,6 +275,10 @@ export declare interface Context {
|
|
|
244
275
|
* 是否运行中
|
|
245
276
|
*/
|
|
246
277
|
running: boolean;
|
|
278
|
+
/**
|
|
279
|
+
* 重试次数
|
|
280
|
+
*/
|
|
281
|
+
attempts: number;
|
|
247
282
|
/**
|
|
248
283
|
* 定时器
|
|
249
284
|
*/
|
|
@@ -257,6 +292,10 @@ export declare interface Context {
|
|
|
257
292
|
* 是否运行中
|
|
258
293
|
*/
|
|
259
294
|
running: boolean;
|
|
295
|
+
/**
|
|
296
|
+
* 重试次数
|
|
297
|
+
*/
|
|
298
|
+
attempts: number;
|
|
260
299
|
/**
|
|
261
300
|
* 定时器
|
|
262
301
|
*/
|
|
@@ -328,7 +367,11 @@ export declare enum ENDPOINT_TYPE {
|
|
|
328
367
|
/**
|
|
329
368
|
* PSTN电话
|
|
330
369
|
*/
|
|
331
|
-
PSTN = "pstn"
|
|
370
|
+
PSTN = "pstn",
|
|
371
|
+
/**
|
|
372
|
+
* 多流终端 - 从流
|
|
373
|
+
*/
|
|
374
|
+
MULTI_STREAM = "multiStream"
|
|
332
375
|
}
|
|
333
376
|
|
|
334
377
|
/**
|
|
@@ -363,6 +406,12 @@ declare type Events = {
|
|
|
363
406
|
[MeEvent.UPDATE]: any;
|
|
364
407
|
[MeEvent.ROLECHANGE]: ROLE;
|
|
365
408
|
[MeEvent.LOBBYCHANGE]: boolean;
|
|
409
|
+
pollError: {
|
|
410
|
+
message: string;
|
|
411
|
+
};
|
|
412
|
+
keepaliveError: {
|
|
413
|
+
message: string;
|
|
414
|
+
};
|
|
366
415
|
me: any;
|
|
367
416
|
setUserVideo: any;
|
|
368
417
|
setUserAudio: any;
|
|
@@ -388,6 +437,13 @@ declare type Events = {
|
|
|
388
437
|
chatMsg: any;
|
|
389
438
|
transcriptMsg: any;
|
|
390
439
|
qa: any;
|
|
440
|
+
queryCallStats: {
|
|
441
|
+
body: {
|
|
442
|
+
interval: number;
|
|
443
|
+
count: number;
|
|
444
|
+
};
|
|
445
|
+
};
|
|
446
|
+
interpretation: any;
|
|
391
447
|
};
|
|
392
448
|
|
|
393
449
|
declare type Events_10 = {
|
|
@@ -417,12 +473,16 @@ declare type Events_12 = {
|
|
|
417
473
|
transcriptMsg: Transcription;
|
|
418
474
|
};
|
|
419
475
|
|
|
420
|
-
declare type Events_13 =
|
|
476
|
+
declare type Events_13 = {
|
|
477
|
+
interpretationChange: InterpretationData;
|
|
478
|
+
};
|
|
421
479
|
|
|
422
|
-
declare type Events_14 = Record<EventType,
|
|
480
|
+
declare type Events_14 = Record<EventType, unknown>;
|
|
423
481
|
|
|
424
482
|
declare type Events_15 = Record<EventType, any>;
|
|
425
483
|
|
|
484
|
+
declare type Events_16 = Record<EventType, any>;
|
|
485
|
+
|
|
426
486
|
declare type Events_2 = {
|
|
427
487
|
[MeEvent.INIT]: MeData;
|
|
428
488
|
[MeEvent.UPDATE]: any;
|
|
@@ -630,10 +690,47 @@ export declare interface InfoData {
|
|
|
630
690
|
practiceSession?: boolean;
|
|
631
691
|
audienceHideNonVideoEnabled?: boolean;
|
|
632
692
|
webinarSurveyLink?: string;
|
|
693
|
+
interpretationEnabled?: boolean;
|
|
633
694
|
participantCount: {
|
|
634
695
|
hostAttendee: number;
|
|
635
696
|
audience: number;
|
|
636
697
|
};
|
|
698
|
+
multiStreamEnabled?: boolean;
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
export declare class Interpretation extends Module<InterpretationData, Events_13> {
|
|
702
|
+
constructor(ctx: Context);
|
|
703
|
+
_topic(): string;
|
|
704
|
+
_bindOn(): void;
|
|
705
|
+
/**
|
|
706
|
+
* 开启或更新传译
|
|
707
|
+
* @param params
|
|
708
|
+
* @returns
|
|
709
|
+
*/
|
|
710
|
+
interpretationStart(params: {
|
|
711
|
+
interpreters: InterpretationData['interpreters'];
|
|
712
|
+
}): Promise<any>;
|
|
713
|
+
/**
|
|
714
|
+
* 结束同声传译
|
|
715
|
+
* @returns
|
|
716
|
+
*/
|
|
717
|
+
interpretationEnd(): Promise<any>;
|
|
718
|
+
}
|
|
719
|
+
|
|
720
|
+
export declare type InterpretationData = {
|
|
721
|
+
status: 'started' | 'stopped';
|
|
722
|
+
interpreters: {
|
|
723
|
+
userID?: number;
|
|
724
|
+
subjectID?: string;
|
|
725
|
+
displayName: string;
|
|
726
|
+
firstLanguage: Language;
|
|
727
|
+
secondLanguage: Language;
|
|
728
|
+
}[];
|
|
729
|
+
};
|
|
730
|
+
|
|
731
|
+
export declare interface InterpretationPayload {
|
|
732
|
+
body: InterpretationData;
|
|
733
|
+
state: PollingPayloadState;
|
|
637
734
|
}
|
|
638
735
|
|
|
639
736
|
export declare class Invite extends Module<InviteData, Events_6> {
|
|
@@ -731,6 +828,11 @@ export declare interface JoinParams {
|
|
|
731
828
|
tk?: string;
|
|
732
829
|
}
|
|
733
830
|
|
|
831
|
+
export declare interface Language {
|
|
832
|
+
name: string;
|
|
833
|
+
id: number;
|
|
834
|
+
}
|
|
835
|
+
|
|
734
836
|
export declare interface Layout {
|
|
735
837
|
mode: LayoutMode;
|
|
736
838
|
layout: LayoutContent;
|
|
@@ -774,7 +876,7 @@ export declare interface Live {
|
|
|
774
876
|
userID?: string;
|
|
775
877
|
}
|
|
776
878
|
|
|
777
|
-
export declare class LiveStream extends Module<LiveStreamData,
|
|
879
|
+
export declare class LiveStream extends Module<LiveStreamData, Events_14> {
|
|
778
880
|
constructor(ctx: Context);
|
|
779
881
|
_topic(): string;
|
|
780
882
|
_bindOn(): void;
|
|
@@ -858,6 +960,7 @@ export declare interface MeData {
|
|
|
858
960
|
audio: MediaState;
|
|
859
961
|
video: MediaState;
|
|
860
962
|
};
|
|
963
|
+
account?: string;
|
|
861
964
|
mediaContent?: {
|
|
862
965
|
accessMCs: Array<string>;
|
|
863
966
|
addrType: number;
|
|
@@ -884,20 +987,22 @@ export declare interface MeData {
|
|
|
884
987
|
|
|
885
988
|
/**
|
|
886
989
|
* 媒体
|
|
990
|
+
* TODO
|
|
887
991
|
*/
|
|
888
992
|
export declare interface MediaState {
|
|
993
|
+
/**
|
|
994
|
+
* 媒体开关状态
|
|
995
|
+
*/
|
|
996
|
+
sendOn: boolean;
|
|
889
997
|
/**
|
|
890
998
|
* 设备的开启状态,true设备可用/false设备不可用
|
|
891
999
|
*/
|
|
892
1000
|
deviceOn?: boolean;
|
|
893
1001
|
/**
|
|
894
|
-
*
|
|
1002
|
+
* 暂停音频
|
|
895
1003
|
*/
|
|
896
1004
|
recvOn?: boolean;
|
|
897
|
-
|
|
898
|
-
* 媒体开关状态
|
|
899
|
-
*/
|
|
900
|
-
sendOn: boolean;
|
|
1005
|
+
blocked?: boolean;
|
|
901
1006
|
}
|
|
902
1007
|
|
|
903
1008
|
export declare enum MeEvent {
|
|
@@ -1130,7 +1235,7 @@ export declare interface QuestionAnswer {
|
|
|
1130
1235
|
timestamp: number;
|
|
1131
1236
|
}
|
|
1132
1237
|
|
|
1133
|
-
declare type ReactiveReturn = {
|
|
1238
|
+
export declare type ReactiveReturn = {
|
|
1134
1239
|
/**
|
|
1135
1240
|
* 取消响应式关联
|
|
1136
1241
|
*/
|
|
@@ -1151,7 +1256,7 @@ export declare enum RECORD_STATUS {
|
|
|
1151
1256
|
STOPPED = "stopped"
|
|
1152
1257
|
}
|
|
1153
1258
|
|
|
1154
|
-
export declare class Recording extends Module<RecordingData,
|
|
1259
|
+
export declare class Recording extends Module<RecordingData, Events_15> {
|
|
1155
1260
|
constructor(ctx: Context);
|
|
1156
1261
|
_topic(): string;
|
|
1157
1262
|
_bindOn(): void;
|
|
@@ -1237,7 +1342,7 @@ export declare interface RecordingData {
|
|
|
1237
1342
|
resultInfo: {
|
|
1238
1343
|
bizCode?: string;
|
|
1239
1344
|
};
|
|
1240
|
-
|
|
1345
|
+
stime: number;
|
|
1241
1346
|
}
|
|
1242
1347
|
|
|
1243
1348
|
export declare interface RecordingMap {
|
|
@@ -1275,6 +1380,8 @@ export declare interface RecordLayoutMap {
|
|
|
1275
1380
|
export declare interface RecordUsers {
|
|
1276
1381
|
subjectID: string;
|
|
1277
1382
|
userID?: number;
|
|
1383
|
+
isMultiStreamRecordUser?: boolean;
|
|
1384
|
+
multiStreamPictureCount?: number;
|
|
1278
1385
|
}
|
|
1279
1386
|
|
|
1280
1387
|
export declare function reset(ctx: Context): void;
|
|
@@ -1359,7 +1466,7 @@ export declare interface SetMedia {
|
|
|
1359
1466
|
};
|
|
1360
1467
|
}
|
|
1361
1468
|
|
|
1362
|
-
export declare class Setting extends Module<SettingData,
|
|
1469
|
+
export declare class Setting extends Module<SettingData, Events_16> {
|
|
1363
1470
|
constructor(ctx: Context);
|
|
1364
1471
|
_topic(): string;
|
|
1365
1472
|
_bindOn(): void;
|
|
@@ -1532,7 +1639,7 @@ export declare interface User {
|
|
|
1532
1639
|
/**
|
|
1533
1640
|
* 终端类型
|
|
1534
1641
|
*/
|
|
1535
|
-
endpointType
|
|
1642
|
+
endpointType: ENDPOINT_TYPE;
|
|
1536
1643
|
/**
|
|
1537
1644
|
* 用户名
|
|
1538
1645
|
*/
|
|
@@ -1603,6 +1710,17 @@ export declare interface User {
|
|
|
1603
1710
|
localRecord?: {
|
|
1604
1711
|
status: RECORD_STATUS;
|
|
1605
1712
|
};
|
|
1713
|
+
/**
|
|
1714
|
+
* 传译员
|
|
1715
|
+
*/
|
|
1716
|
+
interpret?: {
|
|
1717
|
+
isInterpreter: boolean;
|
|
1718
|
+
activeLanguage: string;
|
|
1719
|
+
};
|
|
1720
|
+
/**
|
|
1721
|
+
* 多流终端中主流UserID
|
|
1722
|
+
*/
|
|
1723
|
+
parentUserID?: number;
|
|
1606
1724
|
}
|
|
1607
1725
|
|
|
1608
1726
|
/**
|
|
@@ -1625,6 +1743,9 @@ export declare interface UserMedia {
|
|
|
1625
1743
|
* 操作者 1(other) 表示被别人操作;0(self) 或没有该字段 表示自己操作
|
|
1626
1744
|
*/
|
|
1627
1745
|
opBy?: number;
|
|
1746
|
+
serverCoop?: boolean;
|
|
1747
|
+
sourceID?: number;
|
|
1748
|
+
blocked: boolean;
|
|
1628
1749
|
}
|
|
1629
1750
|
|
|
1630
1751
|
export declare class Users extends Module<UsersData, Events_4> {
|
|
@@ -1632,6 +1753,11 @@ export declare class Users extends Module<UsersData, Events_4> {
|
|
|
1632
1753
|
constructor(ctx: Context);
|
|
1633
1754
|
_topic(): string[] | "interactive";
|
|
1634
1755
|
_bindOn(): void;
|
|
1756
|
+
/**
|
|
1757
|
+
* 关联外部响应式数据
|
|
1758
|
+
* @param obj
|
|
1759
|
+
*/
|
|
1760
|
+
reactive(obj: Record<any, any>): UsersData & ReactiveReturn;
|
|
1635
1761
|
cleanup(): void;
|
|
1636
1762
|
/**
|
|
1637
1763
|
* 更新 - 补充用户信息:
|
|
@@ -1760,6 +1886,24 @@ export declare class Users extends Module<UsersData, Events_4> {
|
|
|
1760
1886
|
* @returns
|
|
1761
1887
|
*/
|
|
1762
1888
|
callStats(userID: number): Promise<any>;
|
|
1889
|
+
/**
|
|
1890
|
+
* 上报通话统计
|
|
1891
|
+
* @param userID
|
|
1892
|
+
* @returns
|
|
1893
|
+
*/
|
|
1894
|
+
callStatsReport(params: {
|
|
1895
|
+
/**
|
|
1896
|
+
* 用户ID
|
|
1897
|
+
*/
|
|
1898
|
+
userID: number;
|
|
1899
|
+
stats: {
|
|
1900
|
+
audio: audioStats;
|
|
1901
|
+
video: videoStats;
|
|
1902
|
+
share: videoStats;
|
|
1903
|
+
};
|
|
1904
|
+
deviceInfo: string;
|
|
1905
|
+
protocol: string;
|
|
1906
|
+
}): Promise<any>;
|
|
1763
1907
|
/**
|
|
1764
1908
|
* 举手全部拒绝
|
|
1765
1909
|
* @returns
|
|
@@ -1775,6 +1919,40 @@ export declare class Users extends Module<UsersData, Events_4> {
|
|
|
1775
1919
|
* @returns
|
|
1776
1920
|
*/
|
|
1777
1921
|
refuseAll(): Promise<any>;
|
|
1922
|
+
/**
|
|
1923
|
+
* 获取设备发送布局及视频源信息
|
|
1924
|
+
* @param userID
|
|
1925
|
+
* @returns
|
|
1926
|
+
*/
|
|
1927
|
+
getSendLayout(userID: number): Promise<any>;
|
|
1928
|
+
/**
|
|
1929
|
+
* 设置设备发送布局
|
|
1930
|
+
* @param userID
|
|
1931
|
+
* @param params
|
|
1932
|
+
* @returns
|
|
1933
|
+
*/
|
|
1934
|
+
setSendLayout(userID: number, params: {
|
|
1935
|
+
sendLayout: {
|
|
1936
|
+
type: string;
|
|
1937
|
+
pictures: {
|
|
1938
|
+
index: number;
|
|
1939
|
+
videoSources: {
|
|
1940
|
+
deviceID: string;
|
|
1941
|
+
}[];
|
|
1942
|
+
}[];
|
|
1943
|
+
};
|
|
1944
|
+
applyToPeopleVideo: boolean;
|
|
1945
|
+
applyToContentVideo: boolean;
|
|
1946
|
+
}): Promise<any>;
|
|
1947
|
+
/**
|
|
1948
|
+
* 更新用户发送布局状态
|
|
1949
|
+
* @param userID
|
|
1950
|
+
* @param params
|
|
1951
|
+
* @returns
|
|
1952
|
+
*/
|
|
1953
|
+
setSendLayoutEnabled(userID: number, params: {
|
|
1954
|
+
enabled: boolean;
|
|
1955
|
+
}): Promise<any>;
|
|
1778
1956
|
}
|
|
1779
1957
|
|
|
1780
1958
|
/**
|
|
@@ -1799,6 +1977,41 @@ export declare interface UsersData {
|
|
|
1799
1977
|
advCtrlUsers: User[];
|
|
1800
1978
|
}
|
|
1801
1979
|
|
|
1980
|
+
export declare interface videoStats {
|
|
1981
|
+
/**
|
|
1982
|
+
* bps 带宽
|
|
1983
|
+
*/
|
|
1984
|
+
bandwidth: number;
|
|
1985
|
+
/**
|
|
1986
|
+
* ms 环回延时
|
|
1987
|
+
*/
|
|
1988
|
+
rtt: number;
|
|
1989
|
+
/**
|
|
1990
|
+
* ms 抖动
|
|
1991
|
+
*/
|
|
1992
|
+
jitter: number;
|
|
1993
|
+
/**
|
|
1994
|
+
* 分辨率宽
|
|
1995
|
+
*/
|
|
1996
|
+
width: number;
|
|
1997
|
+
/**
|
|
1998
|
+
* 分辨率高
|
|
1999
|
+
*/
|
|
2000
|
+
height: number;
|
|
2001
|
+
/**
|
|
2002
|
+
* 帧率
|
|
2003
|
+
*/
|
|
2004
|
+
fr: number;
|
|
2005
|
+
/**
|
|
2006
|
+
* % 丢包率
|
|
2007
|
+
*/
|
|
2008
|
+
lossrate: number;
|
|
2009
|
+
/**
|
|
2010
|
+
* 个 丢包数
|
|
2011
|
+
*/
|
|
2012
|
+
packetlost: number;
|
|
2013
|
+
}
|
|
2014
|
+
|
|
1802
2015
|
export declare class View extends Module<ViewData, Events_10> {
|
|
1803
2016
|
constructor(ctx: Context);
|
|
1804
2017
|
_topic(): string[];
|
|
@@ -2257,6 +2470,10 @@ export declare interface YlinkSDKMeeting {
|
|
|
2257
2470
|
* 语音转写
|
|
2258
2471
|
*/
|
|
2259
2472
|
transcript?: Transcript;
|
|
2473
|
+
/**
|
|
2474
|
+
* 同声传译
|
|
2475
|
+
*/
|
|
2476
|
+
interpretation?: Interpretation;
|
|
2260
2477
|
[props: string]: any;
|
|
2261
2478
|
}
|
|
2262
2479
|
|