@xylink/xy-rtc-sdk 3.8.0-beta.1 → 3.8.0-beta.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 +20 -3
- package/lib/enum/contraints.d.ts +5 -0
- package/lib/main/client.d.ts +102 -19
- package/lib/main/layoutManager.d.ts +1 -1
- package/lib/main/meeting.d.ts +80 -0
- package/lib/tools/config.d.ts +4 -2
- package/lib/tools/utils.d.ts +10 -9
- package/lib/type/action.d.ts +6 -0
- package/lib/type/client.d.ts +81 -17
- package/lib/type/index.d.ts +2 -0
- package/lib/type/meeting.d.ts +45 -0
- package/lib/xyrtc.cjs.js +1 -1
- package/lib/xyrtc.umd.js +1 -1
- package/package.json +1 -1
- package/scripts/webpack.common.js +1 -1
package/lib/action/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ILoginExtAccount, ISdkUserInfo, TEventName, IMeetingInfo, TCategory, IToken, IGetConferenceParams } from '../type';
|
|
1
|
+
import { ILoginExtAccount, ISdkUserInfo, TEventName, IMeetingInfo, TCategory, IToken, IGetConferenceParams, IMeetingInviteParams } from '../type';
|
|
2
2
|
import Logger from '../tools/logger';
|
|
3
3
|
export interface ICommonParams {
|
|
4
4
|
securityKey: string;
|
|
@@ -11,9 +11,11 @@ declare class Action {
|
|
|
11
11
|
private statesTime;
|
|
12
12
|
commonParams: ICommonParams;
|
|
13
13
|
randomDeviceSN: string;
|
|
14
|
+
private httpDefaultBaseUrl;
|
|
15
|
+
private logHttpDefaultBaseUrl;
|
|
14
16
|
constructor();
|
|
15
|
-
setBaseUrl(baseUrl
|
|
16
|
-
setLogBaseUrl(logUrl
|
|
17
|
+
setBaseUrl(baseUrl?: string, logUrl?: string): void;
|
|
18
|
+
setLogBaseUrl(logUrl?: string): void;
|
|
17
19
|
setClientInfo({ clientId, clientSecret }: {
|
|
18
20
|
clientId: string;
|
|
19
21
|
clientSecret: string;
|
|
@@ -109,6 +111,13 @@ declare class Action {
|
|
|
109
111
|
* @returns
|
|
110
112
|
*/
|
|
111
113
|
getDefaultServerConfig(): Promise<any>;
|
|
114
|
+
/**
|
|
115
|
+
* 批量获取serverConfig
|
|
116
|
+
*
|
|
117
|
+
* @param {string[]} includeConfigNameList 需要的配置key值
|
|
118
|
+
* @returns
|
|
119
|
+
*/
|
|
120
|
+
getServerConfig(includeConfigNameList?: string[]): Promise<any>;
|
|
112
121
|
/**
|
|
113
122
|
* 获取json文件内容
|
|
114
123
|
*
|
|
@@ -232,6 +241,14 @@ declare class Action {
|
|
|
232
241
|
* @returns
|
|
233
242
|
*/
|
|
234
243
|
refreshToken(refresh_token: string): Promise<any>;
|
|
244
|
+
/**
|
|
245
|
+
* 获取会议邀请链接信息
|
|
246
|
+
*/
|
|
247
|
+
getMeetingInviteInfo(params: IMeetingInviteParams): Promise<any>;
|
|
248
|
+
/**
|
|
249
|
+
* 获取个人云会议室信息,包含入会密码和个人云会议室号
|
|
250
|
+
*/
|
|
251
|
+
getCloudMeetingRooms(userId: number): Promise<any>;
|
|
235
252
|
}
|
|
236
253
|
declare const _default: Action;
|
|
237
254
|
export default _default;
|
package/lib/enum/contraints.d.ts
CHANGED
|
@@ -114,3 +114,8 @@ export declare const CONTENT_CONTRAINTS: {
|
|
|
114
114
|
export declare const PEOPLE_CONTRAINTS: any;
|
|
115
115
|
export declare const RESOLUTION_MAP: Record<string, number>;
|
|
116
116
|
export declare const MIN_BANDWIDTH_MAP: Record<string, number>;
|
|
117
|
+
export declare const MEETING_CONTROL_PLATFORM: {
|
|
118
|
+
PC: string;
|
|
119
|
+
MOBILE: string;
|
|
120
|
+
SIDE: string;
|
|
121
|
+
};
|
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, IMackCall, IInvite, IRoster, ILayoutRoster, ISpeakerInfo, IScreenInfo,
|
|
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
8
|
import Emmitter from '../tools/emmitter';
|
|
9
9
|
import Socket from '../tools/socket';
|
|
10
10
|
import Stream from './stream';
|
|
@@ -41,7 +41,6 @@ export default class Client extends Emmitter {
|
|
|
41
41
|
private autoMode;
|
|
42
42
|
private token;
|
|
43
43
|
private peer;
|
|
44
|
-
private servers;
|
|
45
44
|
private callInfo;
|
|
46
45
|
private stream;
|
|
47
46
|
private videoTrackList;
|
|
@@ -68,16 +67,16 @@ export default class Client extends Emmitter {
|
|
|
68
67
|
private contentMode;
|
|
69
68
|
private contentOnholdInfo;
|
|
70
69
|
private isSubscribeBulkRoster;
|
|
71
|
-
private recordPermission;
|
|
72
70
|
private recordState;
|
|
73
71
|
private qualityManager;
|
|
74
72
|
private isShareContent;
|
|
75
73
|
private isSubscribeTranslation;
|
|
76
74
|
private featureConfig;
|
|
75
|
+
private meeting;
|
|
77
76
|
private onDocumentChange;
|
|
78
|
-
constructor(config: IClientConfig,
|
|
77
|
+
constructor(config: IClientConfig, logger: Logger);
|
|
79
78
|
static instance: Client;
|
|
80
|
-
static getClientInstance(config: IClientConfig,
|
|
79
|
+
static getClientInstance(config: IClientConfig, logger: Logger): Client;
|
|
81
80
|
static getCustomLayoutItem(item: ILayout, resolution: number, quality: number): {
|
|
82
81
|
pid: number;
|
|
83
82
|
resolution: number;
|
|
@@ -92,6 +91,9 @@ export default class Client extends Emmitter {
|
|
|
92
91
|
* @returns { string } hideId
|
|
93
92
|
*/
|
|
94
93
|
static getHideId(config: IClientConfig): string;
|
|
94
|
+
getLoginInfo(): import("../type").ILoginInfo;
|
|
95
|
+
getFeatureConfig(): IFeatureConfig;
|
|
96
|
+
getCallInfo(): ICall;
|
|
95
97
|
getClientConfig(): IClientConfig;
|
|
96
98
|
getVideoManagers(): import("../type").IVideoRenders | undefined;
|
|
97
99
|
getPreviewStreams(): import("../type").IGetMediaStreams | {
|
|
@@ -156,15 +158,22 @@ export default class Client extends Emmitter {
|
|
|
156
158
|
* @param { IFeatureConfig } config 功能配置项
|
|
157
159
|
* @param { boolean } config.meetingShout 是否启用会控喊话场景,会控喊话场景需要指定mediaGroupId分组通道信息才可以正常接收远端声音;
|
|
158
160
|
* @param { boolean } config.v2states 是否启用小鱼数据上报功能,默认不启用,设置为false;
|
|
159
|
-
* @
|
|
161
|
+
* @property { boolean } config.checkRecordPermission 是否启用录制权限查询功能,默认不启用,设置为false;
|
|
160
162
|
* @property { boolean } config.bandwidthSetting 是否启用管理平台带宽控制(双向),默认不启用,设置为false;
|
|
161
|
-
* @
|
|
163
|
+
* @property { boolean } config.meetingInvite 是否启用查询小鱼会议邀请链接信息,默认不启用,设置为false;
|
|
164
|
+
* @property { boolean } config.meetingOwner 是否启用查询会议Owner信息,默认不启用,设置为false;
|
|
165
|
+
* @property { boolean } autoResizeLayout 是否启用自动布局下,当屏幕大小变化后计算最新的Layout数据,默认启用,设置为true;
|
|
166
|
+
* @returns { boolean }
|
|
162
167
|
*/
|
|
163
168
|
setFeatureConfig(config: IFeatureConfig): {
|
|
164
169
|
code: string;
|
|
165
170
|
msg: string;
|
|
166
171
|
detail: any;
|
|
167
172
|
} | undefined;
|
|
173
|
+
/**
|
|
174
|
+
* 获取会控地址
|
|
175
|
+
*/
|
|
176
|
+
getConfMgmtUrl(): Promise<IConfMgmtUrl | null>;
|
|
168
177
|
/**
|
|
169
178
|
* 切换显示/隐藏 Local 画面
|
|
170
179
|
*
|
|
@@ -222,6 +231,10 @@ export default class Client extends Emmitter {
|
|
|
222
231
|
* @param { boolean } status 是否自动切换设备
|
|
223
232
|
*/
|
|
224
233
|
switchAutoDevice(status?: boolean): Promise<boolean>;
|
|
234
|
+
/**
|
|
235
|
+
* 设置action信息
|
|
236
|
+
*/
|
|
237
|
+
private setActionInfo;
|
|
225
238
|
/**
|
|
226
239
|
* 功能操作上报记录
|
|
227
240
|
*
|
|
@@ -246,23 +259,20 @@ export default class Client extends Emmitter {
|
|
|
246
259
|
*/
|
|
247
260
|
setPageInfo(currentPage?: number): Promise<never> | undefined;
|
|
248
261
|
/**
|
|
249
|
-
*
|
|
250
|
-
*
|
|
251
|
-
* @private
|
|
252
|
-
*/
|
|
253
|
-
private handleConferenceInfo;
|
|
254
|
-
/**
|
|
255
|
-
* 检查会议室录制权限
|
|
262
|
+
* 检查并获取会议室录制权限
|
|
256
263
|
*
|
|
257
264
|
* @public
|
|
265
|
+
* @return { IRecordPermission } 录制权限
|
|
258
266
|
*/
|
|
259
267
|
checkPermissionWithMeetingNumber(): Promise<IRecordPermission>;
|
|
260
268
|
/**
|
|
261
269
|
* 录制存储空间检查
|
|
270
|
+
* 默认情况下业务层不需要主动调用,信令层面会下发可用空间,通过监听:recording-state-changed 获取
|
|
262
271
|
*
|
|
263
272
|
* @param { string } recordingUrl
|
|
273
|
+
* @return { IRecordPermission } 录制权限
|
|
264
274
|
*/
|
|
265
|
-
checkStorageSpaceWithRecordingUrl(recordingUrl: string): Promise<
|
|
275
|
+
checkStorageSpaceWithRecordingUrl(recordingUrl: string): Promise<IRecordPermission>;
|
|
266
276
|
/**
|
|
267
277
|
* 处理wss返回的数据
|
|
268
278
|
*
|
|
@@ -271,13 +281,73 @@ export default class Client extends Emmitter {
|
|
|
271
281
|
* @param { any } resolve
|
|
272
282
|
*/
|
|
273
283
|
handleSocketMessage(data: any, resolve: any): void;
|
|
284
|
+
/**
|
|
285
|
+
* 处理录制状态上报
|
|
286
|
+
*
|
|
287
|
+
* @private
|
|
288
|
+
* @param { Object } data 远端数据
|
|
289
|
+
*/
|
|
290
|
+
private onRecordStatusNotfiMessage;
|
|
291
|
+
/**
|
|
292
|
+
* 处理录制结果上报Message
|
|
293
|
+
*
|
|
294
|
+
* @private
|
|
295
|
+
* @param { Object } data 远端数据
|
|
296
|
+
*/
|
|
297
|
+
private onRecordingStateChangedMessage;
|
|
298
|
+
/**
|
|
299
|
+
* 处理Content状态控制消息
|
|
300
|
+
*
|
|
301
|
+
* @private
|
|
302
|
+
* @param { Object } data 远端数据
|
|
303
|
+
*/
|
|
304
|
+
private onDualStreamMessage;
|
|
305
|
+
/**
|
|
306
|
+
* 处理呼叫异常消息
|
|
307
|
+
*
|
|
308
|
+
* @private
|
|
309
|
+
* @param { Object } data 远端数据
|
|
310
|
+
*/
|
|
311
|
+
private onCallExceptionMessage;
|
|
312
|
+
/**
|
|
313
|
+
* 处理服务通知退会消息
|
|
314
|
+
*
|
|
315
|
+
* @private
|
|
316
|
+
* @param { Object } data 远端数据
|
|
317
|
+
*/
|
|
318
|
+
private onDisConnectedMessage;
|
|
319
|
+
/**
|
|
320
|
+
* 处理媒体迁会消息
|
|
321
|
+
*
|
|
322
|
+
* @private
|
|
323
|
+
*/
|
|
324
|
+
private onMediaChangedMessage;
|
|
325
|
+
/**
|
|
326
|
+
* 处理CallIndex消息
|
|
327
|
+
*
|
|
328
|
+
* @private
|
|
329
|
+
* @param { Object } data 远端数据
|
|
330
|
+
*/
|
|
331
|
+
private onCallIndexMessage;
|
|
332
|
+
/**
|
|
333
|
+
* 处理Connected消息,入会成功消息
|
|
334
|
+
*
|
|
335
|
+
* @param { Object } data 远端数据
|
|
336
|
+
*/
|
|
337
|
+
private onConnectedMessage;
|
|
338
|
+
/**
|
|
339
|
+
* 更新本地Roster数据
|
|
340
|
+
*
|
|
341
|
+
* @private
|
|
342
|
+
*/
|
|
343
|
+
private setLocalRosterStatus;
|
|
274
344
|
/**
|
|
275
345
|
* 处理调度状态消息,解析错误码并返回
|
|
276
346
|
*
|
|
277
347
|
* @private
|
|
278
348
|
* @param { IMonitorReportMessage } data 媒体调度消息
|
|
279
349
|
*/
|
|
280
|
-
private
|
|
350
|
+
private onMonitorReportMessage;
|
|
281
351
|
/**
|
|
282
352
|
* 发起会议呼叫,如果返回 true ,代表是否可以继续呼叫;
|
|
283
353
|
*
|
|
@@ -577,7 +647,7 @@ export default class Client extends Emmitter {
|
|
|
577
647
|
*/
|
|
578
648
|
applyVideoOrAudio(kind: 'video' | 'audio', isFirst?: boolean): void;
|
|
579
649
|
/**
|
|
580
|
-
*
|
|
650
|
+
* 推送本地Audio状态
|
|
581
651
|
*
|
|
582
652
|
* @param { boolean | string } status
|
|
583
653
|
*/
|
|
@@ -686,13 +756,13 @@ export default class Client extends Emmitter {
|
|
|
686
756
|
*
|
|
687
757
|
* @private
|
|
688
758
|
*/
|
|
689
|
-
private
|
|
759
|
+
private initWindowResizeEvent;
|
|
690
760
|
/**
|
|
691
761
|
* 移除resize事件
|
|
692
762
|
*
|
|
693
763
|
* @private
|
|
694
764
|
*/
|
|
695
|
-
private
|
|
765
|
+
private removeWindowResizeEvent;
|
|
696
766
|
/**
|
|
697
767
|
* 发送wss peopleCapability,通知本地采集能力,用于vom进行分配
|
|
698
768
|
*
|
|
@@ -810,6 +880,13 @@ export default class Client extends Emmitter {
|
|
|
810
880
|
* @public
|
|
811
881
|
*/
|
|
812
882
|
reSendContentOffer(): void;
|
|
883
|
+
/**
|
|
884
|
+
* 重新计算Layout布局数据
|
|
885
|
+
*
|
|
886
|
+
* 触发机制:当页面窗口变化/Container Dom大小变化时,可主动调用同时SDK更新Layout信息
|
|
887
|
+
* 建议:如果业务上自行监听窗口变化和Dom大小变化,建议通过featureConfig配置autoResizeLayout为false关闭内部的事件,避免重复计算;
|
|
888
|
+
*/
|
|
889
|
+
updateLayoutSize(): void;
|
|
813
890
|
/**
|
|
814
891
|
* 会控喊话功能,用于关联audio track与mediaGroupId通道,从而向特定通道发送音频数据
|
|
815
892
|
*
|
|
@@ -867,6 +944,12 @@ export default class Client extends Emmitter {
|
|
|
867
944
|
* @private
|
|
868
945
|
*/
|
|
869
946
|
private initDeviceManagerEvent;
|
|
947
|
+
/**
|
|
948
|
+
* 获取wssUrl
|
|
949
|
+
*
|
|
950
|
+
* @returns { string } wssUrl
|
|
951
|
+
*/
|
|
952
|
+
private getWssUrl;
|
|
870
953
|
/**
|
|
871
954
|
* init websocket connection
|
|
872
955
|
*
|
|
@@ -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-
|
|
9
|
+
* Last modified : 2022-10-27 19:25:09
|
|
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';
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Meeting Info Control
|
|
3
|
+
*
|
|
4
|
+
* Created at : 2022-10-27 13:58:22
|
|
5
|
+
* Last modified : 2022-10-27 19:25:16
|
|
6
|
+
*/
|
|
7
|
+
import { IConferenceInfo, IRecordPermission, IConfMgmtUrl } from '../type';
|
|
8
|
+
import Client from './client';
|
|
9
|
+
import Logger from '../tools/logger';
|
|
10
|
+
declare class Meeting {
|
|
11
|
+
private client;
|
|
12
|
+
logger: Logger;
|
|
13
|
+
conferenceInfo: IConferenceInfo;
|
|
14
|
+
private recordPermission;
|
|
15
|
+
private cloudRooomInfo;
|
|
16
|
+
private confMgmtUrl;
|
|
17
|
+
constructor(client: Client, logger: Logger);
|
|
18
|
+
getRecordPermission(): IRecordPermission;
|
|
19
|
+
/**
|
|
20
|
+
* 登录用户信息和个人云会议室信息
|
|
21
|
+
*/
|
|
22
|
+
handleUserInfo(): Promise<void>;
|
|
23
|
+
/**
|
|
24
|
+
* 会议室信息,如号码、名称、类型、配置信息(是否有水印等)
|
|
25
|
+
* TODO:思考问题,如何将此处转为链式调用
|
|
26
|
+
*
|
|
27
|
+
* @public
|
|
28
|
+
*/
|
|
29
|
+
handleConferenceInfo(): Promise<void>;
|
|
30
|
+
/**
|
|
31
|
+
* 获取会控相关地址
|
|
32
|
+
*
|
|
33
|
+
* @returns Promise<IConfMgmtUrl | null>
|
|
34
|
+
*/
|
|
35
|
+
getConfMgmtUrl(): Promise<IConfMgmtUrl | null>;
|
|
36
|
+
/**
|
|
37
|
+
* 获取详细的会控地址
|
|
38
|
+
*
|
|
39
|
+
* @param { string } url server下发的会控地址
|
|
40
|
+
* @param { string } platform 平台
|
|
41
|
+
* @returns IConfMgmtUrl
|
|
42
|
+
*/
|
|
43
|
+
private getMeetingControlUrl;
|
|
44
|
+
/**
|
|
45
|
+
* 获取vcnumber真实的会议室信息
|
|
46
|
+
*
|
|
47
|
+
* @param { string } vcNumber 终端对应的会议室号码
|
|
48
|
+
*/
|
|
49
|
+
private getVCConfInfo;
|
|
50
|
+
/**
|
|
51
|
+
* 获取Content水印内容
|
|
52
|
+
*/
|
|
53
|
+
private getWatermarkContent;
|
|
54
|
+
/**
|
|
55
|
+
* 获取会议分享详情信息
|
|
56
|
+
*
|
|
57
|
+
* TODO: 2022-10-27,携带meetingId的Info接口调用失败,原因是dcs(大数据当前服务)接口在入会后存在15s延迟,导致info返回403错误;
|
|
58
|
+
* TODO:2022-10-27,此处使用inviteUrl地址,暂时不使用微信邀请链接地址,原因是会议号获取的微信邀请链接页面访问失效,需要提供MeetingId字段才行;
|
|
59
|
+
*/
|
|
60
|
+
private getMeetingInviteInfo;
|
|
61
|
+
/**
|
|
62
|
+
* 录制权限获取
|
|
63
|
+
*
|
|
64
|
+
* @public
|
|
65
|
+
* @return { IRecordPermission } 录制权限
|
|
66
|
+
*/
|
|
67
|
+
checkPermissionWithMeetingNumber(): Promise<IRecordPermission>;
|
|
68
|
+
/**
|
|
69
|
+
* 录制存储空间检查
|
|
70
|
+
*
|
|
71
|
+
* @param { string } recordingUrl
|
|
72
|
+
* @return { IRecordPermission } 录制权限
|
|
73
|
+
*/
|
|
74
|
+
checkStorageSpaceWithRecordingUrl(recordingUrl: string): Promise<IRecordPermission>;
|
|
75
|
+
/**
|
|
76
|
+
* 获取个人云会议室信息,包含入会密码和个人云会议室号
|
|
77
|
+
*/
|
|
78
|
+
getCloudMeetingRooms(): Promise<void>;
|
|
79
|
+
}
|
|
80
|
+
export default Meeting;
|
package/lib/tools/config.d.ts
CHANGED
|
@@ -5,8 +5,10 @@
|
|
|
5
5
|
* @date 2019-10-24 14:06:05
|
|
6
6
|
*/
|
|
7
7
|
export declare const version: any;
|
|
8
|
+
export declare const serverProtocolMap: Record<string, string>;
|
|
8
9
|
export declare const proxy: {
|
|
9
|
-
|
|
10
|
-
|
|
10
|
+
wssProtocol: string;
|
|
11
|
+
protocol: string;
|
|
12
|
+
host: string;
|
|
11
13
|
logHost: string;
|
|
12
14
|
};
|
package/lib/tools/utils.d.ts
CHANGED
|
@@ -4,20 +4,20 @@
|
|
|
4
4
|
* @date 2019-11-08 15:54:21
|
|
5
5
|
*/
|
|
6
6
|
/**
|
|
7
|
-
*
|
|
7
|
+
* 防抖函数
|
|
8
8
|
*
|
|
9
|
-
* @param fn
|
|
10
|
-
* @param delay
|
|
11
|
-
* @param atleast 最短间隔触发时间
|
|
9
|
+
* @param fn 原始函数
|
|
10
|
+
* @param delay 延迟触发时间
|
|
12
11
|
*/
|
|
13
|
-
export declare const debounce: (fn: any, delay: number
|
|
12
|
+
export declare const debounce: (fn: any, delay: number) => () => void;
|
|
14
13
|
/**
|
|
15
|
-
*
|
|
14
|
+
* 节流函数
|
|
16
15
|
*
|
|
17
|
-
* @param fn
|
|
18
|
-
* @param
|
|
16
|
+
* @param fn 原始函数
|
|
17
|
+
* @param delay 最后一次延迟触发时间
|
|
18
|
+
* @param atleast 触发最短间隔时间
|
|
19
19
|
*/
|
|
20
|
-
export declare const throttle: (fn: any,
|
|
20
|
+
export declare const throttle: (fn: any, delay: number, atleast: number) => () => void;
|
|
21
21
|
/**
|
|
22
22
|
* 获取当前时间
|
|
23
23
|
*
|
|
@@ -70,4 +70,5 @@ export declare const TYPEOF: {
|
|
|
70
70
|
isObject(obj: any): boolean;
|
|
71
71
|
isArray(arr: any): boolean;
|
|
72
72
|
isString(str: any): boolean;
|
|
73
|
+
isBoolean(str: any): boolean;
|
|
73
74
|
};
|
package/lib/type/client.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { IToken } from './base';
|
|
|
2
2
|
import VideoManager from '../main/videoManager';
|
|
3
3
|
import { IInternels } from './stream';
|
|
4
4
|
import { SupportLocalLanguages } from '../enum';
|
|
5
|
+
import { ICloudRoomConfig } from './meeting';
|
|
5
6
|
/**
|
|
6
7
|
* 向Client推送流类型
|
|
7
8
|
*
|
|
@@ -210,9 +211,10 @@ export declare enum RecordStatus {
|
|
|
210
211
|
* client配置参数
|
|
211
212
|
*
|
|
212
213
|
* @property { string } clientId 必填 | "" | 网关校验id(clientId),需要从对接人处获取
|
|
213
|
-
* @property { string }
|
|
214
|
-
* @property { string }
|
|
215
|
-
* @property { string }
|
|
214
|
+
* @property { string } server 非必填 服务地址, IP/域名 + 端口,如: cloudapi.xylink.com
|
|
215
|
+
* @property { string } wssServer 非必填 websocket服务地址,默认不需要配置, 待废弃
|
|
216
|
+
* @property { string } httpServer 非必填 resetApi服务地址,默认不需要配置, 待废弃
|
|
217
|
+
* @property { string } logServer 非必填 logServer服务地址,默认不需要配置, 待废弃
|
|
216
218
|
* @property { IClientLayout } layout 非必填 | AUTO | 布局模式,可选:AUTO | CUSTOM
|
|
217
219
|
* @property { boolean } debug 非必填 | false | 是否接收所有参会者音视频状态数据,默认不发送
|
|
218
220
|
* @property { boolean } muteAudio 非必填 | false | 是否开启/关闭麦克风入会,默认是false,开启麦克风
|
|
@@ -228,11 +230,13 @@ export declare enum RecordStatus {
|
|
|
228
230
|
* @property { boolean } isThird 埋点
|
|
229
231
|
* @property { boolean } isSupportHybridCloud 是否是混合云,默认公有云。 如果有探测到内网地址,则此值为true,将不进行鉴权。
|
|
230
232
|
* @property { boolean } isVerifyMeetingId 是否校验会议号,默认校验
|
|
233
|
+
* @property { boolean? } checkSSL 是否启用必须使用Https协议访问页面,默认启用,设置为true,建议开启,Http页面下无法访问WebRTC API,音视频互通存在问题;
|
|
231
234
|
*
|
|
232
235
|
*/
|
|
233
236
|
export interface IClientConfig {
|
|
234
237
|
clientId: string;
|
|
235
238
|
clientSecret?: string;
|
|
239
|
+
server?: string;
|
|
236
240
|
wssServer?: string;
|
|
237
241
|
httpServer?: string;
|
|
238
242
|
logServer?: string;
|
|
@@ -252,6 +256,7 @@ export interface IClientConfig {
|
|
|
252
256
|
isThird?: boolean;
|
|
253
257
|
isSupportHybridCloud?: boolean;
|
|
254
258
|
isVerifyMeetingId?: boolean;
|
|
259
|
+
checkSSL?: boolean;
|
|
255
260
|
}
|
|
256
261
|
export interface ILayoutParams {
|
|
257
262
|
rosters: IRoster[];
|
|
@@ -320,17 +325,20 @@ export interface IDefault {
|
|
|
320
325
|
};
|
|
321
326
|
};
|
|
322
327
|
CONF_INFO: IConfInfo;
|
|
328
|
+
CLOUD_ROOOM_INFO: ICloudRoomConfig;
|
|
329
|
+
CONFERENCE_INFO: IConferenceInfo;
|
|
323
330
|
}
|
|
324
331
|
/**
|
|
325
|
-
* SDK
|
|
332
|
+
* SDK登录用户信息
|
|
326
333
|
*
|
|
327
|
-
* @property { string? } callUri
|
|
334
|
+
* @property { string? } callUri 用户类型ID
|
|
328
335
|
* @property { string } securityKey 安全码
|
|
329
|
-
* @property { string } access_token
|
|
330
|
-
* @property { string } refresh_token 刷新
|
|
331
|
-
* @property { number } id
|
|
336
|
+
* @property { string } access_token Token
|
|
337
|
+
* @property { string } refresh_token 刷新Token
|
|
338
|
+
* @property { number } id 用户ID
|
|
332
339
|
* @property { string } displayName 登录用户名
|
|
333
|
-
* @property { string } cellPhone
|
|
340
|
+
* @property { string } cellPhone 呼叫号码
|
|
341
|
+
* @property { string } extUserId 第三方用户ID
|
|
334
342
|
*/
|
|
335
343
|
export interface ILoginInfo {
|
|
336
344
|
callUri?: string;
|
|
@@ -470,11 +478,6 @@ export interface ISdkUserInfo {
|
|
|
470
478
|
password: string;
|
|
471
479
|
extId?: string;
|
|
472
480
|
}
|
|
473
|
-
export interface IServers {
|
|
474
|
-
wssServer: string;
|
|
475
|
-
httpServer: string;
|
|
476
|
-
logServer: string;
|
|
477
|
-
}
|
|
478
481
|
export interface IHttpConfig {
|
|
479
482
|
baseUrl: string;
|
|
480
483
|
}
|
|
@@ -507,9 +510,11 @@ export interface IConfAuxProperties {
|
|
|
507
510
|
* @property { string } numberType 会议号类型
|
|
508
511
|
* @property { IConfAuxProperties } confAuxProperties 会议配置
|
|
509
512
|
* @property { string } avatar 头像
|
|
513
|
+
* @property { InviteInfo } inviteInfo 会议分享信息,包含会议邀请链接、电话,WebRTC、终端等端的入会方式;
|
|
514
|
+
* @property { string } meetingId 当前会议ID
|
|
510
515
|
*/
|
|
511
516
|
export interface IConferenceInfo {
|
|
512
|
-
callNumber
|
|
517
|
+
callNumber?: string;
|
|
513
518
|
callUrl?: string;
|
|
514
519
|
deviceId?: string;
|
|
515
520
|
deviceType?: string;
|
|
@@ -518,6 +523,49 @@ export interface IConferenceInfo {
|
|
|
518
523
|
numberType?: string;
|
|
519
524
|
confAuxProperties?: IConfAuxProperties;
|
|
520
525
|
avatar?: string;
|
|
526
|
+
inviteInfo?: InviteInfo;
|
|
527
|
+
meetingId?: string;
|
|
528
|
+
}
|
|
529
|
+
/**
|
|
530
|
+
* 会议分享信息
|
|
531
|
+
*
|
|
532
|
+
* @property { string } displayName - 会议室名称
|
|
533
|
+
* @property { boolean } inEnterprise - 所属会议号是否在企业中
|
|
534
|
+
* @property { string } inviteAppUrl - 微信邀请链接
|
|
535
|
+
* @property { string } inviteUrl - 云会议室邀请链接
|
|
536
|
+
* @property { string } invokSchema - 小鱼客户端Scheme获取地址
|
|
537
|
+
* @property { string } linkNumber - 电话入会号码
|
|
538
|
+
* @property { string } mobileWebrtcVisibleSetting - 移动端是否显示WebRTC入会
|
|
539
|
+
* @property { string } number - 会议号
|
|
540
|
+
* @property { string } password - 入会密码
|
|
541
|
+
* @property { string } pstnNumber - 电话呼叫号码
|
|
542
|
+
* @property { string } shareUrl - 邀请链接详情页地址
|
|
543
|
+
* @property { string } userAvatar - 管理员头像
|
|
544
|
+
* @property { string } userName - 管理员名称
|
|
545
|
+
* @property { string } userProfileId - 用户ID
|
|
546
|
+
* @property { string } voiceNumber - 电话呼叫时的会议号
|
|
547
|
+
* @property { string } webrtcSetting - PC端是否显示WebRTC入会
|
|
548
|
+
* @property { string } webrtcUrl - WebRTC入会地址
|
|
549
|
+
*
|
|
550
|
+
*/
|
|
551
|
+
export interface InviteInfo {
|
|
552
|
+
displayName: string;
|
|
553
|
+
inEnterprise: boolean;
|
|
554
|
+
inviteAppUrl: string;
|
|
555
|
+
inviteUrl: string;
|
|
556
|
+
invokSchema: string;
|
|
557
|
+
linkNumber: string;
|
|
558
|
+
mobileWebrtcVisibleSetting: boolean;
|
|
559
|
+
number: string;
|
|
560
|
+
password: string;
|
|
561
|
+
pstnNumber: string;
|
|
562
|
+
shareUrl: string;
|
|
563
|
+
userAvatar: string;
|
|
564
|
+
userName: string;
|
|
565
|
+
userProfileId: string;
|
|
566
|
+
voiceNumber: string;
|
|
567
|
+
webrtcSetting: boolean;
|
|
568
|
+
webrtcUrl: string;
|
|
521
569
|
}
|
|
522
570
|
/**
|
|
523
571
|
* 呼叫参数
|
|
@@ -702,6 +750,7 @@ export interface ILayoutRoster {
|
|
|
702
750
|
* @property { string } chairManUrl 当前会议主会场/主画面设备的callUrl,没有为''
|
|
703
751
|
* @property { string } contentUri 当前会议共享内容设别的callUrl,没有为''
|
|
704
752
|
* @property { string } actSpkUri 当前会议语音激励者的callUrl,没有为''
|
|
753
|
+
* @property { IMediaGroupInfo[] } mediaGroupnfo 多分组通人数信息,默认上报0和1分组,分别代表People通道和Content通道
|
|
705
754
|
*/
|
|
706
755
|
export interface IConfInfo {
|
|
707
756
|
participantCount: number;
|
|
@@ -709,6 +758,11 @@ export interface IConfInfo {
|
|
|
709
758
|
chairManUrl: string;
|
|
710
759
|
contentUri: string;
|
|
711
760
|
actSpkUri: string;
|
|
761
|
+
mediaGroupInfo: IMediaGroupInfo[];
|
|
762
|
+
}
|
|
763
|
+
export interface IMediaGroupInfo {
|
|
764
|
+
endpointCount: number;
|
|
765
|
+
mediagroupid: number;
|
|
712
766
|
}
|
|
713
767
|
/**
|
|
714
768
|
* 自动布局,分页数据
|
|
@@ -1109,13 +1163,23 @@ export interface ITranslationContent {
|
|
|
1109
1163
|
* @property { boolean } v2states 是否启用小鱼数据上报功能,默认启用,设置为true;
|
|
1110
1164
|
* @property { boolean } checkRecordPermission 是否启用录制权限查询功能,默认不启用,设置为false;
|
|
1111
1165
|
* @property { boolean } bandwidthSetting 是否启用管理平台带宽控制(双向),默认不启用,设置为false;
|
|
1112
|
-
* @property { boolean }
|
|
1166
|
+
* @property { boolean } meetingInvite 是否启用查询小鱼会议邀请链接信息,默认不启用,设置为false;
|
|
1167
|
+
* @property { boolean } meetingOwner 是否启用查询会议Owner信息,默认不启用,设置为false;
|
|
1168
|
+
* @property { boolean } autoResizeLayout 是否启用自动布局下,当屏幕大小变化后计算最新的Layout数据,默认启用,设置为true;
|
|
1113
1169
|
*/
|
|
1114
1170
|
export interface IFeatureConfig {
|
|
1115
1171
|
meetingShout?: boolean;
|
|
1116
1172
|
v2states?: boolean;
|
|
1117
1173
|
checkRecordPermission?: boolean;
|
|
1118
1174
|
bandwidthSetting?: boolean;
|
|
1119
|
-
|
|
1175
|
+
meetingInvite?: boolean;
|
|
1176
|
+
meetingOwner?: boolean;
|
|
1177
|
+
autoResizeLayout?: boolean;
|
|
1178
|
+
}
|
|
1179
|
+
export interface IConfMgmtUrl {
|
|
1180
|
+
pc: string;
|
|
1181
|
+
member: string;
|
|
1182
|
+
side: string;
|
|
1183
|
+
mobile?: string;
|
|
1120
1184
|
}
|
|
1121
1185
|
export {};
|
package/lib/type/index.d.ts
CHANGED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Meeting Lib Type Defined
|
|
3
|
+
*
|
|
4
|
+
* Created at : 2022-10-27 18:13:24
|
|
5
|
+
* Last modified : 2022-10-27 19:25:49
|
|
6
|
+
*/
|
|
7
|
+
import { ILoginInfo } from './client';
|
|
8
|
+
/**
|
|
9
|
+
* 呼叫号码的云会议室属性配置
|
|
10
|
+
*/
|
|
11
|
+
export interface IConfAuxPro {
|
|
12
|
+
watermark: string;
|
|
13
|
+
displayConfNo: string;
|
|
14
|
+
inoutReminder: string;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Calluriv2接口返回的部分对外数据信息
|
|
18
|
+
*/
|
|
19
|
+
export interface IConfCallInfo {
|
|
20
|
+
displayName: string;
|
|
21
|
+
numberType: string;
|
|
22
|
+
callUrl: string;
|
|
23
|
+
avatar: string;
|
|
24
|
+
deviceType: string;
|
|
25
|
+
deviceId: string;
|
|
26
|
+
}
|
|
27
|
+
/**
|
|
28
|
+
* 个人云会议室信息
|
|
29
|
+
* 默认只保存了部分信息
|
|
30
|
+
*
|
|
31
|
+
* @property { string? } meetingControlPassword 会控密码
|
|
32
|
+
* @property { string? } meetingNumber 个人云会议室号码
|
|
33
|
+
* @property { string? } password 入会密码
|
|
34
|
+
*/
|
|
35
|
+
export interface ICloudRoomConfig {
|
|
36
|
+
meetingControlPassword: string;
|
|
37
|
+
meetingNumber: string;
|
|
38
|
+
password: string;
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* 用户和对应个人云会议室信息数据
|
|
42
|
+
*/
|
|
43
|
+
export interface IExportUserInfo extends ILoginInfo {
|
|
44
|
+
cloudRoomInfo: ICloudRoomConfig;
|
|
45
|
+
}
|