@xylink/xy-rtc-sdk 3.9.1 → 3.9.4

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.
@@ -14,14 +14,22 @@ declare class Action {
14
14
  private statesTime;
15
15
  private httpDefaultBaseUrl;
16
16
  private logHttpDefaultBaseUrl;
17
- constructor();
18
- setBaseUrl(baseUrl?: string, logUrl?: string): void;
19
- setLogBaseUrl(logUrl?: string): void;
17
+ constructor(logger?: Logger);
18
+ /**
19
+ * 设置服务器地址
20
+ *
21
+ * @param { object } options - 包含基本URL和日志URL的对象。
22
+ * @property { string } options.baseUrl - 服务器的基本URL。
23
+ * @property { string } options.logUrl - 日志服务器的URL。
24
+ */
25
+ setBaseUrl({ baseUrl, logUrl }: {
26
+ baseUrl?: string;
27
+ logUrl?: string;
28
+ }): void;
20
29
  setClientInfo({ clientId, clientSecret }: {
21
30
  clientId: string;
22
31
  clientSecret: string;
23
32
  }): void;
24
- setLogger(logger: Logger): void;
25
33
  setMeetingInfo(info: IMeetingInfo): void;
26
34
  setTokenInfo(tokenInfo: IToken | null): void;
27
35
  getTokenInfo(): IToken;
@@ -313,5 +321,4 @@ declare class Action {
313
321
  */
314
322
  private customLogin;
315
323
  }
316
- declare const _default: Action;
317
- export default _default;
324
+ export default Action;
package/lib/index.d.ts CHANGED
@@ -6,7 +6,7 @@
6
6
  * @authors Luo-jinghui (luojinghui424@gmail.com)
7
7
  * @date 2019-10-14 18:20:28
8
8
  */
9
- import { IClientConfig, IConfig, TLocale, ICheckSystemRequirements, ISteamConfig } from './type';
9
+ import { IClientConfig, TLocale, ICheckSystemRequirements, ISteamConfig } from './type';
10
10
  import DeviceManager from './main/deviceManager';
11
11
  import Logger from './tools/logger';
12
12
  import Client from './main/client';
@@ -20,19 +20,22 @@ interface XYLinkRTC {
20
20
  version: string;
21
21
  client: Client | null;
22
22
  logger: Logger;
23
+ create: (config: IClientConfig, logger?: Logger) => {
24
+ client: Client;
25
+ stream: Stream;
26
+ };
23
27
  createClient: (config: IClientConfig, logger?: Logger) => Client;
24
28
  createStream: (config?: ISteamConfig, logger?: Logger) => Stream;
25
29
  checkSupportWebRTC: () => Promise<ICheckSystemRequirements>;
26
30
  checkSupportMobileWebRTC: () => Promise<ICheckSystemRequirements>;
27
31
  checkSupportShareContent: () => boolean;
28
32
  setLocale: (language: TLocale) => void;
29
- setConfig: (config: IConfig) => void;
30
33
  closePreviewStream: (stream: MediaStream) => void;
31
34
  setOutputAudioDevice: (element: HTMLMediaElement, outputValue: string) => void;
32
35
  render: void;
33
36
  }
34
- declare const xyRTC: XYLinkRTC;
35
- export default xyRTC;
37
+ declare const XYRTC: XYLinkRTC;
38
+ export default XYRTC;
36
39
  export { Client, Stream, Logger, DeviceManager, getLayoutItemState, getVideoInfoByRotation as getVideoInfoByRotaion, getLayoutRotateInfo, getSendSupportedCodec, detectLocator };
37
40
  export * from './type';
38
41
  export { ERROR_CODE } from './enum/errorCode';
@@ -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, IInternals, IVideoAudioType, ShareContentStatus, IPushType, IMode, IReqInfo, TCommand, ILayout, IConference, ContentMode, IToken, AutoMute, Key, IRecordPermission, TLocalLanguage, IFeatureConfig, IConfMgmtUrl, IVideoControlResult, ICustomMessageConfig, OperateType, PushType, FacingMode, IFacingMode, ILoginWidthAuthCode, LoginXYAccountParams, LoginExtTokenParams, IReturnResult, InviteInfo, LayoutOrientationType } from '../type';
7
+ import { IClientConfig, ICall, IMackCall, IInvite, IMeetingControl, IRoster, ILayoutRoster, ISpeakerInfo, IScreenInfo, ILoginExtAccount, IPublishParams, ICustomLayout, ICustomStreamTrack, IInternals, IVideoAudioType, ShareContentStatus, IPushType, IMode, IReqInfo, TCommand, ILayout, IConference, ContentMode, IToken, AutoMute, Key, IRecordPermission, TLocalLanguage, IFeatureConfig, IConfMgmtUrl, IVideoControlResult, ICustomMessageConfig, OperateType, PushType, FacingMode, IFacingMode, ILoginWidthAuthCode, LoginXYAccountParams, LoginExtTokenParams, IReturnResult, InviteInfo, LayoutOrientationType, LoginTokenInfo } from '../type';
8
8
  import Emitter from '../tools/emitter';
9
9
  import Socket from '../tools/socket';
10
10
  import Stream from './stream';
@@ -12,8 +12,10 @@ import Logger from '../tools/logger';
12
12
  import IAuth from './iauth';
13
13
  import DeviceManager from './deviceManager';
14
14
  import LayoutManager from './layout';
15
+ import Action from '../action';
15
16
  export default class Client extends Emitter {
16
17
  logger: Logger;
18
+ action: Action;
17
19
  iauth: IAuth;
18
20
  socketTask: Socket | undefined;
19
21
  invite: IInvite;
@@ -120,7 +122,14 @@ export default class Client extends Emitter {
120
122
  getPeerConnectionStatus(): boolean;
121
123
  getOnHold(): boolean;
122
124
  getAudioTrackList(): ICustomStreamTrack[];
125
+ /**
126
+ * 将Stream实例绑定到Client模块上,方便互相调用
127
+ *
128
+ * @param { Stream } stream - Stream实例模块
129
+ */
130
+ bindStreamInstance(stream: Stream): void;
123
131
  getLayoutMap(): Map<any, any>;
132
+ getLayoutManger(): LayoutManager | null;
124
133
  /**
125
134
  * 获取Local roster信息
126
135
  *
@@ -148,6 +157,10 @@ export default class Client extends Emitter {
148
157
  * @returns { IMediaConfig }
149
158
  */
150
159
  getEnterpriseMediaConfig(): import("../type").IMediaConfig;
160
+ /**
161
+ * 会控消息
162
+ */
163
+ getMeetingControlInfo(): IMeetingControl | null;
151
164
  /**
152
165
  * 切换布局方向
153
166
  *
@@ -335,17 +348,17 @@ export default class Client extends Emitter {
335
348
  /**
336
349
  * 切换主画面
337
350
  *
338
- * @param { string } id 指定切换到主画面的LayoutId
339
- * @returns { Promise<string> } LayoutId
351
+ * @param { string } rosterId 指定切换到主画面的rosterId
352
+ * @returns { Promise<string> } rosterId
340
353
  */
341
- setFocusView(id: string): Promise<string>;
354
+ setFocusView(rosterId: string): Promise<string>;
342
355
  /**
343
356
  * AUTO布局 分页
344
357
  *
345
358
  * @public
346
359
  * @param { number } currentPage 请求某一页数据
347
360
  */
348
- setPageInfo(currentPage?: number): Promise<never> | undefined;
361
+ setPageInfo(currentPage?: number): Promise<undefined>;
349
362
  /**
350
363
  * 检查并获取会议室录制权限
351
364
  *
@@ -457,6 +470,12 @@ export default class Client extends Emitter {
457
470
  * @param { IMonitorReportMessage } data 媒体调度消息
458
471
  */
459
472
  private onMonitorReportMessage;
473
+ /**
474
+ * 无登录模式调用,需要在调用makeCall前配置,用于网关签名计算和接口安全校验
475
+ *
476
+ * @param { LoginTokenInfo } info - 登录token、clientId等相关信息
477
+ */
478
+ setLoginTokenInfo(info: LoginTokenInfo): void;
460
479
  /**
461
480
  * 发起会议呼叫,如果返回 true ,代表是否可以继续呼叫;
462
481
  *
@@ -815,6 +834,12 @@ export default class Client extends Emitter {
815
834
  * @param { OperateType } type - 操作类型
816
835
  */
817
836
  emitVideoStatus(type: OperateType): void;
837
+ /**
838
+ * 入会成功后,再上报焦点画面
839
+ *
840
+ * @param { IRoster | null } focusRoster - 焦点画面
841
+ */
842
+ emitFocusView(focusRoster: IRoster | null): void;
818
843
  /**
819
844
  * 发布 自动布局/自定义布局 layout布局信息(参会人最新的布局列表数据)
820
845
  *
@@ -822,18 +847,12 @@ export default class Client extends Emitter {
822
847
  * @params { boolean } isDealAvatar 是否处理layout头像, 启用相关配置后,默认处理
823
848
  */
824
849
  sendLayoutMessage(isDealAvatar?: boolean): void;
825
- /**
826
- * 发布最新的已经排序过的的roster信息
827
- *
828
- * @private
829
- */
830
- private sendOriginOrderedRosterMessage;
831
850
  /**
832
851
  * 对媒体下发的roster信息进行排序,发布
833
852
  *
834
853
  * @private
835
854
  */
836
- private sendsOriginOrderRosterMessage;
855
+ private sendOriginOrderRosterMessage;
837
856
  /**
838
857
  * 发布Layout Container的容器信息
839
858
  *
@@ -5,7 +5,7 @@
5
5
  * @author jinghui-luo、chengfei
6
6
  *
7
7
  * Created at : 2020-11-26 14:41:51
8
- * Last modified : 2023-04-24 14:38:52
8
+ * Last modified : 2023-11-16 09:39:11
9
9
  */
10
10
  import Logger from '../tools/logger';
11
11
  import Emitter from '../tools/emitter';
@@ -43,6 +43,8 @@ declare class DeviceManager extends Emitter {
43
43
  * @param devices 设备数据
44
44
  */
45
45
  setCurrentUsedDevice(currentDevice: ISelectedDevice): Promise<void>;
46
+ checkDeviceIsExist(devices: IDeviceList, currentDevice: ISelectedDevice): ISelectedDevice;
47
+ checkDeviceIsExistByKind(devices: IDeviceInfo[], device: IDeviceInfo | undefined): IDeviceInfo | undefined;
46
48
  /**
47
49
  * 设置当前正在使用的设备信息
48
50
  * 切换设备时,需重新设置此值,为下次diffDevice 使用
@@ -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 : 2023-05-16 18:54:50
8
+ * Last modified : 2023-12-07 14:26:03
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" | "MUTE" | "AUDIO_TEL" | "AUDIO_ONLY" | "AUDIO_CONTENT";
@@ -49,3 +49,11 @@ export declare const detectLocator: ({ extId, clientId, clientSecret, httpServer
49
49
  clientSecret: string;
50
50
  httpServer?: string | undefined;
51
51
  }) => Promise<string>;
52
+ /**
53
+ * 生成用户唯一ID值
54
+ *
55
+ * @param { string } callUri - callUri或者endpointId值
56
+ * @param { number | string } mediagroupid - mid,多分组通道,常见:0代表people,1代表content,会控喊话有>10值
57
+ * @return { string } 唯一ID
58
+ */
59
+ export declare const getRosterId: (callUri?: string, mediagroupid?: number | string) => string;
@@ -3,12 +3,13 @@
3
3
  *
4
4
  */
5
5
  import { ILoginExtAccount, ISdkUserInfo, ILoginInfo, ILoginWidthAuthCode, LoginXYAccountParams, LoginExtTokenParams, ExtInfo } from '../type';
6
- import Logger from '../tools/logger';
6
+ import Client from './client';
7
7
  declare class IAuth {
8
8
  private logger;
9
9
  private loginInfo;
10
10
  private extInfo;
11
- constructor(logger: Logger, extInfo?: ExtInfo);
11
+ private action;
12
+ constructor(client: Client, extInfo?: ExtInfo);
12
13
  getLoginInfo(): ILoginInfo;
13
14
  setLoginInfo(loginInfo: ILoginInfo): void;
14
15
  setExtInfo(info: ExtInfo): void;
@@ -20,6 +21,7 @@ declare class IAuth {
20
21
  * @param { string } params.displayName 用户名称
21
22
  * @param { string } params.extId 企业id
22
23
  * @param { string? } params.extUserId 三方用户ID
24
+ * @param { boolean? } params.tempUser 是否是临时账号 v3.9.2新增
23
25
  * @return
24
26
  */
25
27
  loginExternalAccount(params: ILoginExtAccount): Promise<import("../type").IReturnResult>;
@@ -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 : 2023-07-07 16:49:48
9
+ * Last modified : 2023-12-08 15:34:41
10
10
  */
11
11
  import Logger from '../../tools/logger';
12
12
  import { ILayout, IVideoRenders, IRoster, IScreenInfo, IOutputCustomLayout, ILayoutRoster, IConfInfo, IPageInfo, IReqInfo, VideoQuality, StreamResolutionLevel, TLayoutMap, TemplateMode, ContentTemplateMode, IMode, LayoutOrientationType } from '../../type/index';
@@ -44,6 +44,36 @@ export default class LayoutManager {
44
44
  quality: VideoQuality;
45
45
  mediagroupid: number;
46
46
  };
47
+ /**
48
+ * 是否开启/接收content
49
+ */
50
+ get isContentMode(): boolean;
51
+ /**
52
+ * 当前是否是对话模式,且没有发送或接收content。
53
+ * content优先级大于对话模式
54
+ *
55
+ * @returns { boolean }
56
+ */
57
+ get isInDialogMode(): boolean;
58
+ /**
59
+ * 是否开启隐藏本地模式
60
+ *
61
+ * @returns { boolean }
62
+ */
63
+ get isEnableHideLocalView(): boolean;
64
+ /**
65
+ * 是否是主会场模式(远端设置为主会场)
66
+ * 会控下发的chairmanUri标识当前会议设置了主会场,
67
+ * 会控的chairmanUri有值时,媒体下发的chairManUrl才标识最终入会的主会场的CallUri
68
+ *
69
+ * @returns
70
+ */
71
+ get isChairmanMode(): boolean;
72
+ /**
73
+ * 是否是焦点模式
74
+ * forceLayout/content优先级大于对话模式
75
+ */
76
+ get isFocusMode(): boolean;
47
77
  getNewLayout(): ILayout[];
48
78
  getOrderRosterList(): IRoster[];
49
79
  getOriginOrderRosters(): IRoster[];
@@ -62,6 +92,7 @@ export default class LayoutManager {
62
92
  getConfInfo(): IConfInfo;
63
93
  getInternalsLayout(): IOutputCustomLayout;
64
94
  getLocalShareState(): boolean;
95
+ getFocusRoster(): IRoster | null;
65
96
  setOrderRosterList(orderRosterList: IRoster[]): void;
66
97
  setOriginOrderRosters(originOrderRosters: IRoster[]): void;
67
98
  /**
@@ -146,16 +177,20 @@ export default class LayoutManager {
146
177
  */
147
178
  switchLayout(templateMode?: IMode): "SPEAKER" | "GALLERY" | "MULTI_PIC_CONTENT_HIGH_PRIORITY" | "MULTI_PIC_ACTIVE_HIGH_PRIORITY" | "TWO_PIC_PIP" | "CONTENT_ONLY" | "TWO_PIC_SYMMETRIC";
148
179
  /**
149
- * 切换主画面, GALLERY布局不支持
180
+ * 切换主画面, GALLERY布局/会控设置焦点画面 不支持
150
181
  *
151
- * @param { string } id - 指定切换到主画面的LayoutId
152
- * @returns { string } id
182
+ * @param { string } rosterId - 指定切换到主画面的rosterId
183
+ * @returns { string } rosterId
153
184
  */
154
- setFocusView(id: string): string;
185
+ setFocusView(rosterId: string): string;
155
186
  /**
156
187
  * 更新Local video track
157
188
  */
158
189
  updateLocalTrack(): void;
190
+ /**
191
+ * [AUTO] 计算分页及请流信息
192
+ */
193
+ calcPageAndRequestLayout(confInfo?: IConfInfo): void;
159
194
  /**
160
195
  * [AUTO] 重新计算页码信息、模板类型
161
196
  *
@@ -207,11 +242,23 @@ export default class LayoutManager {
207
242
  */
208
243
  calculateOrderRosterList(): IRoster[];
209
244
  /**
210
- * 缓存主画面信息
245
+ * 设置焦点画面Roster
246
+ */
247
+ private setFocusRoster;
248
+ /**
249
+ * 缓存主画面信息, 并请流
250
+ *
251
+ * @param { string } id - 指定切换到主画面的RosterId
252
+ * @param { FocusViewKind } kind - 来源
253
+ * @param { IRoster | null } roster - 焦点画面roster
254
+ */
255
+ private handleFocusView;
256
+ /**
257
+ * 更新焦点画面参数
211
258
  *
212
- * @param { string } id - 指定切换到主画面的LayoutId
259
+ * @param { FocusViewConfig } config - 焦点画面参数
213
260
  */
214
- private handleFocusViewConfig;
261
+ private updateFocusViewConfig;
215
262
  /**
216
263
  * 计算 custom layout 数据
217
264
  */
@@ -283,6 +330,10 @@ export default class LayoutManager {
283
330
  * @param monitoryList callUri list 数据
284
331
  */
285
332
  clearVideoManagersUseMonitorList(monitoryList: string[]): void;
333
+ /**
334
+ * 根据roster信息计算请流信息, 对话模式仅支持对称布局
335
+ */
336
+ private calcRequestNewLayoutByRoster;
286
337
  /**
287
338
  * 通过旋转信息获取在layout中的位置
288
339
  *
@@ -299,12 +350,6 @@ export default class LayoutManager {
299
350
  * @returns { resolutionLevel }
300
351
  */
301
352
  private convertResolutionLevel;
302
- /**
303
- * 是否是主会场模式(远端设置为主会场)
304
- *
305
- * @returns
306
- */
307
- private isChairmanMode;
308
353
  /**
309
354
  * 镜像显示Local画面
310
355
  */
@@ -323,7 +368,7 @@ export default class LayoutManager {
323
368
  /**
324
369
  * 退出全屏
325
370
  */
326
- private exitFullScreen;
371
+ exitFullScreen(): void;
327
372
  /**
328
373
  * 查找对应的roster
329
374
  *
@@ -10,13 +10,14 @@ declare class TemplateManager {
10
10
  * @param { TemplateMode } modeType 模版类型
11
11
  * @param { number } currentCount 画面数量
12
12
  * @param { number } participantCount 会议总人数
13
- * @param { boolean } isLocalHide 是否隐藏Local, 默认:false
13
+ * @param { boolean } isEnableHideLocalView 是否隐藏Local, 默认:false
14
14
  * @param { boolean } isChairmanMode 是否有主会场, 默认:false
15
15
  * @param { TemplateType } templateType 全屏画面类型
16
16
  * @param { LayoutOrientationType } orientation 移动端方向,默认 'NONE':PC端
17
+ * @param { boolean } isInDialogMode 是否是对话模式布局, 默认:false
17
18
  * @returns
18
19
  */
19
- getTemplate({ modeType, currentCount, participantCount, isLocalHide, isChairmanMode, templateType, orientation, focusViewConfig }: TemplateParams): TemplateInfo;
20
+ getTemplate({ modeType, currentCount, participantCount, isEnableHideLocalView, isChairmanMode, templateType, orientation, focusViewConfig, isInDialogMode }: TemplateParams): TemplateInfo;
20
21
  /**
21
22
  * 处理指定的主画面模版信息
22
23
  *
@@ -24,6 +25,13 @@ declare class TemplateManager {
24
25
  * @param { FocusViewConfig } focusViewConfig 指定的主画面的信息
25
26
  */
26
27
  private handleForceView;
28
+ /**
29
+ * 处理对话模式布局: 对称布局,主会场+本地画面+未静音分会场
30
+ *
31
+ * @param { ITemplateObj[] } newTemplate 模版信息
32
+ * @returns
33
+ */
34
+ private handleDialogLayout;
27
35
  /**
28
36
  * 获取不同平台,不同方向 对应的所有模版类型数据
29
37
  *
@@ -2,14 +2,15 @@
2
2
  * Meeting Info Control
3
3
  *
4
4
  * Created at : 2022-10-27 13:58:22
5
- * Last modified : 2023-07-27 10:02:44
5
+ * Last modified : 2023-11-17 10:37:34
6
6
  */
7
- import { IRecordPermission, IConfMgmtUrl, ILayout, IMediaConfig, IReqInfo, LayoutAvatarType, TLayoutMap, InviteInfo } from '../type';
7
+ import { IRecordPermission, IConfMgmtUrl, ILayout, IMediaConfig, IReqInfo, LayoutAvatarType, TLayoutMap, InviteInfo, IMeetingControl } from '../type';
8
8
  import Client from './client';
9
9
  import Logger from '../tools/logger';
10
10
  declare class Meeting {
11
11
  private client;
12
12
  private logger;
13
+ private action;
13
14
  private conferenceInfo;
14
15
  private recordPermission;
15
16
  private cloudRoomInfo;
@@ -18,6 +19,7 @@ declare class Meeting {
18
19
  private mediaConfig;
19
20
  private rxBandwidth;
20
21
  private enterpriseConfig;
22
+ private meetingControlInfo;
21
23
  constructor(client: Client, logger: Logger);
22
24
  getRecordPermission(): IRecordPermission;
23
25
  getLayoutImageAvatarMap(): Map<string, {
@@ -27,6 +29,13 @@ declare class Meeting {
27
29
  getEnterpriseMediaConfig(): IMediaConfig;
28
30
  getRxBandwidth(): number;
29
31
  getLayoutAvatarType(): LayoutAvatarType;
32
+ getMeetingControlInfo(): IMeetingControl | null;
33
+ /**
34
+ * 设置会控消息
35
+ *
36
+ * @param { IMeetingControl } info
37
+ */
38
+ setMeetingControlInfo(info: IMeetingControl): void;
30
39
  /**
31
40
  * 登录用户信息和个人云会议室信息
32
41
  */
@@ -33,6 +33,7 @@ export default class Peer {
33
33
  private videoCodecs;
34
34
  private audioCodecs;
35
35
  private qualityWorker;
36
+ private localIPAddress;
36
37
  constructor(client: Client, stream: Stream);
37
38
  private initQualityWorker;
38
39
  restart(): void;
@@ -130,6 +131,7 @@ export default class Peer {
130
131
  */
131
132
  private onHandleConnectionStateChange;
132
133
  onHandleIcecandidateerror(e: Event): void;
134
+ private onHandleIcecandidate;
133
135
  /**
134
136
  * 重连PeerConnection
135
137
  *
@@ -7,6 +7,7 @@
7
7
  */
8
8
  import { LogLevel, ILoggerConfig, TLogLevel } from '../type';
9
9
  declare class Logger {
10
+ private action;
10
11
  private worker;
11
12
  private isArrowUpload;
12
13
  currentLevel: LogLevel;
@@ -81,3 +81,17 @@ export interface IReturnResult {
81
81
  detail: any;
82
82
  }
83
83
  export type Key = string | number;
84
+ /**
85
+ * 混合云服务信息
86
+ *
87
+ * @property { string } enterpriseId - 企业ID
88
+ * @property { string } innerIp - 内网IP
89
+ * @property { string } node - 节点
90
+ * @property { string } serverName - 服务名称
91
+ */
92
+ export interface IServerInfo {
93
+ enterpriseId: string;
94
+ innerIp: string;
95
+ node: string;
96
+ serverName: string;
97
+ }
@@ -323,10 +323,9 @@ export interface IDefault {
323
323
  LOGIN_INFO: {
324
324
  callUri: string;
325
325
  securityKey: string;
326
- access_token: string;
327
- refresh_token: string;
328
326
  id: number;
329
327
  displayName: string;
328
+ token: IToken;
330
329
  };
331
330
  LAYOUT: ILayout;
332
331
  MAP_RESOLUTION_STRING: {
@@ -356,8 +355,7 @@ export interface IDefault {
356
355
  export interface ILoginInfo {
357
356
  callUri?: string;
358
357
  securityKey: string;
359
- access_token: string;
360
- refresh_token?: string;
358
+ token: IToken;
361
359
  id: number;
362
360
  displayName?: string;
363
361
  cellPhone?: string;
@@ -480,9 +478,9 @@ export interface IHttpConfig {
480
478
  *
481
479
  * 此信息是由业务层提供网关配置
482
480
  */
483
- export interface IConfig extends IToken {
484
- client_id: string;
485
- client_secret: string;
481
+ export interface LoginTokenInfo extends IToken {
482
+ clientId: string;
483
+ clientSecret: string;
486
484
  }
487
485
  /**
488
486
  * 会议室配置信息
@@ -569,12 +567,16 @@ export interface InviteInfo {
569
567
  * @property { string } confNumber 云会议号/终端号/手机号
570
568
  * @property { string? } password 入会密码,没有则为空
571
569
  * @property { string? } displayName 入会显示昵称
570
+ * @property { boolean } muteAudio 非必填 | false | 是否开启/关闭麦克风入会,默认是false,开启麦克风
571
+ * @property { boolean } muteVideo 非必填 | false | 是否开启/关闭摄像头入会,默认是false,开启摄像头
572
572
  */
573
573
  export interface IMackCall {
574
574
  token: string;
575
575
  confNumber: string;
576
576
  password?: string;
577
577
  displayName?: string;
578
+ muteAudio?: boolean;
579
+ muteVideo?: boolean;
578
580
  }
579
581
  /**
580
582
  * 呼叫的会议信息
@@ -619,6 +621,16 @@ export interface IGroupInfo {
619
621
  groupName: string;
620
622
  groupType: number;
621
623
  }
624
+ /**
625
+ * 会议模式
626
+ *
627
+ * @param DIALOG - 对话模式
628
+ * @param NORMAL - 非对话模式
629
+ */
630
+ export declare enum ConferenceMode {
631
+ DIALOG = "dialog",
632
+ NORMAL = "normal"
633
+ }
622
634
  /**
623
635
  * 会控回调信息
624
636
  *
@@ -633,6 +645,7 @@ export interface IGroupInfo {
633
645
  * @property { string } commonJson 会控修改名称等
634
646
  * @property { IMuteSpeaker } isMuteSpeaker 禁止收听
635
647
  * @property { boolean } recordIsDisabled 录制权限
648
+ * @property { ConferenceMode } conferenceMode 会议模式
636
649
  */
637
650
  export interface IMeetingControl {
638
651
  callIndex: number;
@@ -647,6 +660,7 @@ export interface IMeetingControl {
647
660
  isMuteSpeaker: IMuteSpeaker;
648
661
  recordIsDisabled: boolean;
649
662
  groupInfoList: IGroupInfo[];
663
+ conferenceMode: ConferenceMode;
650
664
  }
651
665
  /**
652
666
  * Roster:参会者的基本信息,包含基本信息,设备信息,画面信息等
@@ -660,6 +674,7 @@ export interface IMeetingControl {
660
674
  * @property { boolean } audioTxMute 参会者麦克风状态,true:开启,false:关闭
661
675
  * @property { boolean } videoTxMute 参会者摄像头状态,true:开启,false:关闭
662
676
  * @property { boolean } isForceFullScreen 参会者是否是主画面
677
+ * @property { boolean } isFocusScreen 参会者是否是焦点画面
663
678
  * @property { number } videoMuteReason 视频关闭原因
664
679
  * @property { boolean } isContent 参会者画面类型,同mediagroupid,true:是共享内容画面,false:people画面
665
680
  * @property { boolean } isActiveSpeaker 参会者是否是语音激励,即当前会中说话声音最大的一个人
@@ -683,6 +698,7 @@ export interface IRoster extends Partial<ILayoutRoster> {
683
698
  videoRxMute: boolean;
684
699
  videoMuteReason: number;
685
700
  isForceFullScreen: boolean;
701
+ isFocusScreen: boolean;
686
702
  isLastAdd: boolean;
687
703
  onHold: boolean;
688
704
  isPolling: boolean;
@@ -749,7 +765,7 @@ export declare enum MuteReason {
749
765
  *
750
766
  * @property { number } participantCount 当前会议参会者总人数,不包含共享内容设备数量,包含local
751
767
  * @property { number } totalEpCount 当前会议参会者总人数,包含共享内容、指挥调度客户端等设备数量, 包含local
752
- * @property { string } chairManUrl 当前会议主会场/主画面设备的callUrl,没有为''
768
+ * @property { string } chairManUrl 当前会议主会场/主画面设备的callUrl,没有为'', 如果设置Local为主会场,则此值也为''
753
769
  * @property { string } contentUri 当前会议共享内容设别的callUrl,没有为''
754
770
  * @property { string } actSpkUri 当前会议语音激励者的callUrl,没有为''
755
771
  * @property { IMediaGroupInfo[] } mediaGroupnfo 多分组通人数信息,默认上报0和1分组,分别代表People通道和Content通道
@@ -762,6 +778,13 @@ export interface IConfInfo {
762
778
  actSpkUri: string;
763
779
  mediaGroupInfo: IMediaGroupInfo[];
764
780
  }
781
+ /**
782
+ * 缓存Conf Change消息
783
+ */
784
+ export interface IPreConfInfo extends IConfInfo {
785
+ isChairmanMode?: boolean;
786
+ isFocusMode?: boolean;
787
+ }
765
788
  export interface IMediaGroupInfo {
766
789
  endpointCount: number;
767
790
  mediagroupid: number;