@xylink/xy-rtc-sdk 3.10.0-beta.4 → 100.0.0-beta.44

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (116) hide show
  1. package/README.MD +30 -12
  2. package/build.config.json +10 -0
  3. package/lib/action/index.d.ts +57 -45
  4. package/lib/enum/analyser.d.ts +7 -0
  5. package/lib/enum/client.d.ts +8 -2
  6. package/lib/enum/constraints.d.ts +11 -16
  7. package/lib/enum/device.d.ts +0 -6
  8. package/lib/enum/errorCode.d.ts +5 -2
  9. package/lib/enum/index.d.ts +43 -5
  10. package/lib/enum/polling.d.ts +2 -0
  11. package/lib/feature/customMessage/index.d.ts +29 -0
  12. package/lib/feature/edu/index.d.ts +34 -0
  13. package/lib/feature/edu/index.type.d.ts +29 -0
  14. package/lib/feature/index.d.ts +3 -1
  15. package/lib/feature/{speaker.d.ts → speaker/index.d.ts} +29 -9
  16. package/lib/feature/speaker/index.type.d.ts +17 -0
  17. package/lib/index.d.ts +65 -28
  18. package/lib/interface/baseModule.type.d.ts +9 -0
  19. package/lib/interface/clientInterface.type.d.ts +83 -0
  20. package/lib/interface/contentTrackInterface.type.d.ts +15 -0
  21. package/lib/interface/event.type.d.ts +316 -0
  22. package/lib/interface/peopleTrackInterface.type.d.ts +17 -0
  23. package/lib/main/ability/const.d.ts +4 -1
  24. package/lib/main/ability/index.d.ts +7 -1
  25. package/lib/main/{auth.d.ts → auth/index.d.ts} +29 -19
  26. package/lib/main/client.d.ts +365 -595
  27. package/lib/main/clientBase.d.ts +38 -0
  28. package/lib/main/clientState.d.ts +56 -0
  29. package/lib/main/{deviceManager.d.ts → device/index.d.ts} +45 -13
  30. package/lib/{type/device.d.ts → main/device/index.type.d.ts} +65 -16
  31. package/lib/main/helper/index.d.ts +120 -0
  32. package/lib/main/layout/index.d.ts +118 -105
  33. package/lib/main/layout/index.type.d.ts +270 -0
  34. package/lib/main/layout/polling.d.ts +212 -0
  35. package/lib/main/layout/state.d.ts +163 -0
  36. package/lib/main/layout/template.d.ts +15 -7
  37. package/lib/main/media/index.d.ts +177 -0
  38. package/lib/main/media/index.type.d.ts +9 -0
  39. package/lib/main/meeting/control.d.ts +107 -0
  40. package/lib/main/meeting/control.type.d.ts +24 -0
  41. package/lib/main/{meeting.d.ts → meeting/index.d.ts} +46 -7
  42. package/lib/main/meeting/verify.d.ts +69 -0
  43. package/lib/main/peer.d.ts +120 -41
  44. package/lib/main/plugin/index.d.ts +28 -0
  45. package/lib/{tools/quality.d.ts → main/quality/index.d.ts} +2 -2
  46. package/lib/{tools → main/quality}/quality.worker.d.ts +1 -1
  47. package/lib/main/{qualityManager.d.ts → quality/report.d.ts} +11 -5
  48. package/lib/main/render/index.d.ts +116 -0
  49. package/lib/main/render/index.type.d.ts +24 -0
  50. package/lib/main/{videoManager.d.ts → render/videoManager.d.ts} +78 -28
  51. package/lib/main/render/videoManager.type.d.ts +66 -0
  52. package/lib/main/roster/index.d.ts +39 -0
  53. package/lib/main/server/index.d.ts +79 -0
  54. package/lib/main/server/index.type.d.ts +21 -0
  55. package/lib/main/signal/index.d.ts +15 -0
  56. package/lib/main/socket/index.d.ts +95 -0
  57. package/lib/main/stream/index.d.ts +182 -0
  58. package/lib/main/track/baseTrack.d.ts +178 -0
  59. package/lib/main/track/contentTrack.d.ts +161 -0
  60. package/lib/main/track/customContentTrack.d.ts +18 -0
  61. package/lib/main/track/customVideoAudioTrack.d.ts +18 -0
  62. package/lib/main/track/helper.d.ts +53 -0
  63. package/lib/main/track/videoAudioCapture.d.ts +90 -0
  64. package/lib/main/track/videoAudioTrack.d.ts +243 -0
  65. package/lib/main/vom/index.d.ts +44 -0
  66. package/lib/main/vom/index.type.d.ts +1 -0
  67. package/lib/tools/analyser.d.ts +30 -7
  68. package/lib/tools/analyserManager.d.ts +55 -0
  69. package/lib/tools/dbManager.d.ts +12 -1
  70. package/lib/tools/{browser.d.ts → detectBrowser/index.d.ts} +53 -5
  71. package/lib/tools/detectStream/index.d.ts +84 -0
  72. package/lib/tools/detectStream/index.type.d.ts +56 -0
  73. package/lib/tools/detectTool/index.d.ts +191 -0
  74. package/lib/tools/detectTool/index.type.d.ts +62 -0
  75. package/lib/tools/emitter.d.ts +27 -6
  76. package/lib/tools/enum.d.ts +1 -1
  77. package/lib/tools/httpClient.d.ts +5 -1
  78. package/lib/tools/i18n.d.ts +1 -1
  79. package/lib/tools/index.d.ts +1 -8
  80. package/lib/tools/log/logger.d.ts +41 -21
  81. package/lib/tools/log/logger.worker.d.ts +1 -1
  82. package/lib/tools/log/loggerManager.d.ts +2 -2
  83. package/lib/tools/pressure/index.d.ts +33 -0
  84. package/lib/tools/pressure/index.type.d.ts +22 -0
  85. package/lib/tools/promiseQueue.d.ts +6 -0
  86. package/lib/tools/regex.d.ts +4 -0
  87. package/lib/tools/snapshot.d.ts +1 -1
  88. package/lib/tools/socket.d.ts +12 -2
  89. package/lib/tools/template/index.d.ts +11 -88
  90. package/lib/tools/template/mobile.d.ts +1 -1
  91. package/lib/tools/template/polling.d.ts +8 -0
  92. package/lib/tools/utils.d.ts +25 -16
  93. package/lib/tools/verify.d.ts +7 -0
  94. package/lib/type/ability.d.ts +1 -1
  95. package/lib/type/analyser.d.ts +26 -1
  96. package/lib/type/auth.d.ts +19 -19
  97. package/lib/type/base.d.ts +27 -31
  98. package/lib/type/capture.d.ts +9 -0
  99. package/lib/type/client.d.ts +178 -333
  100. package/lib/type/index.d.ts +22 -2
  101. package/lib/type/layout.d.ts +81 -45
  102. package/lib/type/logger.d.ts +19 -12
  103. package/lib/type/meeting.d.ts +101 -56
  104. package/lib/type/peer.d.ts +65 -1
  105. package/lib/type/polling.d.ts +194 -0
  106. package/lib/type/quality.d.ts +12 -2
  107. package/lib/type/socket.d.ts +0 -18
  108. package/lib/type/stream.d.ts +42 -24
  109. package/lib/type/track.d.ts +131 -0
  110. package/lib/xyrtc.cjs.js +1 -1
  111. package/lib/xyrtc.umd.js +1 -1
  112. package/package.json +32 -52
  113. package/lib/main/clientImplements.d.ts +0 -99
  114. package/lib/main/helper.d.ts +0 -104
  115. package/lib/main/stream.d.ts +0 -418
  116. package/lib/tools/detect.d.ts +0 -44
@@ -8,13 +8,33 @@
8
8
  export * from './base';
9
9
  export * from './client';
10
10
  export * from './stream';
11
- export * from './device';
12
11
  export * from './action';
13
12
  export * from './meeting';
14
13
  export * from './layout';
15
14
  export * from './quality';
16
15
  export * from './peer';
17
16
  export * from './logger';
18
- export * from './auth';
19
17
  export * from './analyser';
20
18
  export * from './ability';
19
+ export * from './track';
20
+ export * from './capture';
21
+ export * from './auth';
22
+ export * from './polling';
23
+ export * from './socket';
24
+ export * from '../main/meeting/control.type';
25
+ export * from '../main/server/index.type';
26
+ export * from '../main/media/index.type';
27
+ export * from '../main/media/index.type';
28
+ export * from '../main/render/index.type';
29
+ export * from '../main/render/videoManager.type';
30
+ export * from '../main/layout/index.type';
31
+ export * from '../main/device/index.type';
32
+ export * from '../interface/baseModule.type';
33
+ export * from '../interface/clientInterface.type';
34
+ export * from '../interface/event.type';
35
+ export * from '../interface/contentTrackInterface.type';
36
+ export * from '../interface/peopleTrackInterface.type';
37
+ export * from '../tools/detectStream/index.type';
38
+ export * from '../tools/detectTool/index.type';
39
+ export * from '../feature/edu/index.type';
40
+ export * from '../feature/speaker/index.type';
@@ -1,21 +1,12 @@
1
- import { ILayout } from './client';
1
+ import { ExternalTemplateConfig, ILayout, IRoster } from './index';
2
2
  import { StreamResolutionLevel, VideoQuality } from './stream';
3
3
  /**
4
- * Layout头像类型
4
+ * Layout List数据,支持画面重复渲染
5
5
  *
6
- * @param NONE -1 - 无头像
7
- * @param TEXT 0 - 名称头像
8
- * @param IMAGE 1 - 人物头像
6
+ * @param { string } Map.key - Roster Id,一对多关系,同一个Id可能会有多个画面重复渲染
7
+ * @param { ILayout[] } Map.value - Layout List数据,每个一Layout代表一路画面
9
8
  */
10
- export declare enum LayoutAvatarType {
11
- NONE = -1,
12
- TEXT = 0,
13
- IMAGE = 1
14
- }
15
- /**
16
- * Layout map
17
- */
18
- export type TLayoutMap = Map<string, ILayout>;
9
+ export type TLayoutMap = Map<string, ILayout[]>;
19
10
  /**
20
11
  * 模版类型
21
12
  */
@@ -74,22 +65,6 @@ export interface ITemplateResolution {
74
65
  low: StreamResolutionLevel;
75
66
  high?: StreamResolutionLevel;
76
67
  }
77
- /**
78
- * 模版额外配置
79
- *
80
- * @property { string } id - templateId (模版名称_画面数量_第几个画面)
81
- * @property { boolean } isPIP - 是否在画中画
82
- * @property { boolean } isRotate - 是否要适配旋转
83
- * @property { number } zIndex - 层级
84
- * @property { Record<string, string | number> } customStyle - 自定义样式
85
- */
86
- export interface ExternalTemplateConfig {
87
- id?: string;
88
- isPIP?: boolean;
89
- isRotate?: boolean;
90
- zIndex?: number;
91
- customStyle?: Record<string, string | number>;
92
- }
93
68
  /**
94
69
  * Layout模版定义
95
70
  *
@@ -139,20 +114,22 @@ export interface TemplateInfo {
139
114
  * 获取模版配置参数
140
115
  *
141
116
  * @param { TemplateMode | ContentTemplateMode } modeType - 模版类型
142
- * @param { number } currentCount - 画面数量
117
+ * @param { number } templateCount - 模版对应画面数量
143
118
  * @param { number } participantCount - 会中总人数
144
- * @param { boolean } isLocalHide - 是否隐藏本地画面
119
+ * @param { boolean } isEnableHideLocalView - 是否隐藏本地画面模式
145
120
  * @param { boolean } isChairmanMode - 是否是主会场模式
121
+ * @param { boolean } isInDialogMode - 是否是对话模式布局
146
122
  * @param { TemplateType } templateType - 全屏画面类型
147
123
  * @param { LayoutOrientationType } orientation - 是否是移动端,及方向
148
124
  * @param { FocusViewConfig } focusViewConfig - 切换的主画面信息
149
125
  */
150
126
  export interface TemplateParams {
151
127
  modeType?: TemplateMode | ContentTemplateMode;
152
- currentCount?: number;
128
+ templateCount?: number;
153
129
  participantCount?: number;
154
- isLocalHide?: boolean;
130
+ isEnableHideLocalView?: boolean;
155
131
  isChairmanMode?: boolean;
132
+ isInDialogMode?: boolean;
156
133
  templateType?: TemplateType;
157
134
  orientation?: LayoutOrientationType;
158
135
  focusViewConfig?: FocusViewConfig;
@@ -170,14 +147,51 @@ export declare enum LayoutOrientationType {
170
147
  MOBILE_VERTICAL = 1
171
148
  }
172
149
  /**
173
- * 指定的主画面的信息
150
+ * 焦点画面来源
151
+ *
152
+ * @param NONE 0 - 无
153
+ * @param USER 1 - 用户
154
+ * @param MEETING 2 - 会控
155
+ */
156
+ export declare enum FocusViewKind {
157
+ NONE = 0,
158
+ USER = 1,
159
+ MEETING = 2
160
+ }
161
+ /**
162
+ * 焦点画面参数
174
163
  *
175
- * @property { string } id - 指定的主画面的LayoutId
164
+ * @property { boolean } isFocusMode - 是否显示焦点画面布局,Content/全屏模式 优先级更高
176
165
  * @property { TemplateType } type - 画面类型
166
+ * @property { IRoster|null } roster - 焦点画面roster信息
167
+ * @property { FocusViewKind } kind - 来源
177
168
  */
178
169
  export interface FocusViewConfig {
179
- id: string;
170
+ isFocusMode: boolean;
180
171
  type: TemplateType;
172
+ roster: IRoster | null;
173
+ kind?: FocusViewKind;
174
+ }
175
+ /**
176
+ * 布局相关配置
177
+ *
178
+ * @property { boolean } isForceSharedLayout - 本地共享布局是否强制宫格布局
179
+ * @property { number } localSharedMaxViewCount - 本地共享时显示的最大画面数量
180
+ */
181
+ export interface LayoutConfig {
182
+ isForceSharedLayout?: boolean;
183
+ localSharedMaxViewCount?: number;
184
+ }
185
+ /**
186
+ * 主画面来源
187
+ *
188
+ * @param MAIN_VENUE mainVenue - 主会场模式
189
+ * @param FOCUS_MODE focusMode - 焦点模式
190
+ */
191
+ export declare enum ChairManReason {
192
+ NONE = "",
193
+ MAIN_VENUE = "mainVenue",
194
+ FOCUS_MODE = "focusMode"
181
195
  }
182
196
  /**
183
197
  * RosterId 分割信息
@@ -189,17 +203,39 @@ export interface IRosterIdInfo {
189
203
  endpointId: string;
190
204
  mediagroupId: string;
191
205
  }
206
+ export interface Template {
207
+ [key: string]: {
208
+ rate: number | undefined;
209
+ temp: any;
210
+ };
211
+ }
212
+ export interface TemplateItem {
213
+ position: number[];
214
+ resolution: {
215
+ normal: StreamResolutionLevel;
216
+ low?: StreamResolutionLevel;
217
+ high?: StreamResolutionLevel;
218
+ };
219
+ type: TemplateType;
220
+ quality: VideoQuality;
221
+ }
192
222
  /**
193
- * 计算Video元素旋转样式
223
+ * Layout状态,当前仅支持上报轮询多画面状态
194
224
  *
195
- * @property { string } transform - Video元素选转角度:rotateZ(${n}deg)
196
- * @property { string } width - Video元素的宽:${n}px
197
- * @property { string } height - Video元素的高:${n}px
225
+ * @property { boolean } isPolling - 是否增在轮询中,true代表正在轮询中,false代表结束/暂停轮询状态
198
226
  */
199
- export interface IRotateStyle {
200
- transform?: string;
201
- width?: string;
202
- height?: string;
227
+ export interface LayoutState {
228
+ isPolling: boolean;
229
+ }
230
+ /**
231
+ * RosterId 分割信息
232
+ *
233
+ * @property { string } endpointId - 参会者callUri字段
234
+ * @property { string } mediagroupId - 多分组ID
235
+ */
236
+ export interface IRosterIdInfo {
237
+ endpointId: string;
238
+ mediagroupId: string;
203
239
  }
204
240
  /**
205
241
  * 需要管理员广播才能收看内容共享
@@ -5,12 +5,14 @@
5
5
  * @param DEBUG DEBUG - 调试信息
6
6
  * @param WARN WARN - 警告信息
7
7
  * @param ERROR ERROR - 错误信息
8
+ * @param FATAL FATAL - 致命错误信息
8
9
  */
9
10
  export declare enum MessageKind {
10
11
  LOG = "INFO",
11
12
  DEBUG = "DEBUG",
12
13
  WARN = "WARN",
13
- ERROR = "ERROR"
14
+ ERROR = "ERROR",
15
+ FATAL = "FATAL"
14
16
  }
15
17
  /**
16
18
  * WebWorker消息类型
@@ -59,17 +61,20 @@ export type TLogLevel = `${LogLevel}`;
59
61
  /**
60
62
  * 日志模块配置
61
63
  *
62
- * @param { string } dbName - 数据库名称,默认值:XYRTC_LOG
63
- * @param { number } dbVersion - 数据库版本,默认值:1
64
- * @param { string } tableName - 表名称,默认值:LOG
65
- * @param { number } tableCount - 表的数量,默认值:1
66
- * @param { number } tableIndex - 当前表的索引,默认值:1
67
- * @param { number } maxSize - 当前数据表最大存储长度,默认值:1000000(100万条数据)
68
- * @param { number } schema - 表字段,默认值:'++id,t,c'
69
- * @param { string[] } deleteDBNames - 需要删除的历史数据库名,默认值[]
70
- * @param { boolean } isUpdateVersion - 是否需要更新表版本(历史表都将被删除,避免错误)
71
- * @param { number } detectTimer - 多久检测一次表的最大长度,单位ms,默认值:300000(5分钟)
72
- * @param { string } scope - 配置日志Scope范围,例如配置为'APP',则所有日志显示为:[16:14:24 490][INFO][APP]xxxx
64
+ * @param { string } dbName - 必填,数据库名称,默认值是XYRTC_LOG
65
+ * @param { string } tableName - 必填,表名称,默认值是LOG
66
+ * @param { number } dbVersion - 可选,数据库版本,默认值是1
67
+ * @param { number } tableCount - 可选,表的数量,默认值是1
68
+ * @param { number } tableIndex - 可选,当前表的索引,默认值是1
69
+ * @param { string } schema - 可选,表字段,默认值是'++id,t,c'
70
+ * @param { number } maxSize - 可选,当前数据表最大存储长度,默认值是80000(8万条数据)
71
+ * @param { number } detectTimer - 可选,多久检测一次表的最大长度,单位ms,默认值是300000(5分钟)
72
+ * @param { string[] } deleteDBNames - 可选,需要删除的历史数据库名,默认值是[]
73
+ * @param { boolean } isUpdateVersion - 可选,是否需要更新表版本(历史表都将被删除,避免错误)
74
+ * @param { boolean } enableClearTable - 可选,是否清理表, 默认值是true,代表重新初始化时清空当前数据表
75
+ * @param { string } scope - 可选,配置日志Scope范围,例如配置为'APP',则所有日志显示为:[16:14:24 490][INFO][APP]xxxx
76
+ * @param { number } clearOffset - 可选,自动清理表数据的偏移值,正序排序,默认值:1000,即从第1000位开始,1000+limit长度的数据进行自动清理操作
77
+ * @param { number } clearLimit - 可选,自动清理表数据的数量限制,从offset开始,offset + limit长度为结束,默认值:11000
73
78
  */
74
79
  export interface ILoggerConfig {
75
80
  dbName: string;
@@ -84,6 +89,8 @@ export interface ILoggerConfig {
84
89
  isUpdateVersion?: boolean;
85
90
  enableClearTable?: boolean;
86
91
  scope?: string;
92
+ clearOffset?: number;
93
+ clearLimit?: number;
87
94
  }
88
95
  /**
89
96
  * 数据库操作配置
@@ -2,16 +2,34 @@
2
2
  * Meeting Lib Type Defined
3
3
  *
4
4
  * Created at : 2022-10-27 18:13:24
5
- * Last modified : 2023-11-03 11:34:35
5
+ * Last modified : 2024-06-05 11:07:16
6
6
  */
7
+ import { LayoutAvatarType } from './index';
7
8
  import { ILoginInfo } from './client';
8
- import { LayoutAvatarType } from './layout';
9
- import { StreamResolution } from './stream';
9
+ import { StreamFrameRate, StreamResolution } from './stream';
10
+ /**
11
+ * 水印范围
12
+ *
13
+ * @param { CONTENT } '0' - 共享内容叠加水印
14
+ * @param { ALL } '1' - 视频和共享内容叠加水印
15
+ */
16
+ export declare enum WatermarkRange {
17
+ CONTENT = "0",
18
+ ALL = "1"
19
+ }
20
+ /**
21
+ * 水印状态,是否有水印
22
+ */
23
+ export declare enum WatermarkStatus {
24
+ NONE = "0",
25
+ WITH = "1"
26
+ }
10
27
  /**
11
28
  * 呼叫号码的云会议室属性配置
12
29
  */
13
30
  export interface IConfAuxPro {
14
- watermark: string;
31
+ watermark: WatermarkStatus;
32
+ watermarkRange: WatermarkRange;
15
33
  displayConfNo: string;
16
34
  inoutReminder: string;
17
35
  waitingRoomProp?: IWaitingRoomProps;
@@ -61,32 +79,46 @@ export interface IExportUserInfo extends ILoginInfo {
61
79
  /**
62
80
  * 会议上行和下行方向
63
81
  *
64
- * @property DOWNLINK - 下行方向
65
- * @property UPLINK - 上行方向
82
+ * @property DOWNLINK - PEOPLE+CONTENT下行方向
83
+ * @property UPLINK - PEOPLE+CONTENT上行方向
66
84
  * @property ALL - 上行+下行方向
85
+ * @property PEOPLE_DOWNLINK - PEOPLE下行方向
86
+ * @property PEOPLE_UPLINK - PEOPLE上行方向
87
+ * @property CONTENT_DOWNLINK - CONTENT下行方向
88
+ * @property CONTENT_UPLINK - CONTENT上行方向
67
89
  */
68
90
  export declare enum MEETING_DIRECTION {
69
- DOWNLINK = 0,
70
- UPLINK = 1,
71
- ALL = 2
91
+ DOWNLINK = "DOWNLINK",
92
+ UPLINK = "UPLINK",
93
+ ALL = "ALL",
94
+ PEOPLE_DOWNLINK = "PEOPLE_DOWNLINK",
95
+ PEOPLE_UPLINK = "PEOPLE_UPLINK",
96
+ CONTENT_DOWNLINK = "CONTENT_DOWNLINK",
97
+ CONTENT_UPLINK = "CONTENT_UPLINK"
72
98
  }
73
99
  /**
74
100
  * 媒体能力配置
75
101
  *
76
102
  * @property { StreamResolution } peopleRecResolution - 控制People接收分辨率
77
103
  * @property { StreamResolution } peopleSendResolution - 控制People发送分辨率
104
+ * @property { StreamFrameRate } peopleRecFrameRate - 控制People接收帧率
105
+ * @property { StreamFrameRate } peopleSendFrameRate - 控制People发送帧率
78
106
  * @property { StreamResolution } contentRecResolution - 控制Content发送分辨率
79
107
  * @property { StreamResolution } contentSendResolution - 控制Content发送分辨率
80
- * @property { number } downLinkRate - 控制下行带宽,值类似:1920
81
- * @property { number } upLinkRate - 控制上行带宽,值类似:128;该字段不存在时或者配置为0时,取默认值3000000(3M)
108
+ * @property { number } rxBandwidth - 控制下行带宽,值类似:1920
109
+ * @property { number } pTxBandwidth - web节点People发送带宽,该字段不存在时或者配置为0时,取默认值3000000(3M)
110
+ * @property { number } cTxBandwidth - web节点Content发送带宽,该字段不存在时或者配置为0时,取默认值3000000(3M)
82
111
  */
83
112
  export interface IMediaConfig {
84
113
  peopleRecResolution: StreamResolution;
85
114
  peopleSendResolution: StreamResolution;
115
+ peopleRecFrameRate: StreamFrameRate;
116
+ peopleSendFrameRate: StreamFrameRate;
86
117
  contentRecResolution: StreamResolution;
87
118
  contentSendResolution: StreamResolution;
88
- downLinkRate: number;
89
- upLinkRate: number;
119
+ rxBandwidth: number;
120
+ pTxBandwidth: number;
121
+ cTxBandwidth: number;
90
122
  }
91
123
  /**
92
124
  * 媒体能力配置 请求参数
@@ -194,18 +226,6 @@ export interface ControlPasswordResult {
194
226
  code: number;
195
227
  data: string;
196
228
  }
197
- /**
198
- * 信令上报原始的消息
199
- *
200
- * @property { number } subType - 消息类型
201
- * @property { string } content - 消息详细内容
202
- * @property { string } requestId - 消息ID
203
- */
204
- export interface OriginalNotification {
205
- subType: number;
206
- content: string;
207
- requestId: string;
208
- }
209
229
  /**
210
230
  * 业务状态
211
231
  *
@@ -286,15 +306,50 @@ export interface InteractiveToolInfo {
286
306
  copywriting?: CopyWriting;
287
307
  }
288
308
  /**
289
- * 会控互动工具相关数据, 签到等
309
+ * 信令上报的消息
310
+ *
311
+ * @property { CoChair } coChair - 是否是联席主持人
312
+ * @property { Host } host - 是否是主持人
313
+ * @property { string } meetingId - 会议ID
314
+ */
315
+ export interface NotificationContent {
316
+ coChair?: CoChair;
317
+ host?: Host;
318
+ meetingId?: string;
319
+ }
320
+ /**
321
+ * 信令上报的消息
322
+ *
323
+ * @property { number } subType - 消息类型
324
+ * @property { NotificationContent } content - 消息详细内容
325
+ * @property { string } requestId - 消息ID
290
326
  */
291
- export interface OriginalRealTimeNotification {
292
- count: number;
293
- events: {
294
- content: string;
295
- type: EVENT_TYPE;
296
- action: EVENT_TYPE;
297
- }[];
327
+ export interface Notification {
328
+ subType: number;
329
+ content: NotificationContent;
330
+ requestId: string;
331
+ }
332
+ /**
333
+ * 获取签到文案参数
334
+ *
335
+ * @property { EVENT_TYPE } type - 业务状态
336
+ * @property { string } environment - 语言
337
+ * @property { VOTE_TYPE } businessType - 业务类型
338
+ */
339
+ export interface SignInTextParams {
340
+ type: EVENT_TYPE;
341
+ environment: string;
342
+ businessType: VOTE_TYPE;
343
+ }
344
+ /**
345
+ * 云会议室属性
346
+ *
347
+ * @property { boolean } enableContentLive - 是否开启了多路共享
348
+ * @property { boolean} enableContentLiveOnHold - 是否开启了多路共享,且由管理员指定共享
349
+ */
350
+ export interface ConferenceProperties {
351
+ enableContentLive: boolean;
352
+ enableContentLiveOnHold: boolean;
298
353
  }
299
354
  /**
300
355
  * 是否是联席主持人
@@ -320,20 +375,32 @@ export declare enum Host {
320
375
  ON = "on",
321
376
  OFF = "off"
322
377
  }
378
+ /**
379
+ * 是否有改名权限
380
+ *
381
+ * @param ON - 是
382
+ * @param OFF - 否
383
+ */
384
+ export declare enum EnableRename {
385
+ ON = "on",
386
+ OFF = "off"
387
+ }
323
388
  /**
324
389
  * 信令上报的消息
325
390
  *
326
391
  * @property { CoChair } coChair - 是否是联席主持人
327
392
  * @property { Host } host - 是否是主持人
393
+ * @property { EnableRename } enableRename - 是否有改名权限
328
394
  * @property { string } meetingId - 会议ID
329
395
  */
330
396
  export interface NotificationContent {
331
397
  coChair?: CoChair;
332
398
  host?: Host;
399
+ enableRename?: EnableRename;
333
400
  meetingId?: string;
334
401
  }
335
402
  /**
336
- * 信令上报的消息
403
+ * 联席主持人/主持人/改名权限 等消息
337
404
  *
338
405
  * @property { number } subType - 消息类型
339
406
  * @property { NotificationContent } content - 消息详细内容
@@ -344,26 +411,4 @@ export interface Notification {
344
411
  content: NotificationContent;
345
412
  requestId: string;
346
413
  }
347
- /**
348
- * 获取签到文案参数
349
- *
350
- * @property { EVENT_TYPE } type - 业务状态
351
- * @property { string } environment - 语言
352
- * @property { VOTE_TYPE } businessType - 业务类型
353
- */
354
- export interface SignInTextParams {
355
- type: EVENT_TYPE;
356
- environment: string;
357
- businessType: VOTE_TYPE;
358
- }
359
- /**
360
- * 云会议室属性
361
- *
362
- * @property { boolean } enableContentLive - 是否开启了多路共享
363
- * @property { boolean} enableContentLiveOnHold - 是否开启了多路共享,且由管理员指定共享
364
- */
365
- export interface ConferenceProperties {
366
- enableContentLive: boolean;
367
- enableContentLiveOnHold: boolean;
368
- }
369
414
  export {};
@@ -2,7 +2,7 @@
2
2
  * Peer lib types
3
3
  *
4
4
  * Created at : 2023-04-10 18:10:00
5
- * Last modified : 2023-04-17 14:02:34
5
+ * Last modified : 2024-04-23 17:56:52
6
6
  */
7
7
  /**
8
8
  * RTCPeerConnection通道方向
@@ -18,3 +18,67 @@ export declare enum RTCDirection {
18
18
  SENDONLY = "sendonly",
19
19
  SENDRECV = "sendrecv"
20
20
  }
21
+ export declare enum PeerState {
22
+ 'new' = "new",
23
+ 'connecting' = "connecting",
24
+ 'connected' = "connected",
25
+ 'disconnected' = "disconnected",
26
+ 'failed' = "failed",
27
+ 'closed' = "closed",
28
+ 'unknown' = "unknown"
29
+ }
30
+ export declare enum ICEState {
31
+ 'new' = "new",
32
+ 'checking' = "checking",
33
+ 'connected' = "connected",
34
+ 'disconnected' = "disconnected",
35
+ 'completed' = "completed",
36
+ 'failed' = "failed",
37
+ 'closed' = "closed",
38
+ 'unknown' = "unknown"
39
+ }
40
+ export declare enum PeerCallState {
41
+ 'INIT' = "INIT",
42
+ 'CONNECTED' = "CONNECTED",
43
+ 'CONNECTING' = "CONNECTING",
44
+ 'SOCKET_CONNECTING' = "SOCKET_CONNECTING",
45
+ 'DISCONNECTED' = "DISCONNECTED",
46
+ 'RESTART' = "RESTART",
47
+ 'RECONNECTED' = "RECONNECTED",
48
+ 'FAILED' = "FAILED"
49
+ }
50
+ /**
51
+ * 重新创建Peer连接的触发来源
52
+ *
53
+ * @property MEDIA - 来源于迁会消息
54
+ * @property PEER - 来源于Peer连接异常
55
+ * @property INIT - 初始化状态
56
+ */
57
+ export declare enum ReconnectEntry {
58
+ 'MEDIA' = "MEDIA",
59
+ 'PEER' = "PEER",
60
+ 'INIT' = "INIT"
61
+ }
62
+ /**
63
+ * Content Track 实际宽高信息
64
+ * 计算方式:取多路Track宽高面积最小的一路信息
65
+ *
66
+ * @property { number } width - 宽度
67
+ * @property { number } height - 高度
68
+ * @property { number } area - 面积
69
+ */
70
+ export interface PeerTrackSizeInfo {
71
+ width: number;
72
+ height: number;
73
+ area: number;
74
+ }
75
+ /**
76
+ * Candidate节点信息
77
+ *
78
+ * @property { string } host - UDP节点
79
+ * @property { string } port - 端口
80
+ */
81
+ export interface XYCandidateHost {
82
+ host: string;
83
+ port: string;
84
+ }