@xylink/xy-rtc-sdk 3.8.0 → 3.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.MD CHANGED
@@ -1,38 +1,38 @@
1
- # XYLINK WEBRTC SDK
2
-
3
- ## 介绍
4
-
5
- XY RTC Web SDK 是小鱼易连音视频通讯解决方案的Web端SDK,它是通过 HTML 网页加载的 JavaScript 库,采用 WebRTC 技术,开发者可以使用 XY RTC Web SDK 提供的 API 建立连接,控制实时多人音视频通话。
6
-
7
- 目前 XY RTC Web SDK 主要支持 Chrome v72+ 和 Edge v80+ 浏览器。
8
- ## 安装
9
- ``` bash
10
- # 通过 Yarn 安装
11
- $ yarn add @xylink/xy-rtc-sdk
12
-
13
- # 通过 Npm 安装
14
- $ npm install @xylink/xy-rtc-sdk --save
15
- ```
16
- ## 示例
17
-
18
- > **注意**:请务必使用 HTTPS 协议或者 localhost 开发、测试,否则无法正常使用 XY RTC SDK 进行加入会议操作;
19
-
20
-
21
- ```bash
22
- import xyRTC from "@xylink/xy-rtc-sdk";
23
-
24
- const client = xyRTC.createClient();
25
- ```
26
-
27
-
28
- 具体可参考[详细API文档](https://openapi.xylink.com/common/meeting/api/description?platform=web)完成音视频通话。
29
- ## 开源示例项目
30
- 我们在 GitHub 上提供了开源的示例项目供你参考。
31
-
32
- - Vue 版本:https://github.com/xylink-com/xylink-rtc-vue-demo
33
- - React 版本:https://github.com/xylink-com/xylink-rtc-demo
34
-
35
-
36
- 如果你是第一次集成 XY RTC SDK 产品,你可以使用我们基于 SDK 实现的产品进行体验:[小鱼 Web 会议](https://cdn.xylink.com/webrtc/web/index.html#/)。 我们会将 SDK 的最新功能在小鱼 Web 会议上进行集成展示出来,方便作为你的一种参考方式。
37
- ## 版本更新内容
1
+ # XYLINK WEBRTC SDK
2
+
3
+ ## 介绍
4
+
5
+ XY RTC Web SDK 是小鱼易连音视频通讯解决方案的Web端SDK,它是通过 HTML 网页加载的 JavaScript 库,采用 WebRTC 技术,开发者可以使用 XY RTC Web SDK 提供的 API 建立连接,控制实时多人音视频通话。
6
+
7
+ 目前 XY RTC Web SDK 主要支持 Chrome v72+ 和 Edge v80+ 浏览器。
8
+ ## 安装
9
+ ``` bash
10
+ # 通过 Yarn 安装
11
+ $ yarn add @xylink/xy-rtc-sdk
12
+
13
+ # 通过 Npm 安装
14
+ $ npm install @xylink/xy-rtc-sdk --save
15
+ ```
16
+ ## 示例
17
+
18
+ > **注意**:请务必使用 HTTPS 协议或者 localhost 开发、测试,否则无法正常使用 XY RTC SDK 进行加入会议操作;
19
+
20
+
21
+ ```bash
22
+ import xyRTC from "@xylink/xy-rtc-sdk";
23
+
24
+ const client = xyRTC.createClient();
25
+ ```
26
+
27
+
28
+ 具体可参考[详细API文档](https://openapi.xylink.com/common/meeting/api/description?platform=web)完成音视频通话。
29
+ ## 开源示例项目
30
+ 我们在 GitHub 上提供了开源的示例项目供你参考。
31
+
32
+ - Vue 版本:https://github.com/xylink-com/xylink-rtc-vue-demo
33
+ - React 版本:https://github.com/xylink-com/xylink-rtc-demo
34
+
35
+
36
+ 如果你是第一次集成 XY RTC SDK 产品,你可以使用我们基于 SDK 实现的产品进行体验:[小鱼 Web 会议](https://cdn.xylink.com/webrtc/web/index.html#/)。 我们会将 SDK 的最新功能在小鱼 Web 会议上进行集成展示出来,方便作为你的一种参考方式。
37
+ ## 版本更新内容
38
38
  具体可查看[发版说明文档](https://openapi.xylink.com/common/meeting/doc/version?platform=web)。
@@ -1,4 +1,4 @@
1
- import { ILoginExtAccount, ISdkUserInfo, TEventName, IMeetingInfo, TCategory, IToken, IGetConferenceParams, IMeetingInviteParams } from '../type';
1
+ import { ILoginExtAccount, ISdkUserInfo, TEventName, IMeetingInfo, TCategory, IToken, IGetConferenceParams, IMeetingInviteParams, IEnterpriseConfig } from '../type';
2
2
  import Logger from '../tools/logger';
3
3
  export interface ICommonParams {
4
4
  securityKey: string;
@@ -88,7 +88,7 @@ declare class Action {
88
88
  * @param { string } conferenceNo 会议号
89
89
  * @returns
90
90
  */
91
- hand(type: 'handup' | 'handdown' | 'mute', meetingId: string, di: string, conferenceNo: string): Promise<any>;
91
+ hand(type: 'handup' | 'handdown' | 'mute'): Promise<any>;
92
92
  /**
93
93
  * 获取i18n/errorcode等链接
94
94
  *
@@ -222,12 +222,12 @@ declare class Action {
222
222
  */
223
223
  checkStorageSpaceWithRecordingUrl(recordingUrl: string): Promise<any>;
224
224
  /**
225
- * 获取企业管理平台带宽配置
225
+ * 获取企业相关配置
226
226
  *
227
227
  * @param { number } userId 用户ID
228
228
  * @returns
229
229
  */
230
- getWebRxBandwidth(userId: number): Promise<any>;
230
+ getEnterpriseMediaConfig(userId: number, config: IEnterpriseConfig[]): Promise<any>;
231
231
  /**
232
232
  * 刷新Token
233
233
  *
@@ -0,0 +1,39 @@
1
+ export declare const DEFAULT_I18N_CODE: {
2
+ version: string;
3
+ zh_CN: {
4
+ 'MMS:unmute.video.timeout': string;
5
+ 'MMS:voice.mode': string;
6
+ 'MMS:no.camera.permission': string;
7
+ 'MMS:called': string;
8
+ 'MMS:supervised': string;
9
+ 'MMS:driving.mode': string;
10
+ 'MMS:device.bt.limit': string;
11
+ 'MMS:test': string;
12
+ 'MMS:callroll': string;
13
+ 'MMS:reject.unmute.video': string;
14
+ };
15
+ zh_TW: {
16
+ 'MMS:unmute.video.timeout': string;
17
+ 'MMS:voice.mode': string;
18
+ 'MMS:no.camera.permission': string;
19
+ 'MMS:called': string;
20
+ 'MMS:supervised': string;
21
+ 'MMS:driving.mode': string;
22
+ 'MMS:device.bt.limit': string;
23
+ 'MMS:test': string;
24
+ 'MMS:callroll': string;
25
+ 'MMS:reject.unmute.video': string;
26
+ };
27
+ en_US: {
28
+ 'MMS:voice.mode': string;
29
+ 'MMS:no.camera.permission': string;
30
+ 'MMS:nmute.video.timeout': string;
31
+ 'MMS:called': string;
32
+ 'MMS:supervised': string;
33
+ 'MMS:driving.mode': string;
34
+ 'MMS:device.bt.limit': string;
35
+ 'MMS:test': string;
36
+ 'MMS:callroll': string;
37
+ 'MMS:reject.unmute.video': string;
38
+ };
39
+ };
@@ -137,3 +137,24 @@ export declare const HIDE_KEY_INFOS: string[];
137
137
  * SDK功能控制开关
138
138
  */
139
139
  export declare const DEFAULT_FEATURE_CONFIG: IFeatureConfig;
140
+ /**
141
+ * 企业配置信息
142
+ *
143
+ * @property downLinkCeilingRate 下行带宽配置
144
+ * @property upLinkCeilingRate 上行带宽配置(暂不支持)
145
+ * @property pvrxResolution 请流能力配置
146
+ */
147
+ export declare const ENTERPRISE_CONFIG: {
148
+ downLinkCeilingRate: {
149
+ clientConfigName: string;
150
+ configName: string;
151
+ };
152
+ upLinkCeilingRate: {
153
+ clientConfigName: string;
154
+ configName: string;
155
+ };
156
+ pvrxResolution: {
157
+ clientConfigName: string;
158
+ configName: string;
159
+ };
160
+ };
@@ -4,7 +4,7 @@
4
4
  * @authors Luo-jinghui (luojinghui424@gmail.com)
5
5
  * @date 2019-10-23 12:04:44
6
6
  */
7
- import { IClientConfig, ICall, IMackCall, IInvite, IRoster, ILayoutRoster, ISpeakerInfo, IScreenInfo, ILoginExtAccount, IPublishParams, ICustomLayout, ICustomStreamTrack, IInternels, IVideoAudioType, IShareContentStatus, IPushType, IMode, IReqInfo, TCommand, ILayout, IConference, IConferenceInfo, IContentMode, IToken, AutoMute, Key, IRecordPermission, TLocalLanguage, IFeatureConfig, IConfMgmtUrl, IVideoControlResult, ICustomMessageConfig } from '../type';
7
+ import { IClientConfig, ICall, IMackCall, IInvite, IRoster, ILayoutRoster, ISpeakerInfo, IScreenInfo, ILoginExtAccount, IPublishParams, ICustomLayout, ICustomStreamTrack, IInternels, IVideoAudioType, IShareContentStatus, IPushType, IMode, IReqInfo, TCommand, ILayout, IConference, IContentMode, IToken, AutoMute, Key, IRecordPermission, TLocalLanguage, IFeatureConfig, IConfMgmtUrl, IVideoControlResult, ICustomMessageConfig } from '../type';
8
8
  import Emitter from '../tools/emitter';
9
9
  import Socket from '../tools/socket';
10
10
  import Stream from './stream';
@@ -62,7 +62,6 @@ export default class Client extends Emitter {
62
62
  private i18nCode;
63
63
  private clientErrorState;
64
64
  private limitResolution;
65
- private conferenceInfo;
66
65
  private customLayoutCacheList;
67
66
  private contentMode;
68
67
  private contentOnholdInfo;
@@ -109,7 +108,6 @@ export default class Client extends Emitter {
109
108
  total: ILayoutRoster[];
110
109
  };
111
110
  getOriginRosters(): IRoster[];
112
- getConferenceInfo(): IConferenceInfo | null;
113
111
  getInviteInfo(): IInvite;
114
112
  getContentSenderPid(): number;
115
113
  getSpeakerInfo(): ISpeakerInfo;
@@ -131,6 +129,12 @@ export default class Client extends Emitter {
131
129
  * @returns { boolean }
132
130
  */
133
131
  getLocalShareContent(): boolean;
132
+ /**
133
+ * 企业媒体相关配置信息
134
+ *
135
+ * @returns { IMediaConfig }
136
+ */
137
+ getEnterpriseMediaConfig(): import("../type").IMediaConfig;
134
138
  /**
135
139
  * 设置本地是否在等候室
136
140
  *
@@ -176,6 +180,7 @@ export default class Client extends Emitter {
176
180
  * @property { boolean } config.enableSpeakerInfo 是否启用推送实时讲话人信息,每秒2条消息推送,默认不启用,设置为false;
177
181
  * @property { boolean } config.enableLayoutAvatar 是否启用获取参会者头像,默认不启用,设置为false;
178
182
  * @property { boolean } config.enableMobileNotAuth 是否启用移动端无授权入会,默认不启用,设置为false;
183
+ * @property { boolean } config.enableWatermarkContent 是否启用获取content水印内容, 默认启用, 设置为true
179
184
  * @returns { IResult }
180
185
  */
181
186
  setFeatureConfig(config: IFeatureConfig): import("../type").IReturnResult | undefined;
@@ -573,6 +578,7 @@ export default class Client extends Emitter {
573
578
  * @param { boolean } status peer连接状态
574
579
  */
575
580
  setPeerConnectionStatus(status: boolean): void;
581
+ private sendWebRxBandwidth;
576
582
  /**
577
583
  * 处理会议室静音状态
578
584
  *
@@ -927,12 +933,6 @@ export default class Client extends Emitter {
927
933
  * @public
928
934
  */
929
935
  stopCloudRecord(): Promise<undefined>;
930
- /**
931
- * 配置web节点接收带宽
932
- *
933
- * @public
934
- */
935
- setWebRxBandwidth(): Promise<undefined>;
936
936
  /**
937
937
  * 重新发送content offer
938
938
  *
@@ -9,7 +9,7 @@
9
9
  * Last modified : 2023-01-12 11:18:44
10
10
  */
11
11
  import Logger from '../tools/logger';
12
- import { ILayout, IVideoRenders, IRoster, ITemplateObj, IScreenInfo, IMode, IOutputCustomLayout, ILayoutRoster, IResolutionType, IConfInfo, IPageInfo, IReqInfo, IQualityType } from '../type/index';
12
+ import { ILayout, IVideoRenders, IRoster, ITemplateObj, IScreenInfo, IMode, IOutputCustomLayout, ILayoutRoster, IConfInfo, IPageInfo, IReqInfo, VideoQuality, StreamResolutionLevel } from '../type/index';
13
13
  import Client from './client';
14
14
  export default class LayoutManager {
15
15
  logger: Logger;
@@ -35,10 +35,10 @@ export default class LayoutManager {
35
35
  private pageInfo;
36
36
  private isLocalShareContent;
37
37
  constructor(client: Client);
38
- static getCustomLayoutItem(item: ILayout, resolution: IResolutionType, quality: IQualityType): {
38
+ static getCustomLayoutItem(item: ILayout, resolution: StreamResolutionLevel, quality: VideoQuality): {
39
39
  pid: number;
40
- resolution: IResolutionType;
41
- quality: IQualityType;
40
+ resolution: StreamResolutionLevel;
41
+ quality: VideoQuality;
42
42
  mediagroupid: number;
43
43
  };
44
44
  getNewLayout(): ILayout[];
@@ -171,7 +171,7 @@ export default class LayoutManager {
171
171
  calculateNewLayoutList(): {
172
172
  roster: IRoster;
173
173
  position: number[];
174
- resolution: IResolutionType;
174
+ resolution: number;
175
175
  zIndex: number;
176
176
  }[];
177
177
  calculateScreenInfo(): {
@@ -210,5 +210,17 @@ export default class LayoutManager {
210
210
  * @param mediagroupid type
211
211
  */
212
212
  private getLayoutKeyByRotateInfo;
213
+ /**
214
+ * 本地镜像显示画面
215
+ */
213
216
  private localMirrorRotate;
217
+ /**
218
+ * 获取最终请流分辨率
219
+ * 1. 根据是否启用低性能模式
220
+ * 2. 根据企业配置转换请流分辨率
221
+ *
222
+ * @param { ITemplateResolution } resolution - layout模版分辨率
223
+ * @returns { resolutionLevel }
224
+ */
225
+ private convertResolutionLevel;
214
226
  }
@@ -2,9 +2,9 @@
2
2
  * Meeting Info Control
3
3
  *
4
4
  * Created at : 2022-10-27 13:58:22
5
- * Last modified : 2022-11-04 14:45:39
5
+ * Last modified : 2023-04-18 14:10:12
6
6
  */
7
- import { IConferenceInfo, IRecordPermission, IConfMgmtUrl, ILayout } from '../type';
7
+ import { IConferenceInfo, IRecordPermission, IConfMgmtUrl, ILayout, IMediaConfig, IReqInfo } from '../type';
8
8
  import Client from './client';
9
9
  import Logger from '../tools/logger';
10
10
  declare class Meeting {
@@ -15,9 +15,13 @@ declare class Meeting {
15
15
  private cloudRoomInfo;
16
16
  private confMgmtUrl;
17
17
  private layoutAvatarMap;
18
+ private mediaConfig;
19
+ private rxBandwidth;
18
20
  constructor(client: Client, logger: Logger);
19
21
  getRecordPermission(): IRecordPermission;
20
22
  getLayoutAvatarMap(): Map<string, string>;
23
+ getEnterpriseMediaConfig(): IMediaConfig;
24
+ getRxBandwidth(): number;
21
25
  /**
22
26
  * 登录用户信息和个人云会议室信息
23
27
  */
@@ -94,5 +98,18 @@ declare class Meeting {
94
98
  * @param { ILayout[] } unAvatarList 需要获取头像的终端
95
99
  */
96
100
  handleLayoutAvatar(unAvatarList: ILayout[]): Promise<void>;
101
+ /**
102
+ * 获取企业配置信息
103
+ * 1. 企业管理平台带宽配置
104
+ * 2. Web端请1080P能力
105
+ */
106
+ setEnterpriseConfig(): Promise<void>;
107
+ /**
108
+ * 根据企业配置媒体能力,得到最终的请流参数
109
+ *
110
+ * @param {IReqInfo[]} reqInfoList 请流列表数据
111
+ * @returns {IReqInfo[]}
112
+ */
113
+ convertReqList(reqInfoList: IReqInfo[]): IReqInfo[];
97
114
  }
98
115
  export default Meeting;
@@ -4,7 +4,7 @@
4
4
  * @authors Luo-jinghui (luojinghui424@gmail.com)
5
5
  * @date 2019-10-24 20:41:38
6
6
  */
7
- import { ITypeTemplate, ITemplate } from '../type';
7
+ import { ITypeTemplate, ITemplate, TEMPLATE_TYPE, ITemplateObj } from '../type';
8
8
  export declare const RATE = 0.5625;
9
9
  export declare const HIDE_POSITION: number[];
10
10
  export declare const SPEAKER_TEMPLATE: ITypeTemplate;
@@ -12,3 +12,10 @@ export declare const GALLERY_TEMPLATE: ITypeTemplate;
12
12
  export declare const COMMON_TEMPLATE: ITemplate;
13
13
  export declare const CONTENT_TEMPLATE: ITemplate;
14
14
  export declare const TEMPLATE: ITemplate;
15
+ /**
16
+ * forceLayout模版
17
+ *
18
+ * @param { TEMPLATE_TYPE } type - 模版类型
19
+ * @returns
20
+ */
21
+ export declare const FORCE_LAYOUT_TEMPLATE: (type: TEMPLATE_TYPE) => ITemplateObj;
@@ -1,6 +1,6 @@
1
1
  import { IToken } from './base';
2
2
  import VideoManager from '../main/videoManager';
3
- import { IInternels } from './stream';
3
+ import { IInternels, StreamResolution, StreamResolutionLevel, VideoQuality } from './stream';
4
4
  import { SupportLocalLanguages } from '../enum';
5
5
  import { ICloudRoomConfig } from './meeting';
6
6
  /**
@@ -153,24 +153,6 @@ export declare type TCommand = 0 | 1 | 2 | 3;
153
153
  * 设备类型
154
154
  */
155
155
  declare type IDeviceType = 'webrtc' | 'soft' | 'hard' | 'nemono' | 'virtualnemo' | 'nemo' | 'tvbox' | 'h323' | 'record' | 'bruce' | 'tel' | 'pstngw' | 'desk';
156
- /**
157
- * 请求画面分辨率
158
- *
159
- * @value 0 90P
160
- * @value 1 180P
161
- * @value 2 360P
162
- * @value 3 720P
163
- * @value 4 1080P
164
- */
165
- export declare type IResolutionType = 0 | 1 | 2 | 3 | 4 | 5;
166
- /**
167
- * 请求画面质量
168
- *
169
- * @value 0 100
170
- * @value 1 200
171
- * @value 3 300
172
- */
173
- export declare type IQualityType = 0 | 1 | 2;
174
156
  /**
175
157
  * 是否禁止收听
176
158
  *
@@ -267,22 +249,34 @@ export interface ILayoutParams {
267
249
  contentSenderPid: number;
268
250
  localHide: boolean;
269
251
  }
252
+ /**
253
+ * Layout 模版 分辨率
254
+ *
255
+ * @property { StreamResolutionLevel } normal 默认请流分辨率
256
+ * @property { StreamResolutionLevel } low 低性能请流分辨率
257
+ * @property { StreamResolutionLevel } high 高分辨率
258
+ */
259
+ export interface ITemplateResolution {
260
+ normal: StreamResolutionLevel;
261
+ low: StreamResolutionLevel;
262
+ high?: StreamResolutionLevel;
263
+ }
270
264
  /**
271
265
  * Layout模版定义
272
266
  *
273
267
  * @property { number[] } position - 位置/尺寸比例
274
- * @property { IResolutionType } resolution - 分辨率
268
+ * @property { ITemplateResolution } resolution - 分辨率
275
269
  * @property { number } resolution.normal - 正常分辨率
276
270
  * @property { number } resolution.low - 低性能模式分辨率
271
+ * @property { number ?} resolution.high - 高分辨率
272
+ * @property { VideoQuality } quality - 请流质量
277
273
  * @property { number } zIndex - 层级
278
274
  * @property { string } type - 类型,LOCAL/CONTENT
279
275
  */
280
276
  export declare type ITemplateObj = {
281
277
  position: number[];
282
- resolution: {
283
- normal: IResolutionType;
284
- low: IResolutionType;
285
- };
278
+ resolution: ITemplateResolution;
279
+ quality?: VideoQuality;
286
280
  zIndex?: number;
287
281
  type?: string;
288
282
  };
@@ -316,7 +310,7 @@ export interface IDefault {
316
310
  [id: number]: number;
317
311
  };
318
312
  MAP_RESOLUTION_INDEX: {
319
- [resolution: string]: number;
313
+ [resolution: string]: StreamResolutionLevel;
320
314
  };
321
315
  RESOLUTION_MAP: {
322
316
  [index: number]: number;
@@ -340,6 +334,7 @@ export interface IDefault {
340
334
  CONF_INFO: IConfInfo;
341
335
  CLOUD_ROOOM_INFO: ICloudRoomConfig;
342
336
  CONFERENCE_INFO: IConferenceInfo;
337
+ MAX_PEOPLE_RESOLUTION: StreamResolution;
343
338
  }
344
339
  /**
345
340
  * SDK登录用户信息
@@ -385,16 +380,16 @@ export interface IMUTE_MAP {
385
380
  * 配置画面数据
386
381
  *
387
382
  * @property { string } calluri 设备url
388
- * @property { IResolutionType } resolution 分辨率
389
- * @property { IQualityType } quality 质量
383
+ * @property { StreamResolutionLevel } resolution 分辨率
384
+ * @property { VideoQuality } quality 质量
390
385
  * @property { number } mediagroupid 0:people画面,1:content共享画面
391
386
  * @property { boolean } isContent 是否是共享内容,NewLayout版本无此参数,使用mediagroupid配置参数;
392
387
  * @property { string } callUri NewLayout版本无此参数
393
388
  */
394
389
  export declare type IReqInfo = {
395
390
  calluri: string;
396
- resolution: IResolutionType;
397
- quality: IQualityType;
391
+ resolution: StreamResolutionLevel;
392
+ quality: VideoQuality;
398
393
  mediagroupid?: number;
399
394
  isContent?: boolean;
400
395
  callUri?: string;
@@ -804,7 +799,7 @@ export interface ISpeakerInfo {
804
799
  * 布局对象
805
800
  *
806
801
  * @property { number[] } position 模版位置,业务层可以忽略
807
- * @property { IResolutionType } resolution 当前布局对象的分辨数据
802
+ * @property { StreamResolutionLevel } resolution 当前布局对象的分辨数据
808
803
  * @property { IRoster } roster 参会者基本信息、状态信息,例如:用户名、麦克风/摄像头状态、是否是主会场等信息
809
804
  * @property { any } rotate 当前参会者的旋转信息
810
805
  * @property { ILayoutState } state 当前参会者的画面状态信息,暂时未使用
@@ -816,7 +811,7 @@ export interface ISpeakerInfo {
816
811
  */
817
812
  export interface ILayout {
818
813
  position?: number[];
819
- resolution?: IResolutionType;
814
+ resolution?: StreamResolutionLevel;
820
815
  roster: IRoster;
821
816
  rotate?: any;
822
817
  state?: ILayoutState;
@@ -903,13 +898,13 @@ export interface IRotationInfo {
903
898
  * 自定义布局请流对象数据
904
899
  *
905
900
  * @property { number } pid 用户id,从roster中获取
906
- * @property { IResolutionType } resolution 当前请求画面分辨率
901
+ * @property { StreamResolutionLevel } resolution 当前请求画面分辨率
907
902
  * @value 0 90P
908
903
  * @value 1 180P
909
904
  * @value 2 360P
910
905
  * @value 3 720P
911
906
  * @value 4 1080P
912
- * @property { IQualityType } quality 画面质量
907
+ * @property { VideoQuality } quality 画面质量
913
908
  * @value 0 100
914
909
  * @value 1 200
915
910
  * @value 3 300
@@ -919,8 +914,8 @@ export interface IRotationInfo {
919
914
  */
920
915
  export interface ICustomLayout {
921
916
  pid: number;
922
- resolution: IResolutionType;
923
- quality: IQualityType;
917
+ resolution: StreamResolutionLevel;
918
+ quality: VideoQuality;
924
919
  mediagroupid: number;
925
920
  }
926
921
  /**
@@ -1202,7 +1197,7 @@ export interface IReceiveCustomMessage {
1202
1197
  * @property { boolean } enableMeetingShout 是否启用会控喊话场景,会控喊话场景需要指定mediaGroupId分组通道信息才可以正常接收远端声音;
1203
1198
  * @property { boolean } enableV2States 是否启用小鱼数据上报功能,默认启用,设置为true;
1204
1199
  * @property { boolean } enableCheckRecordPermission 是否启用录制权限查询功能,默认不启用,设置为false;
1205
- * @property { boolean } enableBandwidthSetting 是否启用管理平台带宽控制(双向),默认不启用,设置为false;
1200
+ * @property { boolean } enableBandwidthSetting 是否启用管理平台带宽控制(双向),是否可以请1080P的视频流,默认不启用,设置为false;
1206
1201
  * @property { boolean } enableMeetingInvite 是否启用查询小鱼会议邀请链接信息,默认不启用,设置为false;
1207
1202
  * @property { boolean } enableMeetingOwner 是否启用查询会议Owner信息,默认不启用,设置为false;
1208
1203
  * @property { boolean } enableAutoResizeLayout 是否启用自动布局下,当屏幕大小变化后计算最新的Layout数据,默认启用,设置为true;
@@ -1210,6 +1205,8 @@ export interface IReceiveCustomMessage {
1210
1205
  * @property { boolean } enableSpeakerInfo 是否启用推送实时讲话人信息,每秒2条消息推送,默认不启用,设置为false;
1211
1206
  * @property { boolean } config.enableLayoutAvatar 是否启用获取参会者头像,默认不启用,设置为false;
1212
1207
  * @property { boolean } enableMobileNotAuth 移动端是否支持无授权入会, 默认设置为false;
1208
+ * @property { boolean } enableWatermarkContent 是否启用获取content水印内容, 默认启用, 设置为true
1209
+ *
1213
1210
  */
1214
1211
  export interface IFeatureConfig {
1215
1212
  enableMeetingShout?: boolean;
@@ -1223,6 +1220,7 @@ export interface IFeatureConfig {
1223
1220
  enableSpeakerInfo?: boolean;
1224
1221
  enableLayoutAvatar?: boolean;
1225
1222
  enableMobileNotAuth?: boolean;
1223
+ enableWatermarkContent?: boolean;
1226
1224
  }
1227
1225
  export interface IConfMgmtUrl {
1228
1226
  pc: string;
@@ -2,10 +2,12 @@
2
2
  * 模板对应位置类型
3
3
  *
4
4
  * @enum
5
- * @property {LOCAL} LOCAL 本地
6
- * @property {CONTENT} CONTENT 共享画面
5
+ * @param {LOCAL} LOCAL - 本地
6
+ * @param {CONTENT} CONTENT - 共享画面
7
+ * @param {PEOPLE} PEOPLE - 非共享画面
7
8
  */
8
- export declare const TEMPLATE_TYPE: {
9
- LOCAL: string;
10
- CONTENT: string;
11
- };
9
+ export declare enum TEMPLATE_TYPE {
10
+ LOCAL = "LOCAL",
11
+ CONTENT = "CONTENT",
12
+ PEOPLE = "PEOPLE"
13
+ }
@@ -5,6 +5,7 @@
5
5
  * Last modified : 2022-10-27 19:25:49
6
6
  */
7
7
  import { ILoginInfo } from './client';
8
+ import { StreamResolution } from './stream';
8
9
  /**
9
10
  * 呼叫号码的云会议室属性配置
10
11
  */
@@ -54,3 +55,22 @@ export interface ICloudRoomConfig {
54
55
  export interface IExportUserInfo extends ILoginInfo {
55
56
  cloudRoomInfo: ICloudRoomConfig;
56
57
  }
58
+ /**
59
+ * 媒体能力配置
60
+ *
61
+ * @property { string? } pvrxResolution 请流能力
62
+ * @property { boolean } isSupportHighResolution 是否支持高分辨率请流
63
+ * @property { StreamResolution } maxRequestResolution 最高支持请流分辨率
64
+ */
65
+ export interface IMediaConfig {
66
+ pvrxResolution?: string;
67
+ isSupportHighResolution?: boolean;
68
+ maxRequestResolution?: StreamResolution;
69
+ }
70
+ /**
71
+ * 企业配置参数
72
+ */
73
+ export interface IEnterpriseConfig {
74
+ clientConfigName: string;
75
+ configName: string;
76
+ }
@@ -425,3 +425,43 @@ export interface IStreamChangeListType {
425
425
  content: IStreamChange[];
426
426
  people: IStreamChange[];
427
427
  }
428
+ /**
429
+ * 分辨率枚举列表
430
+ */
431
+ export declare enum StreamResolution {
432
+ RS90 = 90,
433
+ RS180 = 180,
434
+ RS360 = 360,
435
+ RS720 = 720,
436
+ RS1080 = 1080
437
+ }
438
+ /**
439
+ * 帧率枚举列表
440
+ */
441
+ export declare enum StreamFrameRate {
442
+ FR30 = 30,
443
+ FR15 = 15,
444
+ FR8 = 8
445
+ }
446
+ /**
447
+ * 分辨率等级枚举列表
448
+ */
449
+ export declare enum StreamResolutionLevel {
450
+ LEVEL90 = 0,
451
+ LEVEL180 = 1,
452
+ LEVEL360 = 2,
453
+ LEVEL720 = 3,
454
+ LEVEL1080 = 4
455
+ }
456
+ /**
457
+ * 视频质量
458
+ *
459
+ * @param LOW - 低画面质量,帧率会自动降低到15帧接收;
460
+ * @param NORMAL - 普通画面质量,会基于带宽信息自动在30/15帧切换;
461
+ * @param HIGH - 高画面质量,会优先匹配高帧率高分辨率画面;
462
+ */
463
+ export declare enum VideoQuality {
464
+ LOW = 0,
465
+ NORMAL = 1,
466
+ HIGH = 2
467
+ }