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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,16 +1,16 @@
1
- import { ILoginExtAccount, ISdkUserInfo, TEventName, IMeetingInfo, TCategory, IToken, IGetConferenceParams, IMeetingInviteParams } from '../type';
1
+ import { ILoginExtAccount, ISdkUserInfo, TEventName, IMeetingInfo, TCategory, IToken, IGetConferenceParams, IMeetingInviteParams, IEnterpriseConfig } from '../type';
2
2
  import Logger from '../tools/logger';
3
3
  export interface ICommonParams {
4
4
  securityKey: string;
5
5
  }
6
6
  declare class Action {
7
+ private commonParams;
8
+ private randomDeviceSN;
7
9
  private http;
8
10
  private logHttp;
9
11
  private meetingInfo;
10
12
  private seqId;
11
13
  private statesTime;
12
- commonParams: ICommonParams;
13
- randomDeviceSN: string;
14
14
  private httpDefaultBaseUrl;
15
15
  private logHttpDefaultBaseUrl;
16
16
  constructor();
@@ -24,12 +24,6 @@ declare class Action {
24
24
  setMeetingInfo(info: IMeetingInfo): void;
25
25
  setLoginInfo(loginInfo: IToken | null): void;
26
26
  getLoginInfo(): IToken;
27
- /**
28
- * 设置默认参数,如securityKey
29
- *
30
- * @param data
31
- */
32
- setCommonParams: (data: any) => void;
33
27
  /**
34
28
  * 日志上传
35
29
  *
@@ -37,13 +31,6 @@ declare class Action {
37
31
  * @returns
38
32
  */
39
33
  upload(data: any): Promise<any>;
40
- /**
41
- * 获取公钥,加密登录需使用此公钥
42
- *
43
- * @param { string } account 小鱼账号
44
- * @returns
45
- */
46
- getPublicKey(account: string): Promise<any>;
47
34
  /**
48
35
  * 不加密登录
49
36
  *
@@ -56,13 +43,6 @@ declare class Action {
56
43
  * @param { ISdkUserInfo } sdkUserInfo 小鱼账号
57
44
  */
58
45
  encryptLogin(sdkUserInfo: ISdkUserInfo): Promise<any>;
59
- /**
60
- * 定制(RSA直接加密)登录接口(适配SHA512加密老用户)
61
- *
62
- * @param data
63
- * @returns
64
- */
65
- customLogin: (data: any) => Promise<any>;
66
46
  /**
67
47
  * 获取匿名账号
68
48
  *
@@ -79,7 +59,11 @@ declare class Action {
79
59
  /**
80
60
  * 获取云会议室信息
81
61
  *
82
- * @param params
62
+ * @param { Object } params
63
+ * @param { string } number 会议号
64
+ * @param { string } deviceType 设备类型
65
+ * @param { string } country 国际化
66
+ *
83
67
  * @returns
84
68
  */
85
69
  getCallUri(params: {
@@ -98,13 +82,13 @@ declare class Action {
98
82
  /**
99
83
  * 举手发言
100
84
  *
101
- * @param { string } type
102
- * @param { string } meetingId
103
- * @param { string } di
85
+ * @param { 'handup' | 'handdown' | 'mute' } type 操作类型
86
+ * @param { string } meetingId 会议ID
87
+ * @param { string } di callerUri
104
88
  * @param { string } conferenceNo 会议号
105
89
  * @returns
106
90
  */
107
- hand(type: string, meetingId: string, di: string, conferenceNo: string): Promise<any>;
91
+ hand(type: 'handup' | 'handdown' | 'mute'): Promise<any>;
108
92
  /**
109
93
  * 获取i18n/errorcode等链接
110
94
  *
@@ -162,34 +146,42 @@ declare class Action {
162
146
  /**
163
147
  * 获取会议室水印
164
148
  *
165
- * @param { string } conferenceNumber
149
+ * @param { string } conferenceNumber 会议号
166
150
  * @returns
167
151
  */
168
- getWatermarkContent: (conferenceNumber: string) => Promise<any>;
152
+ getWatermarkContent(conferenceNumber: string): Promise<any>;
169
153
  /**
170
154
  * 根据外部企业ID获取内部企业ID
171
155
  *
172
- * @param param0
156
+ * @param { Object } params
157
+ * @param { string } params.extId 企业ID
158
+ * @param { string } params.clientId
159
+ * @param { string } params.clientSecret
160
+ * @param { string } params.httpServer 服务器地址
173
161
  * @returns
174
162
  */
175
- getEnterpriseId: ({ extId, clientId, clientSecret, httpServer }: {
163
+ getEnterpriseId({ extId, clientId, clientSecret, httpServer }: {
176
164
  extId: string;
177
165
  clientId: string;
178
166
  clientSecret: string;
179
- httpServer?: string | undefined;
180
- }) => Promise<any>;
167
+ httpServer?: string;
168
+ }): Promise<any>;
181
169
  /**
182
170
  * WebRTC 内外网探测
183
171
  *
184
- * @param param0
172
+ * @param { Object } params
173
+ * @param { string } params.extId 企业ID
174
+ * @param { string } params.clientId
175
+ * @param { string } params.clientSecret
176
+ * @param { string } params.httpServer 服务器地址
185
177
  * @returns
186
178
  */
187
- locator: ({ extId, clientId, clientSecret, httpServer }: {
179
+ locator({ extId, clientId, clientSecret, httpServer }: {
188
180
  extId: string;
189
181
  clientId: string;
190
182
  clientSecret: string;
191
- httpServer?: string | undefined;
192
- }) => Promise<any>;
183
+ httpServer?: string;
184
+ }): Promise<any>;
193
185
  /**
194
186
  * 监会操作
195
187
  *
@@ -230,34 +222,71 @@ declare class Action {
230
222
  */
231
223
  checkStorageSpaceWithRecordingUrl(recordingUrl: string): Promise<any>;
232
224
  /**
233
- * 获取企业管理平台带宽配置
225
+ * 获取企业相关配置
234
226
  *
227
+ * @param { number } userId 用户ID
235
228
  * @returns
236
229
  */
237
- getWebRxBandwidth(userId: number): Promise<any>;
230
+ getEnterpriseMediaConfig(userId: number, config: IEnterpriseConfig[]): Promise<any>;
238
231
  /**
239
232
  * 刷新Token
240
233
  *
234
+ * @param { string } refresh_token 待刷新的token
241
235
  * @returns
242
236
  */
243
237
  refreshToken(refresh_token: string): Promise<any>;
244
238
  /**
245
239
  * 获取会议邀请链接信息
240
+ *
241
+ * @param { IMeetingInviteParams } params 邀请链接请求参数
242
+ *
243
+ * @returns
246
244
  */
247
245
  getMeetingInviteInfo(params: IMeetingInviteParams): Promise<any>;
248
246
  /**
249
247
  * 获取个人云会议室信息,包含入会密码和个人云会议室号
248
+ *
249
+ * @param { number } userId 用户ID
250
+ * @returns
250
251
  */
251
252
  getCloudMeetingRooms(userId: number): Promise<any>;
252
253
  /**
253
254
  * 获取参会者头像
254
255
  *
255
- * @param { string } callUrl
256
+ * @param { string } callUrl 待获取头像的参会者callUri
257
+ * @returns
256
258
  */
257
259
  getInComingCallUrlInfo(callUrl: string): Promise<{
258
260
  avatar: string;
259
261
  }>;
262
+ /**
263
+ * 通知会控打开/关闭摄像头结果
264
+ *
265
+ * @param { 'muteVideo' | 'unMuteVideo' } type 操作类型
266
+ * @param { string } value 操作详细数据
267
+ * @returns
268
+ */
260
269
  sendVideoControlResult(type: 'muteVideo' | 'unMuteVideo', value: string): Promise<any>;
270
+ /**
271
+ * 设置默认参数,如securityKey
272
+ *
273
+ * @param { Object } data
274
+ */
275
+ private setCommonParams;
276
+ /**
277
+ * 获取公钥,加密登录需使用此公钥
278
+ *
279
+ * @param { string } account 小鱼账号
280
+ * @returns
281
+ */
282
+ private getPublicKey;
283
+ /**
284
+ * 定制(RSA直接加密)登录接口(适配SHA512加密老用户)
285
+ *
286
+ * @param data
287
+ * @returns
288
+ */
289
+ private customLogin;
261
290
  }
262
291
  declare const _default: Action;
263
292
  export default _default;
@@ -118,4 +118,5 @@ export declare const MEETING_CONTROL_PLATFORM: {
118
118
  PC: string;
119
119
  MOBILE: string;
120
120
  SIDE: string;
121
+ PROFESSIONAL: string;
121
122
  };
@@ -0,0 +1,39 @@
1
+ export declare const DEFAULT_I18N_CODE: {
2
+ version: string;
3
+ zh_CN: {
4
+ 'MMS:unmute.video.timeout': string;
5
+ 'MMS:voice.mode': string;
6
+ 'MMS:no.camera.permission': string;
7
+ 'MMS:called': string;
8
+ 'MMS:supervised': string;
9
+ 'MMS:driving.mode': string;
10
+ 'MMS:device.bt.limit': string;
11
+ 'MMS:test': string;
12
+ 'MMS:callroll': string;
13
+ 'MMS:reject.unmute.video': string;
14
+ };
15
+ zh_TW: {
16
+ 'MMS:unmute.video.timeout': string;
17
+ 'MMS:voice.mode': string;
18
+ 'MMS:no.camera.permission': string;
19
+ 'MMS:called': string;
20
+ 'MMS:supervised': string;
21
+ 'MMS:driving.mode': string;
22
+ 'MMS:device.bt.limit': string;
23
+ 'MMS:test': string;
24
+ 'MMS:callroll': string;
25
+ 'MMS:reject.unmute.video': string;
26
+ };
27
+ en_US: {
28
+ 'MMS:voice.mode': string;
29
+ 'MMS:no.camera.permission': string;
30
+ 'MMS:nmute.video.timeout': string;
31
+ 'MMS:called': string;
32
+ 'MMS:supervised': string;
33
+ 'MMS:driving.mode': string;
34
+ 'MMS:device.bt.limit': string;
35
+ 'MMS:test': string;
36
+ 'MMS:callroll': string;
37
+ 'MMS:reject.unmute.video': string;
38
+ };
39
+ };
@@ -14,6 +14,8 @@ export declare const DEVICE_TYPE = 17;
14
14
  export declare const SELF_MOCK_PID = 9999999999;
15
15
  export declare const STREAM_CHANNEL_COUNT = 11;
16
16
  export declare const MAX_PARTICIPANT_COUNT = 112;
17
+ export declare const MAX_CUSTOM_MESSAGE_LEN = 1846666;
18
+ export declare const MAX_CUSTOM_MESSAGE_LOG_LEN = 13333;
17
19
  export declare const STREAM_ERROR_CODE_MAP: string[];
18
20
  /**
19
21
  * 支持呼叫的会议室类型
@@ -135,3 +137,24 @@ export declare const HIDE_KEY_INFOS: string[];
135
137
  * SDK功能控制开关
136
138
  */
137
139
  export declare const DEFAULT_FEATURE_CONFIG: IFeatureConfig;
140
+ /**
141
+ * 企业配置信息
142
+ *
143
+ * @property downLinkCeilingRate 下行带宽配置
144
+ * @property upLinkCeilingRate 上行带宽配置(暂不支持)
145
+ * @property pvrxResolution 请流能力配置
146
+ */
147
+ export declare const ENTERPRISE_CONFIG: {
148
+ downLinkCeilingRate: {
149
+ clientConfigName: string;
150
+ configName: string;
151
+ };
152
+ upLinkCeilingRate: {
153
+ clientConfigName: string;
154
+ configName: string;
155
+ };
156
+ pvrxResolution: {
157
+ clientConfigName: string;
158
+ configName: string;
159
+ };
160
+ };
@@ -4,7 +4,7 @@
4
4
  * @authors Luo-jinghui (luojinghui424@gmail.com)
5
5
  * @date 2019-10-23 12:04:44
6
6
  */
7
- import { IClientConfig, ICall, IMackCall, IInvite, IRoster, ILayoutRoster, ISpeakerInfo, IScreenInfo, ILoginExtAccount, IPublishParams, ICustomLayout, ICustomStreamTrack, IInternels, IVideoAudioType, IShareContentStatus, IPushType, IMode, IReqInfo, TCommand, ILayout, IConference, IConferenceInfo, IContentMode, IToken, AutoMute, Key, IRecordPermission, TLocalLanguage, IFeatureConfig, IConfMgmtUrl, IVideoControlResult } from '../type';
7
+ import { IClientConfig, ICall, IMackCall, IInvite, IRoster, ILayoutRoster, ISpeakerInfo, IScreenInfo, ILoginExtAccount, IPublishParams, ICustomLayout, ICustomStreamTrack, IInternels, IVideoAudioType, IShareContentStatus, IPushType, IMode, IReqInfo, TCommand, ILayout, IConference, IContentMode, IToken, AutoMute, Key, IRecordPermission, TLocalLanguage, IFeatureConfig, IConfMgmtUrl, IVideoControlResult, ICustomMessageConfig } from '../type';
8
8
  import Emitter from '../tools/emitter';
9
9
  import Socket from '../tools/socket';
10
10
  import Stream from './stream';
@@ -62,7 +62,6 @@ export default class Client extends Emitter {
62
62
  private i18nCode;
63
63
  private clientErrorState;
64
64
  private limitResolution;
65
- private conferenceInfo;
66
65
  private customLayoutCacheList;
67
66
  private contentMode;
68
67
  private contentOnholdInfo;
@@ -75,6 +74,7 @@ export default class Client extends Emitter {
75
74
  private featureConfig;
76
75
  private meeting;
77
76
  private speakerInfos;
77
+ private operateQueue;
78
78
  private onDocumentChange;
79
79
  constructor(config: IClientConfig, logger: Logger);
80
80
  static instance: Client;
@@ -108,7 +108,6 @@ export default class Client extends Emitter {
108
108
  total: ILayoutRoster[];
109
109
  };
110
110
  getOriginRosters(): IRoster[];
111
- getConferenceInfo(): IConferenceInfo | null;
112
111
  getInviteInfo(): IInvite;
113
112
  getContentSenderPid(): number;
114
113
  getSpeakerInfo(): ISpeakerInfo;
@@ -130,6 +129,12 @@ export default class Client extends Emitter {
130
129
  * @returns { boolean }
131
130
  */
132
131
  getLocalShareContent(): boolean;
132
+ /**
133
+ * 企业媒体相关配置信息
134
+ *
135
+ * @returns { IMediaConfig }
136
+ */
137
+ getEnterpriseMediaConfig(): import("../type").IMediaConfig;
133
138
  /**
134
139
  * 设置本地是否在等候室
135
140
  *
@@ -174,6 +179,8 @@ export default class Client extends Emitter {
174
179
  * @property { boolean } config.enableLowResolution 是否启用低性能模式,降低发送和接收端的分辨率和质量,默认不启用,设置为false;
175
180
  * @property { boolean } config.enableSpeakerInfo 是否启用推送实时讲话人信息,每秒2条消息推送,默认不启用,设置为false;
176
181
  * @property { boolean } config.enableLayoutAvatar 是否启用获取参会者头像,默认不启用,设置为false;
182
+ * @property { boolean } config.enableMobileNotAuth 是否启用移动端无授权入会,默认不启用,设置为false;
183
+ * @property { boolean } config.enableWatermarkContent 是否启用获取content水印内容, 默认启用, 设置为true
177
184
  * @returns { IResult }
178
185
  */
179
186
  setFeatureConfig(config: IFeatureConfig): import("../type").IReturnResult | undefined;
@@ -571,6 +578,13 @@ export default class Client extends Emitter {
571
578
  * @param { boolean } status peer连接状态
572
579
  */
573
580
  setPeerConnectionStatus(status: boolean): void;
581
+ private sendWebRxBandwidth;
582
+ /**
583
+ * 处理会议室静音状态
584
+ *
585
+ * @param { string } automute // "" | "mute" | "forcemute" 会议室静音属性
586
+ */
587
+ private handleAutoMute;
574
588
  /**
575
589
  * 根据 autoMute 或 muteOperation 的值发送音频流
576
590
  *
@@ -592,6 +606,16 @@ export default class Client extends Emitter {
592
606
  * @param { ISubTitle } data 字幕、点名消息
593
607
  */
594
608
  private onSubTitle;
609
+ /**
610
+ * 发送自定义消息
611
+ *
612
+ * @public
613
+ * @param { object } config - 配置参数
614
+ * @param { number } config.toPid - 消息的接收方pid,0表示广播消息、非0表示单点消息;
615
+ * @param { string } config.data - 消息内容,JSON字符串;因业务数据可能会传输图片,需要对二进制数据进行base64编码,消息长度限制最大:1030KB
616
+ * @return { { code: string, message: string, data: null | object } } 返回结果
617
+ */
618
+ sendCustomMessage(config: ICustomMessageConfig): import("../type").IReturnResult;
595
619
  /**
596
620
  * 处理媒体消息
597
621
  *
@@ -612,6 +636,12 @@ export default class Client extends Emitter {
612
636
  * @param { IConfProperty } info
613
637
  */
614
638
  private handleContentOnhold;
639
+ /**
640
+ * 处理等候室状态
641
+ *
642
+ * @param { IWaitingState } data
643
+ */
644
+ private handleWaitingState;
615
645
  /**
616
646
  * 是否开启自动调整带宽
617
647
  *
@@ -686,6 +716,12 @@ export default class Client extends Emitter {
686
716
  * @param { boolean | string } status
687
717
  */
688
718
  sendAudioStatus(status: boolean | string): void;
719
+ /**
720
+ * 推送本地Video状态
721
+ *
722
+ * @param { boolean | string } status
723
+ */
724
+ sendVideoStatus(status: boolean | string): void;
689
725
  /**
690
726
  * 发布 自动布局/自定义布局 layout布局信息(参会人最新的布局列表数据)
691
727
  *
@@ -897,12 +933,6 @@ export default class Client extends Emitter {
897
933
  * @public
898
934
  */
899
935
  stopCloudRecord(): Promise<undefined>;
900
- /**
901
- * 配置web节点接收带宽
902
- *
903
- * @public
904
- */
905
- setWebRxBandwidth(): Promise<undefined>;
906
936
  /**
907
937
  * 重新发送content offer
908
938
  *
@@ -6,15 +6,15 @@
6
6
  * @email luojinghui424@gmail.com
7
7
  *
8
8
  * Created at : 2021-01-05 17:24:07
9
- * Last modified : 2022-11-03 15:48:52
9
+ * Last modified : 2023-01-12 11:18:44
10
10
  */
11
11
  import Logger from '../tools/logger';
12
- import { ILayout, IVideoRenders, IRoster, ITemplateObj, IScreenInfo, IMode, IOutputCustomLayout, ILayoutRoster, IResolutionType, IConfInfo, IPageInfo, IReqInfo, IQualityType } from '../type/index';
12
+ import { ILayout, IVideoRenders, IRoster, ITemplateObj, IScreenInfo, IMode, IOutputCustomLayout, ILayoutRoster, IConfInfo, IPageInfo, IReqInfo, VideoQuality, StreamResolutionLevel } from '../type/index';
13
13
  import Client from './client';
14
14
  export default class LayoutManager {
15
15
  logger: Logger;
16
16
  client: Client;
17
- customLayoutList: Map<string, ILayout>;
17
+ customLayoutMap: Map<string, ILayout>;
18
18
  layoutList: Map<string, ILayout>;
19
19
  private videoManagers;
20
20
  private originOrderRosters;
@@ -35,10 +35,10 @@ export default class LayoutManager {
35
35
  private pageInfo;
36
36
  private isLocalShareContent;
37
37
  constructor(client: Client);
38
- static getCustomLayoutItem(item: ILayout, resolution: IResolutionType, quality: IQualityType): {
38
+ static getCustomLayoutItem(item: ILayout, resolution: StreamResolutionLevel, quality: VideoQuality): {
39
39
  pid: number;
40
- resolution: IResolutionType;
41
- quality: IQualityType;
40
+ resolution: StreamResolutionLevel;
41
+ quality: VideoQuality;
42
42
  mediagroupid: number;
43
43
  };
44
44
  getNewLayout(): ILayout[];
@@ -142,7 +142,7 @@ export default class LayoutManager {
142
142
  */
143
143
  calcRequestNewLayout(pageInfo?: IPageInfo): void;
144
144
  /**
145
- * [AUTO] : 基于 new layout result 消息生成 customLayoutList 数据,并diff对比更新数据
145
+ * [AUTO] : 基于 new layout result 消息生成 customLayoutMap 数据,并diff对比更新数据
146
146
  *
147
147
  * @public
148
148
  * @param { ILayoutRoster[] } totalLayoutResultList
@@ -157,7 +157,7 @@ export default class LayoutManager {
157
157
  private createOrderRoster;
158
158
  createCustomLayout(totalLayoutResultList: ILayoutRoster[]): void;
159
159
  /**
160
- * 根据 reqList 计算最新的 layout 数据
160
+ * 根据 reqList 计算最新的 layout 数据(2.0.2以前的版本方法)
161
161
  *
162
162
  * @param reqList
163
163
  */
@@ -171,7 +171,7 @@ export default class LayoutManager {
171
171
  calculateNewLayoutList(): {
172
172
  roster: IRoster;
173
173
  position: number[];
174
- resolution: IResolutionType;
174
+ resolution: number;
175
175
  zIndex: number;
176
176
  }[];
177
177
  calculateScreenInfo(): {
@@ -179,7 +179,7 @@ export default class LayoutManager {
179
179
  height: number;
180
180
  rateHeight: number;
181
181
  rateWidth: number;
182
- };
182
+ } | undefined;
183
183
  createLayout(): void;
184
184
  calculateOrderRosterList(): IRoster[];
185
185
  switchLayout(templateMode?: IMode): IMode;
@@ -210,5 +210,17 @@ export default class LayoutManager {
210
210
  * @param mediagroupid type
211
211
  */
212
212
  private getLayoutKeyByRotateInfo;
213
+ /**
214
+ * 本地镜像显示画面
215
+ */
213
216
  private localMirrorRotate;
217
+ /**
218
+ * 获取最终请流分辨率
219
+ * 1. 根据是否启用低性能模式
220
+ * 2. 根据企业配置转换请流分辨率
221
+ *
222
+ * @param { ITemplateResolution } resolution - layout模版分辨率
223
+ * @returns { resolutionLevel }
224
+ */
225
+ private convertResolutionLevel;
214
226
  }
@@ -2,9 +2,9 @@
2
2
  * Meeting Info Control
3
3
  *
4
4
  * Created at : 2022-10-27 13:58:22
5
- * Last modified : 2022-11-04 14:45:39
5
+ * Last modified : 2023-04-18 14:10:12
6
6
  */
7
- import { IConferenceInfo, IRecordPermission, IConfMgmtUrl, ILayout } from '../type';
7
+ import { IConferenceInfo, IRecordPermission, IConfMgmtUrl, ILayout, IMediaConfig, IReqInfo } from '../type';
8
8
  import Client from './client';
9
9
  import Logger from '../tools/logger';
10
10
  declare class Meeting {
@@ -15,9 +15,13 @@ declare class Meeting {
15
15
  private cloudRoomInfo;
16
16
  private confMgmtUrl;
17
17
  private layoutAvatarMap;
18
+ private mediaConfig;
19
+ private rxBandwidth;
18
20
  constructor(client: Client, logger: Logger);
19
21
  getRecordPermission(): IRecordPermission;
20
22
  getLayoutAvatarMap(): Map<string, string>;
23
+ getEnterpriseMediaConfig(): IMediaConfig;
24
+ getRxBandwidth(): number;
21
25
  /**
22
26
  * 登录用户信息和个人云会议室信息
23
27
  */
@@ -94,5 +98,18 @@ declare class Meeting {
94
98
  * @param { ILayout[] } unAvatarList 需要获取头像的终端
95
99
  */
96
100
  handleLayoutAvatar(unAvatarList: ILayout[]): Promise<void>;
101
+ /**
102
+ * 获取企业配置信息
103
+ * 1. 企业管理平台带宽配置
104
+ * 2. Web端请1080P能力
105
+ */
106
+ setEnterpriseConfig(): Promise<void>;
107
+ /**
108
+ * 根据企业配置媒体能力,得到最终的请流参数
109
+ *
110
+ * @param {IReqInfo[]} reqInfoList 请流列表数据
111
+ * @returns {IReqInfo[]}
112
+ */
113
+ convertReqList(reqInfoList: IReqInfo[]): IReqInfo[];
97
114
  }
98
115
  export default Meeting;
@@ -8,6 +8,7 @@ declare class QualityManager {
8
8
  private layoutManager;
9
9
  private previousInternals;
10
10
  private internals;
11
+ private participantCount;
11
12
  constructor(client: Client, layoutManager: LayoutManager);
12
13
  /**
13
14
  * 定时上报会议质量、网络数据
@@ -152,7 +152,7 @@ export default class Stream extends Emitter {
152
152
  * 无流入会
153
153
  *
154
154
  * @private
155
- * @param status
155
+ * @param { IStatus } status
156
156
  * @returns
157
157
  */
158
158
  private dealWithoutStreams;
@@ -0,0 +1,10 @@
1
+ declare type AsyncFn<T> = (...args: any[]) => Promise<T>;
2
+ declare type Fn = (...args: any) => void;
3
+ declare class Queue<T> {
4
+ private isRunning;
5
+ private waitingQueue;
6
+ constructor();
7
+ addTask(task: AsyncFn<T>): Promise<T>;
8
+ execute(task: AsyncFn<T>, resolve: Fn, reject: Fn): void;
9
+ }
10
+ export default Queue;
@@ -4,7 +4,7 @@
4
4
  * @authors Luo-jinghui (luojinghui424@gmail.com)
5
5
  * @date 2019-10-24 20:41:38
6
6
  */
7
- import { ITypeTemplate, ITemplate } from '../type';
7
+ import { ITypeTemplate, ITemplate, TEMPLATE_TYPE, ITemplateObj } from '../type';
8
8
  export declare const RATE = 0.5625;
9
9
  export declare const HIDE_POSITION: number[];
10
10
  export declare const SPEAKER_TEMPLATE: ITypeTemplate;
@@ -12,3 +12,10 @@ export declare const GALLERY_TEMPLATE: ITypeTemplate;
12
12
  export declare const COMMON_TEMPLATE: ITemplate;
13
13
  export declare const CONTENT_TEMPLATE: ITemplate;
14
14
  export declare const TEMPLATE: ITemplate;
15
+ /**
16
+ * forceLayout模版
17
+ *
18
+ * @param { TEMPLATE_TYPE } type - 模版类型
19
+ * @returns
20
+ */
21
+ export declare const FORCE_LAYOUT_TEMPLATE: (type: TEMPLATE_TYPE) => ITemplateObj;
@@ -52,7 +52,7 @@ export declare const getMeetingStatus: (success: boolean, code?: string, msg?: s
52
52
  success: boolean;
53
53
  data: {
54
54
  code: string;
55
- msg: string | undefined;
55
+ msg: string;
56
56
  };
57
57
  } | {
58
58
  success: boolean;
@@ -68,4 +68,5 @@ export declare const TYPEOF: {
68
68
  isArray(arr: any): boolean;
69
69
  isString(str: any): boolean;
70
70
  isBoolean(str: any): boolean;
71
+ isUndefined(str: any): boolean;
71
72
  };