@xylink/xy-rtc-sdk 3.10.0-beta.4 → 4.0.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.
Files changed (118) hide show
  1. package/README.MD +36 -13
  2. package/lib/action/index.d.ts +61 -45
  3. package/lib/enum/analyser.d.ts +7 -0
  4. package/lib/enum/client.d.ts +8 -2
  5. package/lib/enum/constraints.d.ts +11 -16
  6. package/lib/enum/device.d.ts +0 -6
  7. package/lib/enum/errorCode.d.ts +5 -2
  8. package/lib/enum/index.d.ts +45 -7
  9. package/lib/enum/polling.d.ts +2 -0
  10. package/lib/feature/customMessage/index.d.ts +29 -0
  11. package/lib/feature/edu/index.d.ts +34 -0
  12. package/lib/feature/edu/index.type.d.ts +29 -0
  13. package/lib/feature/index.d.ts +3 -1
  14. package/lib/feature/{speaker.d.ts → speaker/index.d.ts} +29 -9
  15. package/lib/feature/speaker/index.type.d.ts +17 -0
  16. package/lib/index.d.ts +82 -28
  17. package/lib/interface/baseModule.type.d.ts +9 -0
  18. package/lib/interface/clientInterface.type.d.ts +128 -0
  19. package/lib/interface/contentTrackInterface.type.d.ts +15 -0
  20. package/lib/interface/event.type.d.ts +444 -0
  21. package/lib/interface/videoAudioTrackInterface.type.d.ts +17 -0
  22. package/lib/main/ability/const.d.ts +4 -1
  23. package/lib/main/ability/index.d.ts +7 -1
  24. package/lib/main/{auth.d.ts → auth/index.d.ts} +29 -19
  25. package/lib/main/client.d.ts +594 -633
  26. package/lib/main/clientBase.d.ts +40 -0
  27. package/lib/main/clientState.d.ts +56 -0
  28. package/lib/main/{deviceManager.d.ts → device/index.d.ts} +45 -13
  29. package/lib/{type/device.d.ts → main/device/index.type.d.ts} +65 -16
  30. package/lib/main/helper/index.d.ts +118 -0
  31. package/lib/main/helper/index.type.d.ts +12 -0
  32. package/lib/main/layout/index.d.ts +118 -105
  33. package/lib/main/layout/index.type.d.ts +282 -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 +29 -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} +51 -7
  42. package/lib/main/meeting/verify.d.ts +70 -0
  43. package/lib/main/meeting/verify.type.d.ts +12 -0
  44. package/lib/main/peer.d.ts +120 -41
  45. package/lib/main/plugin/index.d.ts +28 -0
  46. package/lib/{tools/quality.d.ts → main/quality/index.d.ts} +2 -2
  47. package/lib/{tools → main/quality}/quality.worker.d.ts +1 -1
  48. package/lib/main/{qualityManager.d.ts → quality/report.d.ts} +11 -5
  49. package/lib/main/render/index.d.ts +116 -0
  50. package/lib/main/render/index.type.d.ts +36 -0
  51. package/lib/main/{videoManager.d.ts → render/videoManager.d.ts} +78 -28
  52. package/lib/main/render/videoManager.type.d.ts +66 -0
  53. package/lib/main/roster/index.d.ts +39 -0
  54. package/lib/main/server/index.d.ts +79 -0
  55. package/lib/main/server/index.type.d.ts +21 -0
  56. package/lib/main/signal/index.d.ts +15 -0
  57. package/lib/main/socket/index.d.ts +95 -0
  58. package/lib/main/stream/index.d.ts +182 -0
  59. package/lib/main/track/baseTrack.d.ts +178 -0
  60. package/lib/main/track/contentTrack.d.ts +168 -0
  61. package/lib/main/track/customContentTrack.d.ts +18 -0
  62. package/lib/main/track/customVideoAudioTrack.d.ts +18 -0
  63. package/lib/main/track/helper.d.ts +65 -0
  64. package/lib/main/track/videoAudioCapture.d.ts +90 -0
  65. package/lib/main/track/videoAudioTrack.d.ts +273 -0
  66. package/lib/main/vom/index.d.ts +44 -0
  67. package/lib/main/vom/index.type.d.ts +1 -0
  68. package/lib/tools/analyser.d.ts +30 -7
  69. package/lib/tools/analyserManager.d.ts +55 -0
  70. package/lib/tools/dbManager.d.ts +12 -1
  71. package/lib/tools/{browser.d.ts → detectBrowser/index.d.ts} +53 -5
  72. package/lib/tools/detectStream/index.d.ts +84 -0
  73. package/lib/tools/detectStream/index.type.d.ts +56 -0
  74. package/lib/tools/detectTool/index.d.ts +191 -0
  75. package/lib/tools/detectTool/index.type.d.ts +51 -0
  76. package/lib/tools/emitter.d.ts +27 -6
  77. package/lib/tools/enum.d.ts +1 -1
  78. package/lib/tools/httpClient.d.ts +5 -1
  79. package/lib/tools/i18n.d.ts +1 -1
  80. package/lib/tools/index.d.ts +1 -8
  81. package/lib/tools/log/logger.d.ts +44 -24
  82. package/lib/tools/log/logger.worker.d.ts +1 -1
  83. package/lib/tools/log/loggerManager.d.ts +3 -2
  84. package/lib/tools/pressure/index.d.ts +33 -0
  85. package/lib/tools/pressure/index.type.d.ts +22 -0
  86. package/lib/tools/promiseQueue.d.ts +6 -0
  87. package/lib/tools/regex.d.ts +4 -0
  88. package/lib/tools/resize.d.ts +3 -0
  89. package/lib/tools/snapshot.d.ts +1 -1
  90. package/lib/tools/socket.d.ts +12 -2
  91. package/lib/tools/template/index.d.ts +11 -88
  92. package/lib/tools/template/mobile.d.ts +1 -1
  93. package/lib/tools/template/polling.d.ts +8 -0
  94. package/lib/tools/utils.d.ts +25 -16
  95. package/lib/tools/verify.d.ts +7 -0
  96. package/lib/type/ability.d.ts +1 -1
  97. package/lib/type/analyser.d.ts +26 -1
  98. package/lib/type/auth.d.ts +22 -22
  99. package/lib/type/base.d.ts +36 -32
  100. package/lib/type/capture.d.ts +9 -0
  101. package/lib/type/client.d.ts +379 -498
  102. package/lib/type/index.d.ts +25 -2
  103. package/lib/type/layout.d.ts +84 -47
  104. package/lib/type/logger.d.ts +19 -12
  105. package/lib/type/meeting.d.ts +89 -68
  106. package/lib/type/peer.d.ts +65 -1
  107. package/lib/type/polling.d.ts +194 -0
  108. package/lib/type/quality.d.ts +16 -6
  109. package/lib/type/socket.d.ts +0 -18
  110. package/lib/type/stream.d.ts +138 -108
  111. package/lib/type/track.d.ts +139 -0
  112. package/lib/xyrtc.cjs.js +1 -1
  113. package/lib/xyrtc.umd.js +1 -1
  114. package/package.json +13 -10
  115. package/lib/main/clientImplements.d.ts +0 -99
  116. package/lib/main/helper.d.ts +0 -104
  117. package/lib/main/stream.d.ts +0 -418
  118. package/lib/tools/detect.d.ts +0 -44
@@ -8,13 +8,36 @@
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/meeting/verify.type';
26
+ export * from '../main/server/index.type';
27
+ export * from '../main/media/index.type';
28
+ export * from '../main/media/index.type';
29
+ export * from '../main/render/index.type';
30
+ export * from '../main/render/videoManager.type';
31
+ export * from '../main/layout/index.type';
32
+ export * from '../main/device/index.type';
33
+ export * from '../main/helper/index.type';
34
+ export * from '../interface/baseModule.type';
35
+ export * from '../interface/clientInterface.type';
36
+ export * from '../interface/event.type';
37
+ export * from '../interface/contentTrackInterface.type';
38
+ export * from '../interface/videoAudioTrackInterface.type';
39
+ export * from '../tools/detectStream/index.type';
40
+ export * from '../tools/detectTool/index.type';
41
+ export * from '../feature/edu/index.type';
42
+ export * from '../feature/speaker/index.type';
43
+ export * from '../tools/resize';
@@ -1,23 +1,14 @@
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
- }
9
+ export type TLayoutMap = Map<string, ILayout[]>;
15
10
  /**
16
- * Layout map
17
- */
18
- export type TLayoutMap = Map<string, ILayout>;
19
- /**
20
- * 模版类型
11
+ * 布局模式类型
21
12
  */
22
13
  export type IMode = `${TemplateMode | ContentTemplateMode}`;
23
14
  /**
@@ -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,26 +114,28 @@ 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;
159
136
  }
160
137
  /**
161
- * Layout 移动端布局方向
138
+ * 移动端布局方向
162
139
  *
163
140
  * @param NONE -1 - 默认布局(PC)
164
141
  * @param MOBILE_HORIZONTAL 0 - 移动端横屏布局
@@ -170,14 +147,52 @@ export declare enum LayoutOrientationType {
170
147
  MOBILE_VERTICAL = 1
171
148
  }
172
149
  /**
173
- * 指定的主画面的信息
150
+ * 焦点画面来源
174
151
  *
175
- * @property { string } id - 指定的主画面的LayoutId
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
+ * 焦点画面参数
163
+ *
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 NONE '' - 默认:主会场模式
189
+ * @param MAIN_VENUE mainVenue - 主会场模式
190
+ * @param FOCUS_MODE focusMode - 焦点模式
191
+ */
192
+ export declare enum ChairManReason {
193
+ NONE = "",
194
+ MAIN_VENUE = "mainVenue",
195
+ FOCUS_MODE = "focusMode"
181
196
  }
182
197
  /**
183
198
  * RosterId 分割信息
@@ -189,17 +204,39 @@ export interface IRosterIdInfo {
189
204
  endpointId: string;
190
205
  mediagroupId: string;
191
206
  }
207
+ export interface Template {
208
+ [key: string]: {
209
+ rate: number | undefined;
210
+ temp: any;
211
+ };
212
+ }
213
+ export interface TemplateItem {
214
+ position: number[];
215
+ resolution: {
216
+ normal: StreamResolutionLevel;
217
+ low?: StreamResolutionLevel;
218
+ high?: StreamResolutionLevel;
219
+ };
220
+ type: TemplateType;
221
+ quality: VideoQuality;
222
+ }
192
223
  /**
193
- * 计算Video元素旋转样式
224
+ * Layout状态,当前仅支持上报轮询多画面状态
194
225
  *
195
- * @property { string } transform - Video元素选转角度:rotateZ(${n}deg)
196
- * @property { string } width - Video元素的宽:${n}px
197
- * @property { string } height - Video元素的高:${n}px
226
+ * @property { boolean } isPolling - 是否增在轮询中,true代表正在轮询中,false代表结束/暂停轮询状态
198
227
  */
199
- export interface IRotateStyle {
200
- transform?: string;
201
- width?: string;
202
- height?: string;
228
+ export interface LayoutState {
229
+ isPolling: boolean;
230
+ }
231
+ /**
232
+ * RosterId 分割信息
233
+ *
234
+ * @property { string } endpointId - 参会者callUri字段
235
+ * @property { string } mediagroupId - 多分组ID
236
+ */
237
+ export interface IRosterIdInfo {
238
+ endpointId: string;
239
+ mediagroupId: string;
203
240
  }
204
241
  /**
205
242
  * 需要管理员广播才能收看内容共享
@@ -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;
@@ -41,10 +59,10 @@ export interface IConfCallInfo {
41
59
  * 个人云会议室信息
42
60
  * 默认只保存了部分信息
43
61
  *
44
- * @property { string } meetingControlPassword 会控密码
45
- * @property { string } meetingNumber 个人云会议室号码
46
- * @property { string } password 入会密码
47
- * @property { string? } isMeetingOwner 是否是会议室Owner
62
+ * @property { string } meetingControlPassword - 会控密码
63
+ * @property { string } meetingNumber - 个人云会议室号码
64
+ * @property { string } password - 入会密码
65
+ * @property { string? } isMeetingOwner - 是否是会议室Owner
48
66
  */
49
67
  export interface ICloudRoomConfig {
50
68
  meetingControlPassword: string;
@@ -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
  * 媒体能力配置 请求参数
@@ -195,19 +227,7 @@ export interface ControlPasswordResult {
195
227
  data: string;
196
228
  }
197
229
  /**
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
- /**
210
- * 业务状态
230
+ * 签到/投票业务状态
211
231
  *
212
232
  * @param { VOTE_SIGNATURE_START } VOTE_SIGNATURE_START - 开始签到
213
233
  * @param { VOTE_SIGNATURE_STOP } VOTE_SIGNATURE_STOP - 签到结束
@@ -286,15 +306,26 @@ export interface InteractiveToolInfo {
286
306
  copywriting?: CopyWriting;
287
307
  }
288
308
  /**
289
- * 会控互动工具相关数据, 签到等
309
+ * 获取签到文案参数
310
+ *
311
+ * @property { EVENT_TYPE } type - 业务状态
312
+ * @property { string } environment - 语言
313
+ * @property { VOTE_TYPE } businessType - 业务类型
290
314
  */
291
- export interface OriginalRealTimeNotification {
292
- count: number;
293
- events: {
294
- content: string;
295
- type: EVENT_TYPE;
296
- action: EVENT_TYPE;
297
- }[];
315
+ export interface SignInTextParams {
316
+ type: EVENT_TYPE;
317
+ environment: string;
318
+ businessType: VOTE_TYPE;
319
+ }
320
+ /**
321
+ * 云会议室属性
322
+ *
323
+ * @property { boolean } enableContentLive - 是否开启了多路共享
324
+ * @property { boolean} enableContentLiveOnHold - 是否开启了多路共享,且由管理员指定共享
325
+ */
326
+ export interface ConferenceProperties {
327
+ enableContentLive: boolean;
328
+ enableContentLiveOnHold: boolean;
298
329
  }
299
330
  /**
300
331
  * 是否是联席主持人
@@ -320,50 +351,40 @@ export declare enum Host {
320
351
  ON = "on",
321
352
  OFF = "off"
322
353
  }
354
+ /**
355
+ * 是否有改名权限
356
+ *
357
+ * @param ON - 是
358
+ * @param OFF - 否
359
+ */
360
+ export declare enum EnableRename {
361
+ ON = "on",
362
+ OFF = "off"
363
+ }
323
364
  /**
324
365
  * 信令上报的消息
325
366
  *
326
- * @property { CoChair } coChair - 是否是联席主持人
327
- * @property { Host } host - 是否是主持人
328
- * @property { string } meetingId - 会议ID
367
+ * @property { CoChair } coChair - 可选,是否是联席主持人
368
+ * @property { Host } host - 可选,是否是主持人
369
+ * @property { EnableRename } enableRename - 可选,是否有改名权限
370
+ * @property { string } meetingId - 可选,会议ID
329
371
  */
330
- export interface NotificationContent {
372
+ export interface XYNotificationContent {
331
373
  coChair?: CoChair;
332
374
  host?: Host;
375
+ enableRename?: EnableRename;
333
376
  meetingId?: string;
334
377
  }
335
378
  /**
336
- * 信令上报的消息
379
+ * 联席主持人/主持人/改名权限 等消息
337
380
  *
338
381
  * @property { number } subType - 消息类型
339
- * @property { NotificationContent } content - 消息详细内容
382
+ * @property { XYNotificationContent } content - 消息详细内容
340
383
  * @property { string } requestId - 消息ID
341
384
  */
342
- export interface Notification {
385
+ export interface XYNotification {
343
386
  subType: number;
344
- content: NotificationContent;
387
+ content: XYNotificationContent;
345
388
  requestId: string;
346
389
  }
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
390
  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
+ }