@xylink/xy-rtc-sdk 3.9.1 → 3.9.3
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/lib/action/index.d.ts +13 -6
- package/lib/index.d.ts +7 -4
- package/lib/main/client.d.ts +22 -9
- package/lib/main/deviceManager.d.ts +3 -1
- package/lib/main/helper.d.ts +1 -1
- package/lib/main/iauth.d.ts +4 -2
- package/lib/main/layout/index.d.ts +29 -8
- package/lib/main/layout/template.d.ts +10 -2
- package/lib/main/meeting.d.ts +11 -2
- package/lib/main/peer.d.ts +2 -0
- package/lib/tools/logger.d.ts +1 -0
- package/lib/type/base.d.ts +14 -0
- package/lib/type/client.d.ts +21 -7
- package/lib/type/layout.d.ts +16 -2
- package/lib/xyrtc.cjs.js +1 -1
- package/lib/xyrtc.umd.js +1 -1
- package/package.json +2 -1
package/lib/action/index.d.ts
CHANGED
|
@@ -14,14 +14,22 @@ declare class Action {
|
|
|
14
14
|
private statesTime;
|
|
15
15
|
private httpDefaultBaseUrl;
|
|
16
16
|
private logHttpDefaultBaseUrl;
|
|
17
|
-
constructor();
|
|
18
|
-
|
|
19
|
-
|
|
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
|
-
|
|
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,
|
|
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
|
|
35
|
-
export default
|
|
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';
|
package/lib/main/client.d.ts
CHANGED
|
@@ -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
|
*
|
|
@@ -345,7 +358,7 @@ export default class Client extends Emitter {
|
|
|
345
358
|
* @public
|
|
346
359
|
* @param { number } currentPage 请求某一页数据
|
|
347
360
|
*/
|
|
348
|
-
setPageInfo(currentPage?: number): Promise<
|
|
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
|
*
|
|
@@ -822,18 +841,12 @@ export default class Client extends Emitter {
|
|
|
822
841
|
* @params { boolean } isDealAvatar 是否处理layout头像, 启用相关配置后,默认处理
|
|
823
842
|
*/
|
|
824
843
|
sendLayoutMessage(isDealAvatar?: boolean): void;
|
|
825
|
-
/**
|
|
826
|
-
* 发布最新的已经排序过的的roster信息
|
|
827
|
-
*
|
|
828
|
-
* @private
|
|
829
|
-
*/
|
|
830
|
-
private sendOriginOrderedRosterMessage;
|
|
831
844
|
/**
|
|
832
845
|
* 对媒体下发的roster信息进行排序,发布
|
|
833
846
|
*
|
|
834
847
|
* @private
|
|
835
848
|
*/
|
|
836
|
-
private
|
|
849
|
+
private sendOriginOrderRosterMessage;
|
|
837
850
|
/**
|
|
838
851
|
* 发布Layout Container的容器信息
|
|
839
852
|
*
|
|
@@ -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-
|
|
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 使用
|
package/lib/main/helper.d.ts
CHANGED
|
@@ -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-
|
|
8
|
+
* Last modified : 2023-11-17 10:44:34
|
|
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";
|
package/lib/main/iauth.d.ts
CHANGED
|
@@ -3,12 +3,13 @@
|
|
|
3
3
|
*
|
|
4
4
|
*/
|
|
5
5
|
import { ILoginExtAccount, ISdkUserInfo, ILoginInfo, ILoginWidthAuthCode, LoginXYAccountParams, LoginExtTokenParams, ExtInfo } from '../type';
|
|
6
|
-
import
|
|
6
|
+
import Client from './client';
|
|
7
7
|
declare class IAuth {
|
|
8
8
|
private logger;
|
|
9
9
|
private loginInfo;
|
|
10
10
|
private extInfo;
|
|
11
|
-
|
|
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-
|
|
9
|
+
* Last modified : 2023-11-24 14:31:19
|
|
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,25 @@ export default class LayoutManager {
|
|
|
44
44
|
quality: VideoQuality;
|
|
45
45
|
mediagroupid: number;
|
|
46
46
|
};
|
|
47
|
+
/**
|
|
48
|
+
* 当前是否是对话模式,且没有发送或接收content。
|
|
49
|
+
* content优先级大于对话模式
|
|
50
|
+
*
|
|
51
|
+
* @returns { boolean }
|
|
52
|
+
*/
|
|
53
|
+
get isInDialogMode(): boolean;
|
|
54
|
+
/**
|
|
55
|
+
* 是否开启隐藏本地模式
|
|
56
|
+
*
|
|
57
|
+
* @returns { boolean }
|
|
58
|
+
*/
|
|
59
|
+
get isEnableHideLocalView(): boolean;
|
|
60
|
+
/**
|
|
61
|
+
* 是否是主会场模式(远端设置为主会场)
|
|
62
|
+
*
|
|
63
|
+
* @returns
|
|
64
|
+
*/
|
|
65
|
+
get isChairmanMode(): boolean;
|
|
47
66
|
getNewLayout(): ILayout[];
|
|
48
67
|
getOrderRosterList(): IRoster[];
|
|
49
68
|
getOriginOrderRosters(): IRoster[];
|
|
@@ -156,6 +175,10 @@ export default class LayoutManager {
|
|
|
156
175
|
* 更新Local video track
|
|
157
176
|
*/
|
|
158
177
|
updateLocalTrack(): void;
|
|
178
|
+
/**
|
|
179
|
+
* [AUTO] 计算分页及请流信息
|
|
180
|
+
*/
|
|
181
|
+
calcPageAndRequestLayout(confInfo?: IConfInfo): void;
|
|
159
182
|
/**
|
|
160
183
|
* [AUTO] 重新计算页码信息、模板类型
|
|
161
184
|
*
|
|
@@ -283,6 +306,10 @@ export default class LayoutManager {
|
|
|
283
306
|
* @param monitoryList callUri list 数据
|
|
284
307
|
*/
|
|
285
308
|
clearVideoManagersUseMonitorList(monitoryList: string[]): void;
|
|
309
|
+
/**
|
|
310
|
+
* 根据roster信息计算请流信息, 对话模式仅支持对称布局
|
|
311
|
+
*/
|
|
312
|
+
private calcRequestNewLayoutByRoster;
|
|
286
313
|
/**
|
|
287
314
|
* 通过旋转信息获取在layout中的位置
|
|
288
315
|
*
|
|
@@ -299,12 +326,6 @@ export default class LayoutManager {
|
|
|
299
326
|
* @returns { resolutionLevel }
|
|
300
327
|
*/
|
|
301
328
|
private convertResolutionLevel;
|
|
302
|
-
/**
|
|
303
|
-
* 是否是主会场模式(远端设置为主会场)
|
|
304
|
-
*
|
|
305
|
-
* @returns
|
|
306
|
-
*/
|
|
307
|
-
private isChairmanMode;
|
|
308
329
|
/**
|
|
309
330
|
* 镜像显示Local画面
|
|
310
331
|
*/
|
|
@@ -323,7 +344,7 @@ export default class LayoutManager {
|
|
|
323
344
|
/**
|
|
324
345
|
* 退出全屏
|
|
325
346
|
*/
|
|
326
|
-
|
|
347
|
+
exitFullScreen(): void;
|
|
327
348
|
/**
|
|
328
349
|
* 查找对应的roster
|
|
329
350
|
*
|
|
@@ -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 }
|
|
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,
|
|
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
|
*
|
package/lib/main/meeting.d.ts
CHANGED
|
@@ -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-
|
|
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
|
*/
|
package/lib/main/peer.d.ts
CHANGED
|
@@ -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
|
*
|
package/lib/tools/logger.d.ts
CHANGED
package/lib/type/base.d.ts
CHANGED
|
@@ -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
|
+
}
|
package/lib/type/client.d.ts
CHANGED
|
@@ -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
|
-
|
|
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
|
|
484
|
-
|
|
485
|
-
|
|
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:参会者的基本信息,包含基本信息,设备信息,画面信息等
|
package/lib/type/layout.d.ts
CHANGED
|
@@ -141,8 +141,9 @@ export interface TemplateInfo {
|
|
|
141
141
|
* @param { TemplateMode | ContentTemplateMode } modeType - 模版类型
|
|
142
142
|
* @param { number } currentCount - 画面数量
|
|
143
143
|
* @param { number } participantCount - 会中总人数
|
|
144
|
-
* @param { boolean }
|
|
144
|
+
* @param { boolean } isEnableHideLocalView - 是否隐藏本地画面模式
|
|
145
145
|
* @param { boolean } isChairmanMode - 是否是主会场模式
|
|
146
|
+
* @param { boolean } isInDialogMode - 是否是对话模式布局
|
|
146
147
|
* @param { TemplateType } templateType - 全屏画面类型
|
|
147
148
|
* @param { LayoutOrientationType } orientation - 是否是移动端,及方向
|
|
148
149
|
* @param { FocusViewConfig } focusViewConfig - 切换的主画面信息
|
|
@@ -151,8 +152,9 @@ export interface TemplateParams {
|
|
|
151
152
|
modeType?: TemplateMode | ContentTemplateMode;
|
|
152
153
|
currentCount?: number;
|
|
153
154
|
participantCount?: number;
|
|
154
|
-
|
|
155
|
+
isEnableHideLocalView?: boolean;
|
|
155
156
|
isChairmanMode?: boolean;
|
|
157
|
+
isInDialogMode?: boolean;
|
|
156
158
|
templateType?: TemplateType;
|
|
157
159
|
orientation?: LayoutOrientationType;
|
|
158
160
|
focusViewConfig?: FocusViewConfig;
|
|
@@ -179,3 +181,15 @@ export interface FocusViewConfig {
|
|
|
179
181
|
id: string;
|
|
180
182
|
type: TemplateType;
|
|
181
183
|
}
|
|
184
|
+
/**
|
|
185
|
+
* 需要管理员广播才能收看内容共享
|
|
186
|
+
*
|
|
187
|
+
* @property { boolean } is - 是否开启了指定内容广播
|
|
188
|
+
* @property { string } audioTrackId - 广播的audioTrackId
|
|
189
|
+
* @property { string } contentUrl - 广播的contentUrl
|
|
190
|
+
*/
|
|
191
|
+
export interface ContentOnholdInfo {
|
|
192
|
+
is: boolean;
|
|
193
|
+
audioTrackId: string;
|
|
194
|
+
contentUrl: string;
|
|
195
|
+
}
|