@xylink/xy-rtc-sdk 3.8.0-beta.3 → 3.8.0-beta.6

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.
@@ -249,6 +249,15 @@ declare class Action {
249
249
  * 获取个人云会议室信息,包含入会密码和个人云会议室号
250
250
  */
251
251
  getCloudMeetingRooms(userId: number): Promise<any>;
252
+ /**
253
+ * 获取参会者头像
254
+ *
255
+ * @param { string } callUrl
256
+ */
257
+ getInComingCallUrlInfo(callUrl: string): Promise<{
258
+ avatar: string;
259
+ }>;
260
+ sendVideoControlResult(type: 'muteVideo' | 'unMuteVideo', value: string): Promise<any>;
252
261
  }
253
262
  declare const _default: Action;
254
263
  export default _default;
@@ -0,0 +1,3 @@
1
+ export declare const DEVICE_TYPE_MAP: {
2
+ [key: string]: string;
3
+ };
@@ -134,4 +134,4 @@ export declare const HIDE_KEY_INFOS: string[];
134
134
  /**
135
135
  * SDK功能控制开关
136
136
  */
137
- export declare const DEFAULT_FEATURE_COFNIG: IFeatureConfig;
137
+ export declare const DEFAULT_FEATURE_CONFIG: IFeatureConfig;
@@ -4,15 +4,15 @@
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 } from '../type';
8
- import Emmitter from '../tools/emmitter';
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 } from '../type';
8
+ import Emitter from '../tools/emitter';
9
9
  import Socket from '../tools/socket';
10
10
  import Stream from './stream';
11
11
  import Logger from '../tools/logger';
12
12
  import IAuth from './iauth';
13
13
  import DeviceManager from './deviceManager';
14
14
  import LayoutManager from './layoutManager';
15
- export default class Client extends Emmitter {
15
+ export default class Client extends Emitter {
16
16
  logger: Logger;
17
17
  iauth: IAuth;
18
18
  socketTask: Socket | undefined;
@@ -51,7 +51,7 @@ export default class Client extends Emmitter {
51
51
  private peerConnectionStatus;
52
52
  private customLayoutSeq;
53
53
  private contentSenderPid;
54
- private shareContentTimmer;
54
+ private shareContentTimer;
55
55
  private streamChange;
56
56
  private streamChangeList;
57
57
  private seq;
@@ -71,8 +71,10 @@ export default class Client extends Emmitter {
71
71
  private qualityManager;
72
72
  private isShareContent;
73
73
  private isSubscribeTranslation;
74
+ private handStatus;
74
75
  private featureConfig;
75
76
  private meeting;
77
+ private speakerInfos;
76
78
  private onDocumentChange;
77
79
  constructor(config: IClientConfig, logger: Logger);
78
80
  static instance: Client;
@@ -128,6 +130,12 @@ export default class Client extends Emmitter {
128
130
  * @returns { boolean }
129
131
  */
130
132
  getLocalShareContent(): boolean;
133
+ /**
134
+ * 设置本地是否在等候室
135
+ *
136
+ * @param { boolean } onhold
137
+ */
138
+ setOnHold(onhold: boolean): void;
131
139
  /**
132
140
  * 小鱼账号初始登录,获取token方法
133
141
  *
@@ -156,20 +164,25 @@ export default class Client extends Emmitter {
156
164
  *
157
165
  * @public
158
166
  * @param { IFeatureConfig } config 功能配置项
159
- * @param { boolean } config.meetingShout 是否启用会控喊话场景,会控喊话场景需要指定mediaGroupId分组通道信息才可以正常接收远端声音;
160
- * @param { boolean } config.v2states 是否启用小鱼数据上报功能,默认不启用,设置为false;
161
- * @property { boolean } config.checkRecordPermission 是否启用录制权限查询功能,默认不启用,设置为false;
162
- * @property { boolean } config.bandwidthSetting 是否启用管理平台带宽控制(双向),默认不启用,设置为false;
163
- * @property { boolean } config.meetingInvite 是否启用查询小鱼会议邀请链接信息,默认不启用,设置为false;
164
- * @property { boolean } config.meetingOwner 是否启用查询会议Owner信息,默认不启用,设置为false;
165
- * @property { boolean } autoResizeLayout 是否启用自动布局下,当屏幕大小变化后计算最新的Layout数据,默认启用,设置为true;
166
- * @returns { boolean }
167
+ * @property { boolean } config.enableMeetingShout 是否启用会控喊话场景,会控喊话场景需要指定mediaGroupId分组通道信息才可以正常接收远端声音;
168
+ * @property { boolean } config.enableV2States 是否启用小鱼数据上报功能,默认启用,设置为true;
169
+ * @property { boolean } config.enableCheckRecordPermission 是否启用录制权限查询功能,默认不启用,设置为false;
170
+ * @property { boolean } config.enableBandwidthSetting 是否启用管理平台带宽控制(双向),默认不启用,设置为false;
171
+ * @property { boolean } config.enableMeetingInvite 是否启用查询小鱼会议邀请链接信息,默认不启用,设置为false;
172
+ * @property { boolean } config.enableMeetingOwner 是否启用查询会议Owner信息,默认不启用,设置为false;
173
+ * @property { boolean } config.enableAutoResizeLayout 是否启用自动布局下,当屏幕大小变化后计算最新的Layout数据,默认启用,设置为true;
174
+ * @property { boolean } config.enableLowResolution 是否启用低性能模式,降低发送和接收端的分辨率和质量,默认不启用,设置为false;
175
+ * @property { boolean } config.enableSpeakerInfo 是否启用推送实时讲话人信息,每秒2条消息推送,默认不启用,设置为false;
176
+ * @property { boolean } config.enableLayoutAvatar 是否启用获取参会者头像,默认不启用,设置为false;
177
+ * @returns { IResult }
178
+ */
179
+ setFeatureConfig(config: IFeatureConfig): import("../type").IReturnResult | undefined;
180
+ /**
181
+ * 限制Content和People发送能力
182
+ *
183
+ * @param { boolean } limitPeople - 是否限制People的发送能力
167
184
  */
168
- setFeatureConfig(config: IFeatureConfig): {
169
- code: string;
170
- msg: string;
171
- detail: any;
172
- } | undefined;
185
+ private setLimitResolution;
173
186
  /**
174
187
  * 获取会控地址
175
188
  */
@@ -281,6 +294,21 @@ export default class Client extends Emmitter {
281
294
  * @param { any } resolve
282
295
  */
283
296
  handleSocketMessage(data: any, resolve: any): void;
297
+ /**
298
+ * 处理会控上报开启/关闭摄像头事件
299
+ *
300
+ * @private
301
+ * @param { Object } data 远端数据
302
+ */
303
+ private onEPMessage;
304
+ /**
305
+ * 通知会控打开/关闭摄像头结果
306
+ *
307
+ * @param { 'muteVideo' | 'unMuteVideo' } type - 结果类型
308
+ * @param { IVideoControlResult } data - 数据详情
309
+ * @returns { Promise<IReturnResult | null> }
310
+ */
311
+ sendVideoControlResult(type: 'muteVideo' | 'unMuteVideo', data: IVideoControlResult): Promise<import("../type").IReturnResult>;
284
312
  /**
285
313
  * 处理录制状态上报
286
314
  *
@@ -571,6 +599,12 @@ export default class Client extends Emmitter {
571
599
  * @param { any } data 媒体消息
572
600
  */
573
601
  private onPassThroughMessage;
602
+ /**
603
+ * 处理实时讲话人信息
604
+ *
605
+ * @private
606
+ */
607
+ private onSpeakerInfoMessage;
574
608
  /**
575
609
  * 处理contentOnhold
576
610
  *
@@ -653,11 +687,12 @@ export default class Client extends Emmitter {
653
687
  */
654
688
  sendAudioStatus(status: boolean | string): void;
655
689
  /**
656
- * 发布layout数据
690
+ * 发布 自动布局/自定义布局 layout布局信息(参会人最新的布局列表数据)
657
691
  *
658
692
  * @public
693
+ * @params { boolean } isDealAvatar 是否处理layout头像, 启用相关配置后,默认处理
659
694
  */
660
- sendLayoutMessage(): void;
695
+ sendLayoutMessage(isDealAvatar?: boolean): void;
661
696
  /**
662
697
  * 发布最新的已经排序过的的roster信息
663
698
  *
@@ -670,12 +705,6 @@ export default class Client extends Emmitter {
670
705
  * @private
671
706
  */
672
707
  private sendsOriginOrderRosterMessage;
673
- /**
674
- * 【仅支持2.0.2以前的版本】发布 自定义布局 layout布局信息(参会人最新的布局列表数据)
675
- *
676
- * @public
677
- */
678
- sendCustomLayoutMessage(): void;
679
708
  /**
680
709
  * 发布Layout Container的容器信息
681
710
  *
@@ -900,11 +929,7 @@ export default class Client extends Emmitter {
900
929
  * @param { number } mediagroupId 分组id,也称sessionId或者mediaGroupId,代表只向此分组通道发送音频数据
901
930
  * @returns { boolean }
902
931
  */
903
- bindTrackGroup(trackType: 'audio' | 'video', mediagroupId: number): true | {
904
- code: string;
905
- msg: string;
906
- detail: any;
907
- };
932
+ bindTrackGroup(trackType: 'audio' | 'video', mediagroupId: number): true | import("../type").IReturnResult;
908
933
  /**
909
934
  * 启用多分组通道,接收多分组通道数据
910
935
  *
@@ -912,11 +937,7 @@ export default class Client extends Emmitter {
912
937
  * @param { Key[] } mediagrpIds 多分组sessionId,可以配置多个或一个值
913
938
  * @returns { boolean }
914
939
  */
915
- startMonitorGroup(mediagrpIds: Key[]): true | {
916
- code: string;
917
- msg: string;
918
- detail: any;
919
- };
940
+ startMonitorGroup(mediagrpIds: Key[]): true | import("../type").IReturnResult;
920
941
  /**
921
942
  * 停止多分组通道,销毁资源
922
943
  *
@@ -924,11 +945,7 @@ export default class Client extends Emmitter {
924
945
  * @param { Key[] } mediagrpIds 多分组sessionId,可以配置多个或一个值
925
946
  * @returns { boolean }
926
947
  */
927
- stopMonitorGroup(mediagrpIds: Key[]): true | {
928
- code: string;
929
- msg: string;
930
- detail: any;
931
- };
948
+ stopMonitorGroup(mediagrpIds: Key[]): true | import("../type").IReturnResult;
932
949
  /**
933
950
  * 设置多分组通道,通用方法
934
951
  *
@@ -954,8 +971,8 @@ export default class Client extends Emmitter {
954
971
  * init websocket connection
955
972
  *
956
973
  * @private
957
- * @param { any } resolve
958
- * @param { any } reject
974
+ * @param { Promise.resolve } resolve 响应回调
975
+ * @param { Promise.reject } reject 拒绝回调
959
976
  */
960
977
  private initWss;
961
978
  }
@@ -9,15 +9,15 @@
9
9
  * Last modified : 2022-06-09 17:33:47
10
10
  */
11
11
  import Logger from '../tools/logger';
12
- import Emmitter from '../tools/emmitter';
12
+ import Emitter from '../tools/emitter';
13
13
  import { IDeviceList, ISelectedDevice, ICurrentPermission } from '../type';
14
14
  /**
15
15
  * DeviceManager模块,用于管理枚举设备列表、监听设备变动、处理设备权限等功能
16
16
  *
17
17
  * @class DeviceManager
18
- * @extends Emmitter 事件发送器
18
+ * @extends Emitter 事件发送器
19
19
  */
20
- declare class DeviceManager extends Emmitter {
20
+ declare class DeviceManager extends Emitter {
21
21
  private navigator;
22
22
  private currentDeviceList;
23
23
  private nextDeviceList;
@@ -5,7 +5,7 @@
5
5
  * @email luojinghui424@gmail.com
6
6
  *
7
7
  * Created at : 2021-01-09 14:45:46
8
- * Last modified : 2022-06-09 17:35:24
8
+ * Last modified : 2022-11-03 19:20:11
9
9
  */
10
10
  import { ILayout, IVideoManagerState, IRotationInfoTotalItem } from '../type';
11
11
  export declare const getLayoutItemState: (item: ILayout | ILayout, stream: MediaStream | null, vmState: IVideoManagerState) => "REQUEST" | "NORMAL" | "AUDIO_ONLY" | "MUTE" | "AUDIO_TEL" | "AUDIO_CONTENT";
@@ -24,10 +24,6 @@ declare class IAuth {
24
24
  * @param { ISdkUserInfo } sdkUserInfo
25
25
  * @param { ILoginExtAccount } params
26
26
  */
27
- login(sdkUserInfo: ISdkUserInfo, params?: ILoginExtAccount): Promise<{
28
- code: string;
29
- msg: string;
30
- detail: any;
31
- }>;
27
+ login(sdkUserInfo: ISdkUserInfo, params?: ILoginExtAccount): Promise<import("../type").IReturnResult>;
32
28
  }
33
29
  export default IAuth;
@@ -6,7 +6,7 @@
6
6
  * @email luojinghui424@gmail.com
7
7
  *
8
8
  * Created at : 2021-01-05 17:24:07
9
- * Last modified : 2022-10-27 19:25:09
9
+ * Last modified : 2022-11-03 15:48:52
10
10
  */
11
11
  import Logger from '../tools/logger';
12
12
  import { ILayout, IVideoRenders, IRoster, ITemplateObj, IScreenInfo, IMode, IOutputCustomLayout, ILayoutRoster, IResolutionType, IConfInfo, IPageInfo, IReqInfo, IQualityType } from '../type/index';
@@ -171,7 +171,7 @@ export default class LayoutManager {
171
171
  calculateNewLayoutList(): {
172
172
  roster: IRoster;
173
173
  position: number[];
174
- resolution: 1 | 2 | 3 | 4 | 5;
174
+ resolution: IResolutionType;
175
175
  zIndex: number;
176
176
  }[];
177
177
  calculateScreenInfo(): {
@@ -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-10-27 19:25:16
5
+ * Last modified : 2022-11-04 14:45:39
6
6
  */
7
- import { IConferenceInfo, IRecordPermission, IConfMgmtUrl } from '../type';
7
+ import { IConferenceInfo, IRecordPermission, IConfMgmtUrl, ILayout } from '../type';
8
8
  import Client from './client';
9
9
  import Logger from '../tools/logger';
10
10
  declare class Meeting {
@@ -12,10 +12,12 @@ declare class Meeting {
12
12
  logger: Logger;
13
13
  conferenceInfo: IConferenceInfo;
14
14
  private recordPermission;
15
- private cloudRooomInfo;
15
+ private cloudRoomInfo;
16
16
  private confMgmtUrl;
17
+ private layoutAvatarMap;
17
18
  constructor(client: Client, logger: Logger);
18
19
  getRecordPermission(): IRecordPermission;
20
+ getLayoutAvatarMap(): Map<string, string>;
19
21
  /**
20
22
  * 登录用户信息和个人云会议室信息
21
23
  */
@@ -42,13 +44,16 @@ declare class Meeting {
42
44
  */
43
45
  private getMeetingControlUrl;
44
46
  /**
45
- * 获取vcnumber真实的会议室信息
47
+ * 获取vcNumber真实的会议室信息
46
48
  *
47
49
  * @param { string } vcNumber 终端对应的会议室号码
48
50
  */
49
51
  private getVCConfInfo;
50
52
  /**
51
53
  * 获取Content水印内容
54
+ *
55
+ * @private
56
+ * @param { string } confAuxProperties 水印内容
52
57
  */
53
58
  private getWatermarkContent;
54
59
  /**
@@ -76,5 +81,18 @@ declare class Meeting {
76
81
  * 获取个人云会议室信息,包含入会密码和个人云会议室号
77
82
  */
78
83
  getCloudMeetingRooms(): Promise<void>;
84
+ /**
85
+ * 处理信令下发的等候室
86
+ *
87
+ * @private
88
+ * @param { IWaitingRoomProps } waitingRoomProps 等候室信息
89
+ */
90
+ private handleWaitingRoomInfo;
91
+ /**
92
+ * 处理layout图像
93
+ *
94
+ * @param { ILayout[] } unAvatarList 需要获取头像的终端
95
+ */
96
+ handleLayoutAvatar(unAvatarList: ILayout[]): Promise<void>;
79
97
  }
80
98
  export default Meeting;
@@ -5,11 +5,11 @@
5
5
  * @date 2019-10-27 23:12:45
6
6
  */
7
7
  import Logger from '../tools/logger';
8
- import Emmitter from '../tools/emmitter';
8
+ import Emitter from '../tools/emitter';
9
9
  import { IStreamChangeType, IStreamObj, IGetMediaStreams, ISource, IStreamInitConfig, IStreamCurrent, IMediaSupportedConstraints, IStreamChange } from '../type';
10
10
  import Peer from './peer';
11
11
  import Client from './client';
12
- export default class Stream extends Emmitter {
12
+ export default class Stream extends Emitter {
13
13
  streams: IStreamObj[];
14
14
  config: IStreamInitConfig;
15
15
  current: IStreamCurrent;
@@ -77,7 +77,7 @@ export default class Stream extends Emmitter {
77
77
  * @returns
78
78
  */
79
79
  private replaceVideoTrack;
80
- setAudioOrVideoStatus(type: string): Promise<undefined>;
80
+ setAudioOrVideoStatus(type: string): Promise<import("../type").IReturnResult | undefined>;
81
81
  private setStreamStatus;
82
82
  private getNextAudioContraints;
83
83
  private getNextAudioMedia;
@@ -116,17 +116,13 @@ export default class Stream extends Emmitter {
116
116
  *
117
117
  * @public
118
118
  * @param { IStreamInitConfig } config 输入输出设备相关配置,默认是{}
119
- * @param { muteVideo: boolean; muteAudio: boolean } params 可选参数,是否开启麦克风或者摄像头设备,默认情况下可以通过creatClient配置即可
119
+ * @param { muteVideo: boolean; muteAudio: boolean } params 可选参数,是否开启麦克风或者摄像头设备,默认情况下可以通过createClient配置即可
120
120
  * @returns { IResult } 返回结果
121
121
  */
122
122
  init(config?: IStreamInitConfig, params?: {
123
123
  muteVideo?: boolean;
124
124
  muteAudio?: boolean;
125
- }): Promise<{
126
- code: string;
127
- msg: string;
128
- detail: any;
129
- }>;
125
+ }): Promise<import("../type").IReturnResult>;
130
126
  /**
131
127
  * 获取content采集配置信息
132
128
  *
@@ -1,10 +1,10 @@
1
1
  /**
2
- * Event Emmitter
2
+ * Event Emitter
3
3
  *
4
4
  * @authors Luo-jinghui (luojinghui424@gmail.com)
5
5
  * @date 2019-10-17 19:14:39
6
6
  */
7
- export default class Emmitter {
7
+ export default class Emitter {
8
8
  private events;
9
9
  constructor();
10
10
  on(key: string, listener: Function, total?: number): void;
@@ -3,6 +3,7 @@
3
3
  * @authors Luo-jinghui (luojinghui424@gmail.com)
4
4
  * @date 2019-11-08 15:54:21
5
5
  */
6
+ import { IReturnResult } from '../type';
6
7
  /**
7
8
  * 防抖函数
8
9
  *
@@ -46,11 +47,7 @@ export declare const diffTime: (time1: number, time2: number, format?: string) =
46
47
  export declare function mapToObj<T>(data: Map<string, T>): {
47
48
  [key: string]: T;
48
49
  };
49
- export declare const getStatus: (code: string, detail?: any, msg?: string) => {
50
- code: string;
51
- msg: string;
52
- detail: any;
53
- };
50
+ export declare const getStatus: (code: string, detail?: any, msg?: string) => IReturnResult;
54
51
  export declare const getMeetingStatus: (success: boolean, code?: string, msg?: string) => {
55
52
  success: boolean;
56
53
  data: {
@@ -68,4 +68,16 @@ export interface ISignParams {
68
68
  token: string;
69
69
  signSecret: string;
70
70
  }
71
+ /**
72
+ * 返回结果内容
73
+ *
74
+ * @property { string } code - 结果码
75
+ * @property { string } msg - 结果说明
76
+ * @property { any } detail - 数据内容
77
+ */
78
+ export interface IReturnResult {
79
+ code: string;
80
+ msg: string;
81
+ detail: any;
82
+ }
71
83
  export declare type Key = string | number;
@@ -267,9 +267,22 @@ export interface ILayoutParams {
267
267
  contentSenderPid: number;
268
268
  localHide: boolean;
269
269
  }
270
+ /**
271
+ * Layout模版定义
272
+ *
273
+ * @property { number[] } position - 位置/尺寸比例
274
+ * @property { IResolutionType } resolution - 分辨率
275
+ * @property { number } resolution.normal - 正常分辨率
276
+ * @property { number } resolution.low - 低性能模式分辨率
277
+ * @property { number } zIndex - 层级
278
+ * @property { boolean } isContent - 是否是共享内容
279
+ */
270
280
  export declare type ITemplateObj = {
271
281
  position: number[];
272
- resolution: IResolutionType;
282
+ resolution: {
283
+ normal: IResolutionType;
284
+ low: IResolutionType;
285
+ };
273
286
  zIndex?: number;
274
287
  isContent?: boolean;
275
288
  };
@@ -389,6 +402,7 @@ export declare type IReqInfo = {
389
402
  export interface IMeetingInfo {
390
403
  meetingId: string;
391
404
  callUri: string;
405
+ vcNumber: string;
392
406
  }
393
407
  /**
394
408
  * 调度失败的uri列表项目
@@ -819,6 +833,7 @@ export interface ILayout {
819
833
  quality?: 0 | 100 | 200;
820
834
  deal?: boolean;
821
835
  zIndex?: number;
836
+ avatar?: string;
822
837
  }
823
838
  /**
824
839
  * Local布局对象
@@ -1157,24 +1172,30 @@ export interface ITranslationContent {
1157
1172
  }
1158
1173
  /**
1159
1174
  * SDK功能控制开关,用于内部是否启用某些功能的运行
1160
- * 默认配置:src/enum/index.ts DEFAULT_FEATURE_COFNIG
1161
- *
1162
- * @property { boolean } meetingShout 是否启用会控喊话场景,会控喊话场景需要指定mediaGroupId分组通道信息才可以正常接收远端声音;
1163
- * @property { boolean } v2states 是否启用小鱼数据上报功能,默认启用,设置为true;
1164
- * @property { boolean } checkRecordPermission 是否启用录制权限查询功能,默认不启用,设置为false;
1165
- * @property { boolean } bandwidthSetting 是否启用管理平台带宽控制(双向),默认不启用,设置为false;
1166
- * @property { boolean } meetingInvite 是否启用查询小鱼会议邀请链接信息,默认不启用,设置为false;
1167
- * @property { boolean } meetingOwner 是否启用查询会议Owner信息,默认不启用,设置为false;
1168
- * @property { boolean } autoResizeLayout 是否启用自动布局下,当屏幕大小变化后计算最新的Layout数据,默认启用,设置为true;
1175
+ * 默认配置:src/enum/index.ts DEFAULT_FEATURE_CONFIG
1176
+ *
1177
+ * @property { boolean } enableMeetingShout 是否启用会控喊话场景,会控喊话场景需要指定mediaGroupId分组通道信息才可以正常接收远端声音;
1178
+ * @property { boolean } enableV2States 是否启用小鱼数据上报功能,默认启用,设置为true;
1179
+ * @property { boolean } enableCheckRecordPermission 是否启用录制权限查询功能,默认不启用,设置为false;
1180
+ * @property { boolean } enableBandwidthSetting 是否启用管理平台带宽控制(双向),默认不启用,设置为false;
1181
+ * @property { boolean } enableMeetingInvite 是否启用查询小鱼会议邀请链接信息,默认不启用,设置为false;
1182
+ * @property { boolean } enableMeetingOwner 是否启用查询会议Owner信息,默认不启用,设置为false;
1183
+ * @property { boolean } enableAutoResizeLayout 是否启用自动布局下,当屏幕大小变化后计算最新的Layout数据,默认启用,设置为true;
1184
+ * @property { boolean } enableLowResolution 是否启用低性能模式,降低发送和接收端的分辨率和质量,默认不启用,设置为false;
1185
+ * @property { boolean } enableSpeakerInfo 是否启用推送实时讲话人信息,每秒2条消息推送,默认不启用,设置为false;
1186
+ * @property { boolean } config.enableLayoutAvatar 是否启用获取参会者头像,默认不启用,设置为false;
1169
1187
  */
1170
1188
  export interface IFeatureConfig {
1171
- meetingShout?: boolean;
1172
- v2states?: boolean;
1173
- checkRecordPermission?: boolean;
1174
- bandwidthSetting?: boolean;
1175
- meetingInvite?: boolean;
1176
- meetingOwner?: boolean;
1177
- autoResizeLayout?: boolean;
1189
+ enableMeetingShout?: boolean;
1190
+ enableV2States?: boolean;
1191
+ enableCheckRecordPermission?: boolean;
1192
+ enableBandwidthSetting?: boolean;
1193
+ enableMeetingInvite?: boolean;
1194
+ enableMeetingOwner?: boolean;
1195
+ enableAutoResizeLayout?: boolean;
1196
+ enableLowResolution?: boolean;
1197
+ enableSpeakerInfo?: boolean;
1198
+ enableLayoutAvatar?: boolean;
1178
1199
  }
1179
1200
  export interface IConfMgmtUrl {
1180
1201
  pc: string;
@@ -1182,4 +1203,125 @@ export interface IConfMgmtUrl {
1182
1203
  side: string;
1183
1204
  mobile?: string;
1184
1205
  }
1206
+ /**
1207
+ * 上报会控控制开启/关闭摄像头结果
1208
+ *
1209
+ * @property { boolean } agree - 是否同意开启/关闭摄像头
1210
+ * no.camera.permission:终端未授权App摄像头权限
1211
+ * reject.unmute.video:参会人拒绝开启摄像头
1212
+ * voice.mode:终端在语音模式
1213
+ * driving.mode:终端在驾驶模式
1214
+ * '':同意为空即可
1215
+ * @property { string } reason - 是否同意开启/关闭摄像头
1216
+ * @property { string } requestId - 终端收到的muteVideoQuery/unMuteVideoQuery消息中的requestId
1217
+ */
1218
+ export interface IVideoControlResult {
1219
+ agree: boolean;
1220
+ reason: string;
1221
+ requestId: string;
1222
+ }
1223
+ /**
1224
+ * 信令下发会控开关摄像头消息内容
1225
+ *
1226
+ * @property { string } body - 消息体,JSON字符串需要解析
1227
+ * @property { number } callIndex - 消息索引值
1228
+ * @property { string } callerUri - caller uri
1229
+ * @property { string } type - 消息类型
1230
+ */
1231
+ export interface IEPMessage {
1232
+ body: string;
1233
+ callIndex: number;
1234
+ callerUri: string;
1235
+ type: string;
1236
+ }
1237
+ /**
1238
+ * 会控开启/关闭摄像头消息、Toast提示消息
1239
+ */
1240
+ export declare type IMCVideoEvent = controlVideoQuery | unMuteVideoQueryToast;
1241
+ /**
1242
+ * 会控开关摄像头三个事件类型
1243
+ * unMuteVideoQuery: 会控请求打开摄像头
1244
+ * muteVideoQuery: 会控请求关闭摄像头
1245
+ * toast: 主持会议的客户端收到的成功和失败提醒
1246
+ */
1247
+ export declare type queryType = 'unMuteVideoQuery' | 'muteVideoQuery' | 'toast';
1248
+ /**
1249
+ * 会控开关摄像头事件基础消息体
1250
+ *
1251
+ * @property { string } confUri - 会议号
1252
+ * @property { string } encryption - 加密信息
1253
+ * @property { boolean } force - 是否强制开启摄像头
1254
+ * @property { string } meetingId - 会议ID
1255
+ * @property { string } requestId - 事件ID
1256
+ * @property { string } uri - 事件接收侧用户ID
1257
+ *
1258
+ */
1259
+ export interface videoQueryBase {
1260
+ confUri: string;
1261
+ encryption: string;
1262
+ force: boolean;
1263
+ meetingId: string;
1264
+ requestId: string;
1265
+ uri: string;
1266
+ }
1267
+ /**
1268
+ * 主持端得到远端开启摄像头结果的提示消息体
1269
+ *
1270
+ * @property { string } message - 消息体,需要解析,详细内容如下:
1271
+ * no.camera.permission: 终端未授权App摄像头权限
1272
+ * reject.unmute.video: 参会人拒绝开启摄像头
1273
+ * voice.mode: 终端在语音模式
1274
+ * driving.mode: 终端在驾驶模式
1275
+ * unmute.video.timeout: 超时
1276
+ * @property { string } di - 终端的deviceUri
1277
+ * @property { string } dn - 终端的名称
1278
+ */
1279
+ export interface unMuteVideoQueryToastValue extends videoQueryBase {
1280
+ message: string;
1281
+ di: string;
1282
+ dn: string;
1283
+ }
1284
+ /**
1285
+ * 会控推送开启/关闭摄像头消息体
1286
+ *
1287
+ * @property { string } key - 消息key,值为:'unMuteVideoQuery' | 'muteVideoQuery'
1288
+ * @property { videoQueryBase } value - 消息详细内容
1289
+ *
1290
+ */
1291
+ export interface controlVideoQuery {
1292
+ key: queryType;
1293
+ value: videoQueryBase;
1294
+ }
1295
+ /**
1296
+ * 主持会议端收到远端开启摄像头结果的提示消息体
1297
+ *
1298
+ * @property { string } key - 消息key,值为:toast
1299
+ * @property { unMuteVideoQueryToastValue } value - 消息详细内容
1300
+ */
1301
+ export interface unMuteVideoQueryToast {
1302
+ key: queryType;
1303
+ value: unMuteVideoQueryToastValue;
1304
+ }
1305
+ /**
1306
+ * 讲话者信息
1307
+ *
1308
+ * @property { string } alias - 别名id
1309
+ * @property { string } name - 讲话者名称
1310
+ * @property { string } pid - pid
1311
+ *
1312
+ */
1313
+ export interface SpeakersInfoObj {
1314
+ alias: string;
1315
+ name: string;
1316
+ pid: number;
1317
+ }
1318
+ /**
1319
+ * 实时讲话人消息体
1320
+ *
1321
+ * @property { speakersInfoObj[] } speakerInfo - 讲话者信息
1322
+ *
1323
+ */
1324
+ export interface SpeakersInfo {
1325
+ speakerInfo: SpeakersInfoObj[];
1326
+ }
1185
1327
  export {};