@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
@@ -1,10 +1,9 @@
1
1
  import { IToken } from './base';
2
- import VideoManager from '../main/videoManager';
3
- import { IInternals, StreamResolutionLevel, VideoQuality } from './stream';
4
- import { SupportLocalLanguages } from '../enum';
5
- import { ConferenceProperties, ICloudRoomConfig } from './meeting';
6
- import { ContentTemplateMode, ExternalTemplateConfig, IRotateStyle, LayoutAvatarType, TemplateMode } from './layout';
7
- import { AudioAnalyser } from '../tools/analyser';
2
+ import { IInternals, StreamFrameRate, StreamResolution, StreamResolutionLevel, VideoQuality } from './stream';
3
+ import { SupportLocalLanguages } from '../enum/index';
4
+ import { ConferenceProperties, ICloudRoomConfig, WatermarkRange } from './meeting';
5
+ import { ContentTemplateMode, TemplateMode, ChairManReason } from './layout';
6
+ import { ILayout, IRoster } from './index';
8
7
  /**
9
8
  * 向Client推送流类型
10
9
  *
@@ -34,37 +33,29 @@ export declare enum PushType {
34
33
  * 画面布局模式
35
34
  *
36
35
  * @param AUTO 自动布局,按照宫格/演讲者布局模式返回画面数据
37
- * @param CUSTOM 自定义布局,第三方自由控制人员数量,分辨率,大小,位置
36
+ * @param CUSTOM 自定义布局,上报基础数据,业务自行处理参会者请流,位置和尺寸计算
38
37
  */
39
38
  export type IClientLayout = 'AUTO' | 'CUSTOM' | 'auto' | 'custom';
40
39
  /**
41
40
  * 分享Content内容的状态
42
41
  *
43
- * @param ENDED ENDED - 已结束
44
- * @param STARTING STARTING - 分享中
45
- * @param PENDING PENDING - 等待
42
+ * @param INIT - 未开始
43
+ * @param CAPTURE - 采集中
44
+ * @param PENDING - 等待信令状态
45
+ * @param STARTING - 分享中
46
+ * @param SWITCHING - 切换新的分享中
47
+ * @param PAUSE - 暂停中
48
+ * @param ENDED - 已结束
46
49
  */
47
50
  export declare enum ShareContentStatus {
48
- 'ENDED' = "ENDED",
51
+ 'INIT' = "INIT",
52
+ 'CAPTURE' = "CAPTURE",
53
+ 'PENDING' = "PENDING",
49
54
  'STARTING' = "STARTING",
50
- 'PENDING' = "PENDING"
55
+ 'SWITCHING' = "SWITCHING",
56
+ 'PAUSE' = "PAUSE",
57
+ 'ENDED' = "ENDED"
51
58
  }
52
- /**
53
- * VIDEO事件回调状态状态
54
- *
55
- * @param LOAD_START - 开始加载视频流
56
- * @param CANPLAY - 可以播放
57
- * @param ERROR - 错误
58
- */
59
- export type IVideoLoadStatus = 'LOAD_START' | 'CANPLAY' | 'ERROR';
60
- /**
61
- * 视频画面状态
62
- *
63
- * @param CANPLAY 正常播放
64
- * @param ENDED 已结束
65
- * @param REQUEST 视频请求中
66
- */
67
- export type IVideoManagerState = '' | 'CANPLAY' | 'ENDED' | 'REQUEST';
68
59
  /**
69
60
  * 客户端状态
70
61
  *
@@ -100,10 +91,10 @@ export type IVideoAudioType = 'muteAudio' | 'muteVideo' | 'unmuteAudio' | 'unmut
100
91
  /**
101
92
  * 视频/音频操作状态
102
93
  *
103
- * @param MUTE_AUDIO: muteAudio 关闭麦克风
104
- * @param UNMUTE_AUDIO: unmuteAudio 开启麦克风
105
- * @param MUTE_VIDEO: muteVideo 关闭摄像头
106
- * @param UNMUTE_VIDEO: unmuteVideo 开启摄像头
94
+ * @param MUTE_AUDIO: muteAudio - 关闭麦克风
95
+ * @param UNMUTE_AUDIO: unmuteAudio - 开启麦克风
96
+ * @param MUTE_VIDEO: muteVideo - 关闭摄像头
97
+ * @param UNMUTE_VIDEO: unmuteVideo - 开启摄像头
107
98
  */
108
99
  export declare enum OperateType {
109
100
  MUTE_AUDIO = "muteAudio",
@@ -119,18 +110,6 @@ export declare enum OperateType {
119
110
  */
120
111
  export type IMediagroupid = 0 | 1;
121
112
  export type IVideoAudioMessageType = 'AUDIO_MUTE' | 'VIDEO_MUTE' | 'AUDIO_UN_MUTE' | 'VIDEO_UN_MUTE';
122
- /**
123
- * 布局画面状态
124
- *
125
- * @param MUTE 视频暂停
126
- * @param REQUEST 视频请求中
127
- * @param NORMAL 视频正常
128
- * @param INVALID 设备不可用
129
- * @param AUDIO_TEL 电话入会
130
- * @param AUDIO_ONLY 仅音频入会模式
131
- * @param AUDIO_CONTENT 仅音频共享
132
- */
133
- export type ILayoutState = 'MUTE' | 'REQUEST' | 'NORMAL' | 'INVALID' | 'AUDIO_TEL' | 'AUDIO_ONLY' | 'AUDIO_CONTENT';
134
113
  /**
135
114
  * 分享content类型
136
115
  *
@@ -146,24 +125,7 @@ export declare enum ContentMode {
146
125
  'BOTH' = "BOTH"
147
126
  }
148
127
  /**
149
- * 埋点数据上报类型
150
- *
151
- * @param click 点击
152
- * @param msgCallback 消息回调
153
- * @param server server消息
154
- * @param trigger 触发事件类型
155
- */
156
- export type TStateAction = 'click' | 'msgCallback' | 'server' | 'trigger';
157
- /**
158
- * 埋点数据上报
159
- */
160
- export type TCategory = 'sta-confStatus' | 'oper-confOperation' | 'sta-msgCallback' | 'oper-setting';
161
- /**
162
- * 事件名称
163
- */
164
- export type TEventName = 'callIn' | 'layout' | 'content' | 'audioMute' | 'audioUnmute' | 'videoMute' | 'videoUnmute' | 'subtitle' | string;
165
- /**
166
- * 轮询多画面状态
128
+ * 媒体轮询多画面状态
167
129
  *
168
130
  * @param 0 开始
169
131
  * @param 1 停止
@@ -171,18 +133,28 @@ export type TEventName = 'callIn' | 'layout' | 'content' | 'audioMute' | 'audioU
171
133
  * @param 3 恢复
172
134
  */
173
135
  export type TCommand = 0 | 1 | 2 | 3;
174
- /**
175
- * 设备类型
176
- */
177
- type IDeviceType = 'webrtc' | 'soft' | 'hard' | 'nemono' | 'virtualnemo' | 'nemo' | 'tvbox' | 'h323' | 'record' | 'bruce' | 'tel' | 'pstngw' | 'desk';
178
136
  /**
179
137
  * 是否禁止收听
180
138
  *
181
- * @param 'keep' 保持上次的状态
182
- * @param 'on' 禁止收听
183
- * @param 'off' 取消禁止收听
139
+ * @param keep - 保持上次的状态
140
+ * @param on - 禁止收听
141
+ * @param off - 取消禁止收听
184
142
  */
185
143
  export type IMuteSpeaker = 'keep' | 'on' | 'off';
144
+ /**
145
+ * 全局会议状态
146
+ *
147
+ * @param UNKNOWN - 初始状态
148
+ * @param CONNECTING - 连接中状态
149
+ * @param ENDED - 结束状态
150
+ * @param CONNECTED - 连接成功状态
151
+ */
152
+ export declare enum MeetingState {
153
+ UNKNOWN = "UNKNOWN",
154
+ CONNECTING = "CONNECTING",
155
+ ENDED = "ENDED",
156
+ CONNECTED = "CONNECTED"
157
+ }
186
158
  /**
187
159
  * 画面布局模式
188
160
  *
@@ -222,7 +194,7 @@ export declare enum RecordStatus {
222
194
  REMOTE_PAUSED = 3
223
195
  }
224
196
  /**
225
- * 手机相机方向
197
+ * 摄像头方向
226
198
  *
227
199
  * @param FRONT - 前置摄像头
228
200
  * @param BACK - 后置摄像头
@@ -232,44 +204,49 @@ export declare enum FacingMode {
232
204
  BACK = "BACK"
233
205
  }
234
206
  /**
235
- * 手机相机方向
207
+ * 摄像头方向
236
208
  *
237
209
  * @property 'FRONT' - 前置摄像头
238
210
  * @property 'BACK' - 后置摄像头
239
211
  */
240
212
  export type IFacingMode = keyof typeof FacingMode;
241
213
  /**
242
- * client配置参数
243
- *
244
- * @property { string } clientId 必填 | "" | 网关校验id(clientId),需要从对接人处获取
245
- * @property { string } clientSecret 必填 | "" | 网关密钥,需要从对接人处获取
246
- * @property { string } extId 非必填 企业ID
247
- * @property { string } server 非必填 服务地址, IP/域名 + 端口,如: cloudapi.xylink.com
248
- * @property { IClientLayout } layout 非必填 | AUTO | 布局模式,可选:AUTO | CUSTOM
249
- * @property { { offset?: number[]; elementId?: string } } container 非必填 | {} | 配置layout container容器节点和偏移量
250
- * @property { number[] } container.offset 非必填 | [] | 配置[上 下 左 右]的偏移量,自动布局适用
251
- * @property { string } container.elementId 非必填 | "" | 配置Layout需要包裹在elementId元素里面显示,并使用此元素的信息计算 Layout 的 size和 position
252
- * @property { boolean } isThird 埋点
253
- * @property { boolean } isSupportHybridCloud 是否是混合云,默认公有云。 如果有探测到内网地址,则此值为true,将不进行鉴权。
214
+ * 布局容器节点和偏移量
254
215
  *
255
- * @property { boolean } debug 非必填 | false | 是否接收所有参会者音视频状态数据,默认不发送
256
- * @property { boolean } localHide 非必填 | false | 是否在页面上隐藏Local画面,默认不隐藏
257
- * @property { boolean } localMirror 非必填 | true | 是否需要镜像Local画面,默认镜像Local
216
+ * @property { string } elementId - 可选,容器节点,布局需要包裹在此容器节点元素里面显示,并使用此元素的信息计算布局的尺寸和位置
217
+ * @property { number[] } offset - 可选,自动布局容器偏移量, [上 下 左 右],单位:px
218
+ */
219
+ export interface XYClientContainer {
220
+ elementId?: string;
221
+ offset?: number[];
222
+ }
223
+ /**
224
+ * client配置参数
258
225
  *
226
+ * @property { string } clientId - 必填,网关校验id
227
+ * @property { string } clientSecret - 必填,网关密钥
228
+ * @property { string } extId - 必填,企业ID
229
+ * @property { string } server - 可选,服务器地址, IP/域名 + 端口(可选),如: cloudapi.xylink.com:443
230
+ * @property { IClientLayout } layout - 可选,布局模式,默认值是:AUTO
231
+ * @property { XYClientContainer } container - 可选,配置布局容器节点和偏移量
232
+ * @property { boolean } isSupportHybridCloud - 可选,标识是否是混合云环境,默认值是false,代表不是混合云环境
233
+ * @property { boolean } debug - 可选,是否接收所有参会者音视频状态数据,默认值是false,代表关闭调试模式
234
+ * @property { boolean } checkSSL - 可选,是否需要检测SSL,默认值是true,代表启用检测SSL协议
235
+ * @property { any[] } plugin - 可选,注册AI视频流插件,支持管道流方式多次接入
236
+ * @property { boolean } isThird - 可选,忽略参数,默认是true
259
237
  */
260
238
  export interface IClientConfig {
261
239
  clientId: string;
262
- clientSecret?: string;
263
- extId?: string;
240
+ clientSecret: string;
241
+ extId: string;
264
242
  server?: string;
265
243
  layout?: IClientLayout;
266
- container?: {
267
- offset?: number[];
268
- elementId?: string;
269
- };
244
+ container?: XYClientContainer;
270
245
  isThird?: boolean;
271
246
  isSupportHybridCloud?: boolean;
272
247
  debug?: boolean;
248
+ checkSSL?: boolean;
249
+ plugin?: any[];
273
250
  }
274
251
  export interface ILayoutParams {
275
252
  rosters: IRoster[];
@@ -280,6 +257,14 @@ export interface ILayoutParams {
280
257
  contentSenderPid: number;
281
258
  localHide: boolean;
282
259
  }
260
+ /**
261
+ * 本地麦克风或摄像头实时状态
262
+ *
263
+ * @param { OperateType } status - 设备状态
264
+ */
265
+ export interface XYMeetingDeviceStatus {
266
+ status: OperateType;
267
+ }
283
268
  /**
284
269
  * @enum 默认常量列表
285
270
  */
@@ -323,15 +308,14 @@ export interface IDefault {
323
308
  /**
324
309
  * SDK登录用户信息
325
310
  *
326
- * @property { string? } callUri 用户类型ID
327
- * @property { string } securityKey 安全码
328
- * @property { string } access_token Token
329
- * @property { string } refresh_token 刷新Token
330
- * @property { number } id 用户ID
331
- * @property { string } displayName 登录用户名
332
- * @property { string } cellPhone 呼叫号码
333
- * @property { string } extUserId 第三方用户ID
334
- * @property { string } enterpriseId 企业ID
311
+ * @property { string? } callUri - 用户类型ID
312
+ * @property { string } securityKey - 安全码
313
+ * @property { IToken } token - Token
314
+ * @property { number } id - 用户ID
315
+ * @property { string } displayName - 登录用户名
316
+ * @property { string } cellPhone - 呼叫号码
317
+ * @property { string } extUserId - 第三方用户ID
318
+ * @property { string } enterpriseId - 企业ID
335
319
  */
336
320
  export interface ILoginInfo {
337
321
  callUri?: string;
@@ -366,12 +350,12 @@ export type IOPERATE_MAP = {
366
350
  /**
367
351
  * 配置画面数据
368
352
  *
369
- * @property { string } calluri 设备url
370
- * @property { StreamResolutionLevel } resolution 分辨率
371
- * @property { VideoQuality } quality 质量
372
- * @property { number } mediagroupid 0:people画面,1:content共享画面
373
- * @property { boolean } isContent 是否是共享内容,NewLayout版本无此参数,使用mediagroupid配置参数;
374
- * @property { string } callUri NewLayout版本无此参数
353
+ * @property { string } calluri - 可选,默认给""值,设备URI字段​​​​,如果未指定则按照优先级自动填充画面
354
+ * @property { StreamResolutionLevel } resolution - 必填,指定画面分辨率
355
+ * @property { VideoQuality } quality - 必填,指定视频质量,建议people画面使用0或者1,content画面使用2
356
+ * @property { number } mediagroupid - 必填,指定设备的类型,可选:0|1,0代表people画面,1代表content共享画面
357
+ * @property { boolean } isContent - 可选,忽略此参数,是否是共享内容,NewLayout版本无此参数,使用mediagroupid配置参数
358
+ * @property { string } callUri - 可选,忽略此参数,NewLayout版本无此参数
375
359
  */
376
360
  export type IReqInfo = {
377
361
  calluri: string;
@@ -388,11 +372,11 @@ export interface IMeetingInfo {
388
372
  remoteUri: string;
389
373
  }
390
374
  /**
391
- * 调度失败的uri列表项目
375
+ * 调度uri列表项目
392
376
  *
393
- * @property { string } uri 设备calluri
394
- * @property { string } status 状态
395
- * @property { string } message 消息
377
+ * @property { string } uri - 设备calluri
378
+ * @property { string } status - 状态
379
+ * @property { string } message - 消息
396
380
  */
397
381
  export interface IFailUriItem {
398
382
  uri: string;
@@ -406,19 +390,27 @@ export interface IMonitorReportMessage {
406
390
  callIndex: number;
407
391
  callerUri: string;
408
392
  code: string;
409
- monitorInfo: {
410
- uriList: IFailUriItem[];
411
- failUriList: IFailUriItem[];
412
- };
393
+ monitorInfo: IMonitorReport;
413
394
  type: 'MONITOR_STATE_REPORT';
414
395
  }
415
396
  /**
416
397
  * 调度成功和失败的设备列表数据
398
+ *
399
+ * @param { IFailUriItem[] } uriList - 调度成功的设备列表
400
+ * @param { IFailUriItem[] } failUriList - 调度失败的设备列表
417
401
  */
418
402
  export interface IMonitorReport {
419
403
  uriList: IFailUriItem[];
420
404
  failUriList: IFailUriItem[];
421
405
  }
406
+ /**
407
+ * 调度事件结果数据
408
+ *
409
+ * @param { IMonitorReport } monitorInfo - 调度结果数据
410
+ */
411
+ export interface XYMonitorEvent {
412
+ monitorInfo: IMonitorReport;
413
+ }
422
414
  /**
423
415
  * 出入会通知
424
416
  *
@@ -436,9 +428,9 @@ export interface IOriginalReminder {
436
428
  /**
437
429
  * 对外出入会通知消息
438
430
  *
439
- * @property { string } displayName 参会者名称
440
- * @property { 'in' | 'out' } action 参会者动作
441
- * @property { string } userId 参会者userId
431
+ * @property { string } displayName - 参会者名称
432
+ * @property { 'in' | 'out' } action - 参会者动作,可选:'in' | 'out',in代表加入会议,out代表离开会议
433
+ * @property { string } userId - 参会者userId
442
434
  */
443
435
  export interface IReminder {
444
436
  displayName: string;
@@ -467,27 +459,43 @@ export interface LoginTokenInfo extends IToken {
467
459
  /**
468
460
  * 会议室配置信息
469
461
  *
470
- * @property { string } watermarkContent 共享时叠加水印内容
462
+ * @property { string } watermarkContent - 叠加水印内容
463
+ * @property { WatermarkRange } watermarkRange - 水印范围,共享、全局
471
464
  */
472
465
  export interface IConfAuxProperties {
473
466
  watermarkContent: string;
467
+ watermarkRange: WatermarkRange;
468
+ }
469
+ /**
470
+ * 会控相关信息
471
+ *
472
+ * @param { boolean } isHost - 是否是主持人
473
+ * @param { boolean } noCtrPwd - 是否无会控密码
474
+ * @param { boolean } isBigConf - 是否是分级会议
475
+ */
476
+ export interface XYMeetingControl {
477
+ isHost?: boolean;
478
+ isBigConf?: boolean;
479
+ noCtrPwd?: boolean;
474
480
  }
475
481
  /**
476
482
  * 会议号信息
477
483
  *
478
- * @property { string } callNumber 最终进入的真实会议号
479
- * @property { string } callUrl 呼叫号码真实url
480
- * @property { string } deviceId 号码id
481
- * @property { string } deviceType 号码类型
482
- * @property { string } displayName 云会议号名称
483
- * @property { string } number 呼叫的号码
484
- * @property { string } numberType 会议号类型
485
- * @property { IConfAuxProperties } confAuxProperties 会议配置
486
- * @property { string } avatar 头像
487
- * @property { InviteInfo } inviteInfo 会议分享信息,包含会议邀请链接、电话,WebRTC、终端等端的入会方式;
488
- * @property { string } meetingId 当前会议ID
489
- * @property { string } config 会议室配置
490
- * @property { string } displayConfig 可见性配置
484
+ * @property { string } callNumber - 最终进入的真实会议号
485
+ * @property { string } callUrl - 呼叫号码真实url
486
+ * @property { string } deviceId - 号码id
487
+ * @property { string } deviceType - 号码类型
488
+ * @property { string } displayName - 云会议号名称
489
+ * @property { string } number - 呼叫的号码
490
+ * @property { string } numberType - 会议号类型
491
+ * @property { IConfAuxProperties } confAuxProperties - 会议配置
492
+ * @property { string } avatar - 头像
493
+ * @property { InviteInfo } inviteInfo - 会议分享信息,包含会议邀请链接、电话,WebRTC、终端等端的入会方式;
494
+ * @property { string } meetingId - 当前会议ID
495
+ * @property { string } config - 会议室配置
496
+ * @property { string } displayConfig - 可见性配置
497
+ * @property { string } mpvc - 点对点呼叫会议号
498
+ * @property { XYMeetingControl } meetingControl - 会控信息
491
499
  */
492
500
  export interface IConferenceInfo extends Partial<ConferenceProperties> {
493
501
  callNumber?: string;
@@ -504,6 +512,8 @@ export interface IConferenceInfo extends Partial<ConferenceProperties> {
504
512
  displayNum?: string;
505
513
  config?: IConferenceConfig;
506
514
  displayConfig?: IConferenceDisplayConfig;
515
+ mpvc?: string;
516
+ meetingControl?: XYMeetingControl;
507
517
  }
508
518
  /**
509
519
  * 会议室配置
@@ -524,7 +534,7 @@ export interface IConferenceDisplayConfig {
524
534
  subtitle?: boolean;
525
535
  }
526
536
  /**
527
- * 会议分享信息
537
+ * 会议邀请信息
528
538
  *
529
539
  * @property { string } displayName - 会议室名称
530
540
  * @property { boolean } inEnterprise - 所属会议号是否在企业中
@@ -565,19 +575,17 @@ export interface InviteInfo {
565
575
  webrtcUrl: string;
566
576
  }
567
577
  /**
568
- * 呼叫参数
578
+ * 加入会议配置参数
569
579
  *
570
- * @property { string } token 网关token
571
- * @property { string } confNumber 云会议号/终端号/手机号
572
- * @property { string? } password 入会密码,没有则为空
573
- * @property { string? } displayName 入会显示昵称
574
- * @property { boolean } muteAudio 非必填 | false | 是否开启/关闭麦克风入会,默认是false,开启麦克风
575
- * @property { boolean } muteVideo 非必填 | false | 是否开启/关闭摄像头入会,默认是false,开启摄像头
576
- * @property { number | string } __hideId 是否是隐身入会模式,默认为空值,代表正常非隐身模式
577
- * @property { string } __monitorMode 是否是巡课模式,默认是'',MONITOR代表巡课模式
580
+ * @property { string } confNumber - 必填,云会议号/终端号/手机号
581
+ * @property { string? } password - 可选,入会密码,没有则为空
582
+ * @property { string? } displayName - 可选,入会昵称,默认使用登录账号的用户名
583
+ * @property { boolean } muteAudio - 可选,是否开启/关闭麦克风入会,默认值是false,开启麦克风
584
+ * @property { boolean } muteVideo - 可选,是否开启/关闭摄像头入会,默认值是false,开启摄像头
585
+ * @property { number | string } __hideId - 可选,是否是隐身入会模式,默认值是空值,代表正常非隐身模式,需要开通权限后才能使用隐身模式
586
+ * @property { string } __monitorMode - 可选,是否是巡课模式,默认值是空字符,MONITOR代表巡课模式
578
587
  */
579
- export interface IMackCall {
580
- token: string;
588
+ export interface IMakeCall {
581
589
  confNumber: string;
582
590
  password?: string;
583
591
  displayName?: string;
@@ -589,10 +597,10 @@ export interface IMackCall {
589
597
  /**
590
598
  * 呼叫的会议信息
591
599
  *
592
- * @extends IMackCall
600
+ * @extends IMakeCall
593
601
  * @property { IConferenceInfo } meeting 会议号信息
594
602
  */
595
- export interface ICall extends IMackCall {
603
+ export interface ICall extends IMakeCall {
596
604
  meeting?: IConferenceInfo;
597
605
  }
598
606
  /**
@@ -620,29 +628,42 @@ export interface IInvite {
620
628
  /**
621
629
  * 分组会议信息
622
630
  *
623
- * @property { boolean } groupLeader 是否设置本终端为管理员 true:设置, false:取消
624
- * @property { string } groupName 此名称显示至用户界面
625
- * @property { number } groupType 是否进入讨论组 1:进入,0:退出
631
+ * @property { boolean } groupLeader - 是否设置本终端为管理员 true:设置, false:取消
632
+ * @property { string } groupName - 此名称显示至用户界面
633
+ * @property { number } groupType - 是否进入讨论组 1:进入,0:退出
626
634
  */
627
635
  export interface IGroupInfo {
628
636
  groupLeader: boolean;
629
637
  groupName: string;
630
638
  groupType: number;
631
639
  }
640
+ /**
641
+ * 会议模式
642
+ *
643
+ * @param DIALOG - 对话模式
644
+ * @param NORMAL - 非对话模式
645
+ */
646
+ export declare enum ConferenceMode {
647
+ DIALOG = "dialog",
648
+ NORMAL = "normal"
649
+ }
632
650
  /**
633
651
  * 会控回调信息
634
652
  *
635
- * @property { number } callIndex 会议消息索引值
636
- * @property { string } callerUri 呼叫者calluri
637
- * @property { string } chairmanUri 主会场calluri
638
- * @property { boolean } contentIsDisabled 是否禁用分享content
639
- * @property { boolean } disableMute 是否强制静音
640
- * @property { string } muteOperation 音频状态
641
- * @property { string } role 未知
642
- * @property { string } type 未知
643
- * @property { string } commonJson 会控修改名称等
644
- * @property { IMuteSpeaker } isMuteSpeaker 禁止收听
645
- * @property { boolean } recordIsDisabled 录制权限
653
+ * @property { number } callIndex - 会议消息索引值
654
+ * @property { string } callerUri - 呼叫者calluri
655
+ * @property { string } chairmanUri - 主会场calluri
656
+ * @property { boolean } contentIsDisabled - 是否禁用分享content
657
+ * @property { boolean } disableMute - 是否强制静音
658
+ * @property { string } muteOperation - 音频状态
659
+ * @property { string } role - 未知
660
+ * @property { string } type - 未知
661
+ * @property { string } commonJson - 会控修改名称等
662
+ * @property { IMuteSpeaker } isMuteSpeaker - 禁止收听
663
+ * @property { boolean } recordIsDisabled - 录制权限
664
+ * @property { IGroupInfo[] } groupInfoList - 分组会议信息
665
+ * @property { ConferenceMode } conferenceMode - 会议模式
666
+ * @property { string } customizedLayout - 轮询多画面控制Json字符串
646
667
  */
647
668
  export interface IMeetingControl {
648
669
  callIndex: number;
@@ -657,115 +678,22 @@ export interface IMeetingControl {
657
678
  isMuteSpeaker: IMuteSpeaker;
658
679
  recordIsDisabled: boolean;
659
680
  groupInfoList: IGroupInfo[];
681
+ conferenceMode: ConferenceMode;
682
+ customizedLayout: string;
660
683
  }
661
684
  /**
662
- * Roster:参会者的基本信息,包含基本信息,设备信息,画面信息等
663
- *
664
- * @property { string } id 参会者唯一ID
665
- * @property { IDeviceType } deviceType 设备类型
666
- * @property { string } endpointId 设备id
667
- * @property { string } displayName 参会者名称
668
- * @property { number } mediagroupid 参会者画面类型,0:people画面,1:共享内容画面
669
- * @property { number } participantId 参会者id
670
- * @property { boolean } audioTxMute 参会者麦克风状态,true:开启,false:关闭
671
- * @property { boolean } videoTxMute 参会者摄像头状态,true:开启,false:关闭
672
- * @property { boolean } isForceFullScreen 参会者是否是主画面
673
- * @property { number } videoMuteReason 视频关闭原因
674
- * @property { boolean } isContent 参会者画面类型,同mediagroupid,true:是共享内容画面,false:people画面
675
- * @property { boolean } isActiveSpeaker 参会者是否是语音激励,即当前会中说话声音最大的一个人
676
- * @property { boolean } isLocal 是否是Local设备
677
- * @property { boolean } audioRxMute ignore
678
- * @property { boolean } videoRxMute ignore
679
- * @property { boolean } onHold ignore
680
- * @property { boolean } isLastAdd ignore
681
- * @property { boolean } isPolling ignore
682
- */
683
- export interface IRoster extends Partial<ILayoutRoster> {
684
- id: string;
685
- deviceType: IDeviceType;
686
- endpointId: string;
687
- displayName: string;
688
- mediagroupid: number;
689
- participantId: number;
690
- audioTxMute: boolean;
691
- videoTxMute: boolean;
692
- audioRxMute: boolean;
693
- videoRxMute: boolean;
694
- videoMuteReason: number;
695
- isForceFullScreen: boolean;
696
- isLastAdd: boolean;
697
- onHold: boolean;
698
- isPolling: boolean;
699
- isContent: boolean;
700
- isActiveSpeaker: boolean;
701
- isLocal?: boolean;
702
- }
703
- /**
704
- * Layout Result布局结果中返回的基础数据
705
- *
706
- * @property { number } participantId 参会者id
707
- * @property { 0 | 1 } mediagroupid 参会者画面类型,0:people画面,1:共享内容画面
708
- * @property { string } remoteType 设备类型
709
- * @property { string } remoteName 参会者名称
710
- * @property { string } videoTrackId 当前参会者画面Track轨道id,用于在 VideoTrackList 中匹配stream数据
711
- * @property { boolean } isAudioMute 参会者麦克风状态,true:开启,false:关闭
712
- * @property { boolean } isVideoMute 参会者摄像头状态,true:开启,false:关闭
713
- * @property { boolean } isActiveSpeaker 参会者是否是语音激励,即当前会中说话声音最大的一个人
714
- * @property { number } LayoutVideoState 参会者画面的状态:请求中,正常,电话入会,视频暂停等
715
- * @property { number } MuteReason 视频关闭原因
716
- * @property { number } extUserId 参会者ID
717
- * @property { string } calluri 参会者Url
718
- * @property { number } ExpectHeight 期望分辨率
719
- * @property { number } ExpectWidth 期望分辨率
720
- * @property { number } feccOri ignore
721
- */
722
- export interface ILayoutRoster {
723
- participantId: number;
724
- mediagroupid: number;
725
- remoteType: string;
726
- remoteName: string;
727
- videoTrackId: string;
728
- isAudioMute: boolean;
729
- isVideoMute: boolean;
730
- isActiveSpeaker: boolean;
731
- LayoutVideoState: number;
732
- MuteReason: MuteReason;
733
- extUserId: string;
734
- calluri: string;
735
- ExpectHeight: number;
736
- ExpectWidth: number;
737
- feccOri: number;
738
- }
739
- /**
740
- * 视频关闭原因
685
+ * 会议变动消息
741
686
  *
742
- * @param MuteByUser - 用户自己关闭
743
- * @param MuteByBWLimit - 带宽限制
744
- * @param MuteByNoInput - 没有视频输入
745
- * @param MuteByConfMgmt - 会控关闭
746
- * @param MuteByDeviceDetection - 设备探测
747
- * @param MuteByPhoneCall - 电话占用
748
- */
749
- export declare enum MuteReason {
750
- MuteByUser = 0,
751
- MuteByBWLimit = 1,
752
- MuteByNoInput = 2,
753
- MuteByConfMgmt = 3,
754
- MuteByDeviceDetection = 4,
755
- MuteByPhoneCall = 5
756
- }
757
- /**
758
- * Conf Change消息
759
- *
760
- * @property { number } participantCount 当前会议参会者总人数,不包含共享内容设备数量,包含local
761
- * @property { number } totalEpCount 当前会议参会者总人数,包含共享内容、指挥调度客户端等设备数量, 包含local
762
- * @property { string } chairManUrl 当前会议主会场/主画面设备的callUrl,没有为''
763
- * @property { string } contentUri 当前会议共享内容设别的callUrl,没有为''
764
- * @property { string } actSpkUri 当前会议语音激励者的callUrl,没有为''
765
- * @property { IMediaGroupInfo[] } mediaGroupnfo 多分组通人数信息,默认上报0和1分组,分别代表People通道和Content通道
766
- * @property { number } onHoldCount 等候室人数
767
- * @property { number } audioTxUnMuteEpCount 未静音人数
768
- * @property { number } videoTxUnMuteEpCount 未关闭摄像头人数
687
+ * @property { number } participantCount - 当前会议参会者总人数,不包含共享内容设备数量,包含local
688
+ * @property { number } totalEpCount - 当前会议参会者总人数,包含共享内容、指挥调度客户端等设备数量, 包含local
689
+ * @property { string } chairManUrl - 当前主画面设备的callUrl,没有为''
690
+ * @property { string } contentUri - 当前会议共享内容设别的callUrl,没有为''
691
+ * @property { string } actSpkUri - 当前会议语音激励者的callUrl,没有为''
692
+ * @property { IMediaGroupInfo[] } mediaGroupnfo - 多分组通人数信息,默认上报0和1分组,分别代表People通道和Content通道
693
+ * @property { ChairManReason } ChairManReason - 主画面对应的模式,默认是主会场模式
694
+ * @property { number } onHoldCount - 等候室人数
695
+ * @property { number } audioTxUnMuteEpCount - 未静音人数
696
+ * @property { number } videoTxUnMuteEpCount - 未关闭摄像头人数
769
697
  */
770
698
  export interface IConfInfo {
771
699
  participantCount: number;
@@ -777,7 +705,20 @@ export interface IConfInfo {
777
705
  onHoldCount?: number;
778
706
  audioTxUnMuteEpCount?: number;
779
707
  videoTxUnMuteEpCount?: number;
708
+ chairManReason: ChairManReason;
780
709
  }
710
+ /**
711
+ * 缓存Conf Change消息
712
+ */
713
+ export interface IPreConfInfo extends IConfInfo {
714
+ isChairmanMode?: boolean;
715
+ }
716
+ /**
717
+ * 多分组通道数据
718
+ *
719
+ * @param { number } endpointCount - 多分组通道人数
720
+ * @param { number } mediagroupid - 多分组通道ID
721
+ */
781
722
  export interface IMediaGroupInfo {
782
723
  endpointCount: number;
783
724
  mediagroupid: number;
@@ -785,9 +726,9 @@ export interface IMediaGroupInfo {
785
726
  /**
786
727
  * 自动布局,分页数据
787
728
  *
788
- * @property { number } pageSize 每页显示多少人,最多可配置9画面
789
- * @property { number } currentPage 当前页码
790
- * @property { number } totalPage 总页数
729
+ * @property { number } pageSize - 每页显示多少人,最多可配置9画面
730
+ * @property { number } currentPage - 当前页码
731
+ * @property { number } totalPage - 总页数
791
732
  */
792
733
  export interface IPageInfo {
793
734
  pageSize: number;
@@ -797,65 +738,13 @@ export interface IPageInfo {
797
738
  /**
798
739
  * 语音激励消息
799
740
  *
800
- * @property { string } endpointId 语音激励者的callUrl信息,类似:"xxx@BRUCE"
801
- * @property { number } pid 语音激励者的用户id
741
+ * @property { string } endpointId - 语音激励者的callUrl信息,类似:"xxx@BRUCE"
742
+ * @property { number } pid - 语音激励者的用户id
802
743
  */
803
744
  export interface ISpeakerInfo {
804
745
  endpointId: string;
805
746
  pid: number;
806
747
  }
807
- /**
808
- * 头像
809
- *
810
- * @property { LayoutAvatarType } type - 头像类型,名称头像、人物头像
811
- * @property { string } value - 内容
812
- */
813
- export interface LayoutAvatar {
814
- type: LayoutAvatarType;
815
- value: string;
816
- }
817
- /**
818
- * 布局对象
819
- *
820
- * @property { IRoster } roster 参会者基本信息、状态信息,例如:用户名、麦克风/摄像头状态、是否是主会场等信息
821
- * @property { ILayoutState } state 当前参会者的画面状态信息,暂时未使用
822
- * @property { IRotateStyle | null } rotate 当前参会者的旋转信息,用于设置video标签样式
823
- * @property { IRotationInfoTotalItem | null } rotationInfo 当前参会者的旋转信息
824
- * @property { { left: string; top: string; width: string; height: string } } positionStyle 当前参会者的位置样式
825
- * @property { LayoutAvatar | null } avatar 头像, 如未在setFeatureConfig配置相关参数,则返回null
826
- * @property { boolean } isMirror 是否是镜像画面
827
- * @property { ExternalTemplateConfig } templateConfig 忽略
828
- * @property { { width: number; height: number } } positionInfo 忽略
829
- * @property { number[] } position 忽略
830
- * @property { boolean } deal 忽略
831
- * @property { number } index 忽略
832
- * @property { number } resolution 忽略, 2.0.2以前的版本 自定义布局roster请流使用
833
- * @property { number } quality 忽略, 2.0.2以前的版本 自定义布局roster请流使用
834
- */
835
- export interface ILayout {
836
- roster: IRoster;
837
- state: ILayoutState;
838
- rotate: IRotateStyle | null;
839
- rotationInfo: IRotationInfoTotalItem | null;
840
- avatar: LayoutAvatar | null;
841
- positionStyle?: {
842
- left: string;
843
- top: string;
844
- width: string;
845
- height: string;
846
- };
847
- isMirror?: boolean;
848
- templateConfig?: ExternalTemplateConfig;
849
- position?: number[];
850
- positionInfo?: {
851
- width: number;
852
- height: number;
853
- };
854
- deal?: boolean;
855
- index?: number;
856
- resolution?: number;
857
- quality?: number;
858
- }
859
748
  /**
860
749
  * Local布局对象
861
750
  *
@@ -869,10 +758,10 @@ export interface ILocalLayout extends ILayout {
869
758
  * 自动布局模式下,Layout Container的容器信息
870
759
  * 计算得到的宽高能给铺满当前参会者的布局
871
760
  *
872
- * @property { number } width 减掉偏移左右值的Container容器宽
873
- * @property { number } height 减掉偏移上下值的Container容器高
874
- * @property { number } rateWidth 基于width配合 Layout Rate 计算得到的Layout Container容器宽
875
- * @property { number } rateHeight 基于height配合 Layout Rate 计算得到的Layout Container容器高
761
+ * @property { number } width - 减掉偏移左右值的Container容器宽
762
+ * @property { number } height - 减掉偏移上下值的Container容器高
763
+ * @property { number } rateWidth - 基于width配合 Layout Rate 计算得到的Layout Container容器宽
764
+ * @property { number } rateHeight - 基于height配合 Layout Rate 计算得到的Layout Container容器高
876
765
  */
877
766
  export interface IScreenInfo {
878
767
  width: number;
@@ -880,60 +769,21 @@ export interface IScreenInfo {
880
769
  rateWidth: number;
881
770
  rateHeight: number;
882
771
  }
883
- /**
884
- * 画面屏幕旋转信息
885
- *
886
- * @property { number } height 高度
887
- * @property { number } width 宽度
888
- * @property { number } participantId 用户id
889
- * @property { number } rotation 旋转角度
890
- * @param 0 | 1 不需要旋转
891
- * @param 2 顺时针旋转180度
892
- * @param 3 顺时针旋转270度
893
- */
894
- export interface IRotationInfoItem {
895
- height: number;
896
- width: number;
897
- participantId: number;
898
- rotation: number;
899
- }
900
- /**
901
- * 缓存content+people的屏幕旋转信息数据
902
- *
903
- * @property { number } mediagroupid 画面类型:people/content
904
- * @property { string } id 用户id
905
- */
906
- export interface IRotationInfoTotalItem extends IRotationInfoItem {
907
- mediagroupid: number;
908
- id: string;
909
- }
910
- /**
911
- * 缓存媒体下发的屏幕旋转信息
912
- *
913
- * @property { IRotationInfoItem[] } content content共享内容的旋转信息
914
- * @property { IRotationInfoItem[] } people people的旋转信息
915
- * @property { IRotationInfoTotalItem[] } total content+people的旋转信息
916
- */
917
- export interface IRotationInfo {
918
- content: IRotationInfoItem[];
919
- people: IRotationInfoItem[];
920
- total: IRotationInfoTotalItem[];
921
- }
922
772
  /**
923
773
  * 自定义布局请流对象数据
924
774
  *
925
- * @property { number } pid 用户id,从roster中获取
926
- * @property { StreamResolutionLevel } resolution 当前请求画面分辨率
775
+ * @property { number } pid - 用户id,从roster中获取
776
+ * @property { StreamResolutionLevel } resolution - 当前请求画面分辨率
927
777
  * @value 0 90P
928
778
  * @value 1 180P
929
779
  * @value 2 360P
930
780
  * @value 3 720P
931
781
  * @value 4 1080P
932
- * @property { VideoQuality } quality 画面质量
782
+ * @property { VideoQuality } quality - 画面质量
933
783
  * @value 0 100
934
784
  * @value 1 200
935
785
  * @value 3 300
936
- * @property { number } mediagroupid 当前流的类型:people/content
786
+ * @property { number } mediagroupid - 当前流的类型:people/content
937
787
  * @param 0 people
938
788
  * @param 1 content
939
789
  */
@@ -951,14 +801,14 @@ export interface ICustomMediaStream {
951
801
  track: MediaStreamTrack;
952
802
  }
953
803
  /**
954
- * custom stream track封装对象
804
+ * 自定义Track轨道对象
955
805
  *
956
- * @property { string } status Track的类型,local或者remote
957
- * @property { RTCTrackEvent } data MediaStreamTrack数据
958
- * @property { IRest } rest 从data中获取streamId、trackId和track数据,方便后续使用
959
- * @property { string } rest.streamId MediaStream id
960
- * @property { string } rest.trackId MediaStreamTrack id
961
- * @property { MediaStreamTrack } rest.track MediaStreamTrack
806
+ * @property { string } status - Track的类型,local或者remote
807
+ * @property { RTCTrackEvent } data - MediaStreamTrack数据
808
+ * @property { IRest } rest - 从data中获取streamId、trackId和track数据,方便后续使用
809
+ * @property { string } rest.streamId - MediaStream id
810
+ * @property { string } rest.trackId - MediaStreamTrack id
811
+ * @property { MediaStreamTrack } rest.track - MediaStreamTrack
962
812
  */
963
813
  export interface ICustomStreamTrack {
964
814
  status: string;
@@ -972,9 +822,9 @@ export interface ICustomStreamTrack {
972
822
  /**
973
823
  * 字幕消息
974
824
  *
975
- * @property { number } callIndex 消息序列号
976
- * @property { string } content 字幕规则
977
- * @property { string } type 字幕类型
825
+ * @property { number } callIndex - 消息序列号
826
+ * @property { string } content - 字幕规则
827
+ * @property { string } type - 字幕类型
978
828
  */
979
829
  export interface ISubTitle {
980
830
  callIndex: number;
@@ -982,19 +832,19 @@ export interface ISubTitle {
982
832
  type: string;
983
833
  }
984
834
  /**
985
- * 字幕规则
835
+ * 字幕消息内容,包含内容、字体、背景等
986
836
  *
987
- * @property { string } content 字幕内容
988
- * @property { string? } i18nKey 字幕内容key
989
- * @property { string? } fontFamily 字体
990
- * @property { string? } fontRGB 字体色
991
- * @property { "1" | "0" } scroll 是否滚动
992
- * @property { string? } action 动作
993
- * @property { string? } location 位置'top' | 'middle' | 'bottom'
994
- * @property { string? } fontSize 位置'small' | 'middle' | 'big'
995
- * @property { string? } backgroundAlpha 背景色
996
- * @property { string? } scrollSpeed 滚动速度
997
- * @property { string? } backgroundRGB 背景色
837
+ * @property { string } content - 字幕内容
838
+ * @property { string? } i18nKey - 字幕内容国际化语言key
839
+ * @property { string? } fontFamily - 字体
840
+ * @property { string? } fontRGB - 字体色
841
+ * @property { "1" | "0" } scroll - 是否滚动,"1"代表滚动字幕,"0"代表固定字幕
842
+ * @property { "push" | "cancel" | string } action - 动作,"push"代表显示字幕;"cancel"代表取消字幕
843
+ * @property { string? } location - 位置'top' | 'middle' | 'bottom',分别代表上、中、下位置
844
+ * @property { string? } fontSize - 位置'small' | 'middle' | 'big',分别代表小、中、大号字体
845
+ * @property { string? } backgroundAlpha - 背景色
846
+ * @property { string? } scrollSpeed - 滚动速度
847
+ * @property { string? } backgroundRGB - 背景色
998
848
  */
999
849
  export interface ISubTitleContent {
1000
850
  content: string;
@@ -1002,25 +852,15 @@ export interface ISubTitleContent {
1002
852
  fontFamily?: string;
1003
853
  fontRGB?: string;
1004
854
  scroll?: '1' | '0';
1005
- action?: 'push' | string;
855
+ action?: 'push' | 'cancel' | string;
1006
856
  location?: 'top' | 'middle' | 'bottom';
1007
857
  fontSize?: 'small' | 'middle' | 'big';
1008
858
  backgroundAlpha?: string;
1009
859
  scrollSpeed?: string;
1010
860
  backgroundRGB?: string;
1011
861
  }
1012
- export type IAudioRenders = {
1013
- [key: string]: {
1014
- ele: any;
1015
- };
1016
- };
1017
- export type IVideoRenders = {
1018
- [key: string]: VideoManager & {
1019
- match?: boolean;
1020
- };
1021
- };
1022
862
  /**
1023
- * 同传字幕: 本地支持的语言
863
+ * 通话字幕-本地支持的语言
1024
864
  */
1025
865
  export type TLocalLanguage = (typeof SupportLocalLanguages)[number];
1026
866
  export interface IOutputCustomLayout {
@@ -1032,11 +872,11 @@ export interface IOutputCustomLayout {
1032
872
  /**
1033
873
  * 巡课云会议室
1034
874
  *
1035
- * @property { string } callUrl 云会议室callUri
1036
- * @property { number } conferenceNumberType 云会议室类型
1037
- * @property { string } deviceId
1038
- * @property { string } displayName 云会议室名称
1039
- * @property { string } number 云会议室号
875
+ * @property { string } callUrl - 云会议室callUri
876
+ * @property { number } conferenceNumberType - 云会议室类型
877
+ * @property { string } deviceId - 设备ID
878
+ * @property { string } displayName - 云会议室名称
879
+ * @property { string } number - 云会议室号
1040
880
  */
1041
881
  export interface IConference {
1042
882
  callUrl: string;
@@ -1048,10 +888,10 @@ export interface IConference {
1048
888
  /**
1049
889
  * 参会者信息
1050
890
  *
1051
- * @property { 0 | 1 } bulkRosterType 全量roster类型,0表示全量数据,1表示增量数据
1052
- * @property { IRoster[] } addRosterInfo 新增的roster信息 当bulkRosterType是0的时候,此参数表示全量数据
1053
- * @property { IRoster[] } changeRosterInfo 变化的roster信息
1054
- * @property { { participantId: number }[] } deleteRosterInfo 被删除的roster信息
891
+ * @property { 0 | 1 } bulkRosterType - 全量roster类型,0表示全量数据,1表示增量数据
892
+ * @property { IRoster[] } addRosterInfo - 新增的roster信息 当bulkRosterType是0的时候,此参数表示全量数据
893
+ * @property { IRoster[] } changeRosterInfo - 变化的roster信息
894
+ * @property { { participantId: number }[] } deleteRosterInfo - 被删除的roster信息
1055
895
  */
1056
896
  export interface IBulkRoster {
1057
897
  bulkRosterType: 0 | 1;
@@ -1064,9 +904,9 @@ export interface IBulkRoster {
1064
904
  /**
1065
905
  * conf 会议属性
1066
906
  *
1067
- * @property { 'contentOnhold' } type 类型
1068
- * @property { string } audioTrackId content audio track id
1069
- * @property { string } contentUrl content uri
907
+ * @property { 'contentOnhold' } type - 类型
908
+ * @property { string } audioTrackId - content audio track id
909
+ * @property { string } contentUrl - content uri
1070
910
  */
1071
911
  export interface IConfProperty {
1072
912
  type: 'contentOnhold';
@@ -1076,9 +916,9 @@ export interface IConfProperty {
1076
916
  /**
1077
917
  * track 信息
1078
918
  *
1079
- * @property { string } streamId stream id
1080
- * @property { MediaStreamTrack } track
1081
- * @property { string } trackId track id
919
+ * @property { string } streamId - stream id
920
+ * @property { MediaStreamTrack } track - 媒体流Track轨道
921
+ * @property { string } trackId - track id
1082
922
  */
1083
923
  export interface ITrackInfo {
1084
924
  streamId: string;
@@ -1092,34 +932,27 @@ export type TErrorReason<P = {}> = P & {
1092
932
  code?: number;
1093
933
  };
1094
934
  /**
1095
- * 是否静音
935
+ * 录制相关信息
1096
936
  *
1097
- * @param SMART 0 - 智能静音
1098
- * @param ALL 1 - 全部静音
1099
- * @param NOT 2 - 不静音
1100
- * @param FORCE 3 - 强制静音
937
+ * @property { string } recordSessionId - sessionId
1101
938
  */
1102
- export declare enum AutoMute {
1103
- SMART = 0,
1104
- ALL = 1,
1105
- NOT = 2,
1106
- FORCE = 3
1107
- }
1108
- export interface IGetConferenceParams {
1109
- autoMute: AutoMute;
939
+ export interface IRecordInfo {
940
+ recordSessionId: string;
1110
941
  }
1111
942
  /**
1112
943
  * 本地录制结果上报
1113
944
  *
1114
945
  * @property { string } reason - 成功STATE:200
1115
946
  * @property { RecordingState } state - 录制状态
1116
- * @property { boolean } isRecorded - ignore
1117
- * @property { string } controlUri - ignore
1118
- * @property { string } reasonText - ignore
947
+ * @property { IRecordInfo } recordInfo - 录制相关信息
948
+ * @property { boolean } isRecorded - 忽略
949
+ * @property { string } controlUri - 忽略
950
+ * @property { string } reasonText - 忽略
1119
951
  */
1120
952
  export interface IRecordingStateChanged {
1121
953
  reason: string;
1122
954
  state: RecordingState;
955
+ recordInfo: IRecordInfo;
1123
956
  isRecorded: boolean;
1124
957
  controlUri: string;
1125
958
  reasonText: string;
@@ -1133,23 +966,25 @@ export interface IRecordingStateChanged {
1133
966
  * @property { string } callerUri - ignore
1134
967
  * @property { string } status - 录制状态 RECORDING_STATE_PAUSED(录制暂停),RECORDING_STATE_ACTING(录制恢复)
1135
968
  * @property { boolean } isLocal - 是否是local开启的录制
969
+ * @property { IRecordInfo } recordInfo - 录制相关信息
1136
970
  */
1137
971
  export interface IRecordStatusNotification {
1138
- isStart: Boolean;
972
+ isStart: boolean;
1139
973
  uri: string;
1140
974
  callUri: string;
1141
975
  callerUri: string;
1142
976
  status: string;
1143
977
  isLocal: boolean;
978
+ recordInfo: IRecordInfo;
1144
979
  }
1145
980
  /**
1146
981
  * 录制权限
1147
982
  *
1148
- * @property { boolean } authorize 权限
1149
- * @property { string } recordingUrl 云会议室URI
1150
- * @property { string? } developerMessage 云会议室的所属用户名称
1151
- * @property { number? } errorCode 错误码
1152
- * @property { string? } userMessage 错误信息
983
+ * @property { boolean } authorize - 权限
984
+ * @property { string } recordingUrl - 云会议室URI
985
+ * @property { string? } developerMessage - 云会议室的所属用户名称
986
+ * @property { number? } errorCode - 错误码
987
+ * @property { string? } userMessage - 错误信息
1153
988
  */
1154
989
  export interface IRecordPermission {
1155
990
  authorize: boolean;
@@ -1159,21 +994,21 @@ export interface IRecordPermission {
1159
994
  userMessage?: string;
1160
995
  }
1161
996
  /**
1162
- * 同传字幕内容
997
+ * 通话字幕内容
1163
998
  *
1164
- * @property { number } pid 当前说话的终端
1165
- * @property { string } src 原文
1166
- * @property { string } target 译文
1167
- * @property { number } seTime 发送时间
1168
- * @property { number } startTime 开始时间
1169
- * @property { number } endTime 结束时间
1170
- * @property { boolean } isEnd 一句话是否结束
1171
- * @property { boolean } isActive 活跃标志,收三路,同时只有一路active
1172
- * @property { string } url 终端calluri
1173
- * @property { string } dn 显示名称
1174
- * @property { string } meetingId 会议号
1175
- * @property { string } srcLang 原语言,zh表示中文,en表示英文
1176
- * @property { string } targetLang 译文语言,zh表示中文,en表示英文
999
+ * @property { number } pid - 当前说话的终端
1000
+ * @property { string } src - 原文
1001
+ * @property { string } target - 译文
1002
+ * @property { number } seTime - 发送时间
1003
+ * @property { number } startTime - 开始时间
1004
+ * @property { number } endTime - 结束时间
1005
+ * @property { boolean } isEnd - 一句话是否结束
1006
+ * @property { boolean } isActive - 活跃标志,收三路,同时只有一路active
1007
+ * @property { string } url - 终端calluri
1008
+ * @property { string } dn - 显示名称
1009
+ * @property { string } meetingId - 会议号
1010
+ * @property { string } srcLang - 原语言,zh表示中文,en表示英文
1011
+ * @property { string } targetLang - 译文语言,zh表示中文,en表示英文
1177
1012
  */
1178
1013
  export interface ITranslationContent {
1179
1014
  pid: number;
@@ -1203,10 +1038,10 @@ export interface ICustomMessageConfig {
1203
1038
  /**
1204
1039
  * 接收到自定义消息
1205
1040
  *
1206
- * @property { string } type - 消息Type
1041
+ * @property { string } type - 消息Type,0表示广播消息、非0表示单点消息
1207
1042
  * @property { number } fromPid - 消息的发送方pid
1208
- * @property { number } toPid - 消息的接收方pid,0表示广播消息、非0表示单点消息;
1209
- * @property { string } data - 消息内容,可以被JSON序列化的字符串;
1043
+ * @property { number } toPid - 消息的接收方pid
1044
+ * @property { string } data - 消息内容,可以被JSON序列化的字符串
1210
1045
  */
1211
1046
  export interface IReceiveCustomMessage {
1212
1047
  type: string;
@@ -1215,7 +1050,7 @@ export interface IReceiveCustomMessage {
1215
1050
  data: string;
1216
1051
  }
1217
1052
  /**
1218
- * SDK功能控制开关,用于内部是否启用某些功能的运行
1053
+ * SDK功能控制开关,是否启用某些功能的运行
1219
1054
  * 默认配置:src/enum/index.ts DEFAULT_FEATURE_CONFIG
1220
1055
  *
1221
1056
  * @property { boolean } enableMeetingShout 是否启用会控喊话场景,会控喊话场景需要指定mediaGroupId分组通道信息才可以正常接收远端声音
@@ -1227,7 +1062,7 @@ export interface IReceiveCustomMessage {
1227
1062
  * @property { boolean } enableAutoResizeLayout 是否启用自动布局下,当屏幕大小变化后计算最新的Layout数据,默认启用,设置为true
1228
1063
  * @property { boolean } enableLowResolution 是否启用低性能模式,降低发送和接收端的分辨率和质量,默认不启用,设置为false
1229
1064
  * @property { boolean } enableSpeakerInfo 是否启用推送实时讲话人信息,每秒2条消息推送,默认不启用,设置为false
1230
- * @property { boolean } config.enableLayoutAvatar 是否启用获取参会者头像,默认不启用,设置为false
1065
+ * @property { boolean } enableLayoutAvatar 是否启用获取参会者头像,默认不启用,设置为false
1231
1066
  * @property { boolean } enableMobileNotAuth 移动端是否支持无授权入会, 默认设置为false
1232
1067
  * @property { boolean } enableWatermarkContent 是否启用获取content水印内容, 默认启用, 设置为true
1233
1068
  * @property { boolean } enableHideLocalView 是否启用隐藏本地画面模式,默认不启用,设置为false
@@ -1275,7 +1110,7 @@ export interface IConfMgmtUrl {
1275
1110
  * voice.mode:终端在语音模式
1276
1111
  * driving.mode:终端在驾驶模式
1277
1112
  * '':同意为空即可
1278
- * @property { string } reason - 是否同意开启/关闭摄像头
1113
+ * @property { string } reason - 操作解释
1279
1114
  * @property { string } requestId - 终端收到的muteVideoQuery/unMuteVideoQuery消息中的requestId
1280
1115
  */
1281
1116
  export interface IVideoControlResult {
@@ -1300,14 +1135,14 @@ export interface IEPMessage {
1300
1135
  /**
1301
1136
  * 会控开启/关闭摄像头消息、Toast提示消息
1302
1137
  */
1303
- export type IMCVideoEvent = controlVideoQuery | unMuteVideoQueryToast;
1138
+ export type IMCVideoEvent = XYControlVideoQuery | XYUnMuteVideoQueryToast;
1304
1139
  /**
1305
1140
  * 会控开关摄像头三个事件类型
1306
- * unMuteVideoQuery: 会控请求打开摄像头
1307
- * muteVideoQuery: 会控请求关闭摄像头
1308
- * toast: 主持会议的客户端收到的成功和失败提醒
1141
+ * @param unMuteVideoQuery - 会控请求打开摄像头
1142
+ * @param muteVideoQuery - 会控请求关闭摄像头
1143
+ * @param toast - 主持会议的客户端收到的成功和失败提醒
1309
1144
  */
1310
- export type queryType = 'unMuteVideoQuery' | 'muteVideoQuery' | 'toast';
1145
+ export type XYVideoQueryType = 'unMuteVideoQuery' | 'muteVideoQuery' | 'toast';
1311
1146
  /**
1312
1147
  * 会控开关摄像头事件基础消息体
1313
1148
  *
@@ -1319,7 +1154,7 @@ export type queryType = 'unMuteVideoQuery' | 'muteVideoQuery' | 'toast';
1319
1154
  * @property { string } uri - 事件接收侧用户ID
1320
1155
  *
1321
1156
  */
1322
- export interface videoQueryBase {
1157
+ export interface XYVideoQueryBase {
1323
1158
  confUri: string;
1324
1159
  encryption: string;
1325
1160
  force: boolean;
@@ -1339,7 +1174,7 @@ export interface videoQueryBase {
1339
1174
  * @property { string } di - 终端的deviceUri
1340
1175
  * @property { string } dn - 终端的名称
1341
1176
  */
1342
- export interface unMuteVideoQueryToastValue extends videoQueryBase {
1177
+ export interface XYUnMuteVideoQueryToastValue extends XYVideoQueryBase {
1343
1178
  message: string;
1344
1179
  di: string;
1345
1180
  dn: string;
@@ -1347,62 +1182,53 @@ export interface unMuteVideoQueryToastValue extends videoQueryBase {
1347
1182
  /**
1348
1183
  * 会控推送开启/关闭摄像头消息体
1349
1184
  *
1350
- * @property { string } key - 消息key,值为:'unMuteVideoQuery' | 'muteVideoQuery'
1351
- * @property { videoQueryBase } value - 消息详细内容
1185
+ * @property { XYVideoQueryType } key - 消息key,值为:'unMuteVideoQuery' | 'muteVideoQuery'
1186
+ * @property { XYVideoQueryBase } value - 消息详细内容
1352
1187
  *
1353
1188
  */
1354
- export interface controlVideoQuery {
1355
- key: queryType;
1356
- value: videoQueryBase;
1189
+ export interface XYControlVideoQuery {
1190
+ key: XYVideoQueryType;
1191
+ value: XYVideoQueryBase;
1357
1192
  }
1358
1193
  /**
1359
1194
  * 主持会议端收到远端开启摄像头结果的提示消息体
1360
1195
  *
1361
1196
  * @property { string } key - 消息key,值为:toast
1362
- * @property { unMuteVideoQueryToastValue } value - 消息详细内容
1197
+ * @property { XYUnMuteVideoQueryToastValue } value - 消息详细内容
1363
1198
  */
1364
- export interface unMuteVideoQueryToast {
1365
- key: queryType;
1366
- value: unMuteVideoQueryToastValue;
1199
+ export interface XYUnMuteVideoQueryToast {
1200
+ key: XYVideoQueryType;
1201
+ value: XYUnMuteVideoQueryToastValue;
1367
1202
  }
1368
1203
  /**
1369
1204
  * 讲话者信息
1370
1205
  *
1371
- * @property { string } alias - 别名id
1206
+ * @property { string } alias - 别名ID
1372
1207
  * @property { string } name - 讲话者名称
1373
- * @property { number } pid - pid
1208
+ * @property { number } pid - 用户ID
1374
1209
  * @property { string } endpointId - 用户标识ID
1375
- * @property { string } trackId - StreamTrack轨道ID
1210
+ * @property { string } trackId - 媒体网关分配的轨道ID(对应的是将-ad-转化为-st-之后的stream数据)
1376
1211
  * @property { boolean } isLocal - 是否是Local设备
1377
1212
  * @property { number } level - 音量等级
1378
- * @property { string } id - 参会者唯一ID,通过roster数据获取
1213
+ * @property { string } id - 参会者Roster ID,通过roster数据获取
1379
1214
  */
1380
- export interface SpeakersInfoObj {
1215
+ export interface SpeakersInfoItem {
1381
1216
  alias: string;
1382
1217
  name: string;
1383
1218
  pid: number;
1219
+ id: string;
1384
1220
  endpointId?: string;
1385
1221
  trackId?: string;
1386
1222
  isLocal?: boolean;
1387
1223
  level?: number;
1388
- id?: string;
1389
- }
1390
- /**
1391
- * 实时讲话人内部数据
1392
- */
1393
- export interface SpeakerInternalData {
1394
- stream: MediaStream | null;
1395
- analyser: AudioAnalyser | null;
1396
- timestamp: number;
1397
1224
  }
1398
1225
  /**
1399
1226
  * 实时讲话人消息体
1400
1227
  *
1401
1228
  * @property { speakersInfoObj[] } speakersInfo - 讲话者信息
1402
- *
1403
1229
  */
1404
- export interface SpeakersInfo {
1405
- speakersInfo: SpeakersInfoObj[];
1230
+ export interface XYSpeakersInfo {
1231
+ speakersInfo: SpeakersInfoItem[];
1406
1232
  }
1407
1233
  /**
1408
1234
  * 等候室状态
@@ -1421,15 +1247,61 @@ export interface IStreamCapability {
1421
1247
  streamId: string;
1422
1248
  resolution: StreamResolutionLevel;
1423
1249
  }
1250
+ /**
1251
+ * 焦点画面动作
1252
+ *
1253
+ * @param START - 指定焦点画面
1254
+ * @param STOP - 取消焦点画面
1255
+ */
1256
+ export declare enum FocusViewAction {
1257
+ START = "start",
1258
+ STOP = "stop"
1259
+ }
1260
+ /**
1261
+ * 上报终端状态-事件类型
1262
+ */
1263
+ export declare enum StateCategory {
1264
+ STA_CONFSTATUS = "sta-confStatus",
1265
+ OPER_CONFOPERATION = "oper-confOperation",
1266
+ STA_MSGCALLBACK = "sta-msgCallback",
1267
+ OPER_SETTING = "oper-setting"
1268
+ }
1269
+ /**
1270
+ * 上报终端状态-事件名称
1271
+ */
1272
+ export declare enum StateEventName {
1273
+ CALL_IN = "callIn",
1274
+ LAYOUT = "layout",
1275
+ CONTENT = "content",
1276
+ AUDIO_MUTE = "audioMute",
1277
+ AUDIO_UNMUTE = "audioUnmute",
1278
+ VIDEO_MUTE = "videoMute",
1279
+ VIDEO_UNMUTE = "videoUnmute",
1280
+ SUBTITLE = "subtitle",
1281
+ COMPLEX_CAPABILITIES = "complexCapabilities",
1282
+ MMS_CAPABILITIES = "mmsCapabilities"
1283
+ }
1284
+ /**
1285
+ * 上报终端状态参数
1286
+ *
1287
+ * @property { StateCategory } category - 事件类型
1288
+ * @property { StateEventName } eventName - 事件名称
1289
+ * @property { Object } params - 事件详细数据
1290
+ */
1291
+ export interface IStateParams {
1292
+ category: StateCategory;
1293
+ eventName: StateEventName;
1294
+ params?: Object;
1295
+ }
1424
1296
  /**
1425
1297
  * 截图参数
1426
1298
  *
1427
- * @property { string } rosterId - 用户id,通过layout事件列表获取
1299
+ * @property { string } id - 参会者Layout Id,通过layout事件列表获取
1428
1300
  * @property { string } imageType - 图片格式, 默认'image/png'
1429
1301
  * @property { number } compressLevel - 图片质量,0-1
1430
1302
  */
1431
1303
  export interface SnapshotParams {
1432
- rosterId: string;
1304
+ id: string;
1433
1305
  imageType?: string;
1434
1306
  compressLevel?: number;
1435
1307
  }
@@ -1450,7 +1322,7 @@ export interface SnapshotOptions {
1450
1322
  /**
1451
1323
  * 截图结果
1452
1324
  *
1453
- * @property { string } dataURL - 图片数据
1325
+ * @property { string } dataURL - 图片数据,Base64字符串
1454
1326
  * @property { number } width - 图片的宽度
1455
1327
  * @property { number } height - 图片的高度
1456
1328
  */
@@ -1467,4 +1339,13 @@ export interface SnapshotResult {
1467
1339
  export interface LocalViewParams {
1468
1340
  isMirror: boolean;
1469
1341
  }
1470
- export {};
1342
+ /**
1343
+ * 视频配置
1344
+ *
1345
+ * @property { StreamResolution } maxResolution - 视频最大分辨率
1346
+ * @property { StreamFrameRate } maxFrameRate - 视频最大帧率
1347
+ */
1348
+ export interface IVideoProfile {
1349
+ maxResolution?: StreamResolution;
1350
+ maxFrameRate?: StreamFrameRate;
1351
+ }