@xylink/xy-rtc-sdk 3.9.3 → 3.9.5
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 +10 -2
- package/lib/enum/index.d.ts +6 -1
- package/lib/main/client.d.ts +33 -5
- package/lib/main/helper.d.ts +18 -1
- package/lib/main/layout/index.d.ts +40 -9
- package/lib/main/meeting.d.ts +9 -2
- package/lib/tools/browser.d.ts +3 -1
- package/lib/tools/httpClient.d.ts +9 -1
- package/lib/type/client.d.ts +20 -1
- package/lib/type/layout.d.ts +32 -4
- package/lib/xyrtc.cjs.js +1 -1
- package/lib/xyrtc.umd.js +1 -1
- package/package.json +4 -9
package/lib/action/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ILoginExtAccount, ISdkUserInfo, TEventName, IMeetingInfo, TCategory, IToken, IGetConferenceParams, IMeetingInviteParams, IMediaConfigParam, LoginType, LoginParams } from '../type';
|
|
1
|
+
import { ILoginExtAccount, ISdkUserInfo, TEventName, IMeetingInfo, TCategory, IToken, IGetConferenceParams, IMeetingInviteParams, IMediaConfigParam, LoginType, LoginParams, FocusViewAction } from '../type';
|
|
2
2
|
import Logger from '../tools/logger';
|
|
3
3
|
export interface ICommonParams {
|
|
4
4
|
securityKey: string;
|
|
@@ -300,12 +300,20 @@ declare class Action {
|
|
|
300
300
|
* @returns
|
|
301
301
|
*/
|
|
302
302
|
loginWithUnified(loginType: LoginType, data: LoginParams): Promise<any>;
|
|
303
|
+
/**
|
|
304
|
+
* 会控设置焦点画面
|
|
305
|
+
*
|
|
306
|
+
* @param { string } deviceUri - 焦点画面终端callUri
|
|
307
|
+
* @param { FocusViewAction} action - 设置焦点画面/取消焦点画面
|
|
308
|
+
* @returns
|
|
309
|
+
*/
|
|
310
|
+
setMeetingFocusView(deviceUri: string, action: FocusViewAction): Promise<any>;
|
|
303
311
|
/**
|
|
304
312
|
* 设置默认参数,如securityKey
|
|
305
313
|
*
|
|
306
314
|
* @param { Object } data
|
|
307
315
|
*/
|
|
308
|
-
|
|
316
|
+
setCommonParams(data: Record<string, any>): void;
|
|
309
317
|
/**
|
|
310
318
|
* 获取公钥,加密登录需使用此公钥
|
|
311
319
|
*
|
package/lib/enum/index.d.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @authors Luo-jinghui (luojinghui424@gmail.com)
|
|
5
5
|
* @date 2019-10-30 14:12:52
|
|
6
6
|
*/
|
|
7
|
-
import { IDefault, IOPERATE_MAP, IRoster, IFeatureConfig, StreamStatus, StreamType, ILoggerConfig, FacingMode, TemplateMode, ContentTemplateMode } from '../type';
|
|
7
|
+
import { IDefault, IOPERATE_MAP, IRoster, IFeatureConfig, StreamStatus, StreamType, ILoggerConfig, FacingMode, TemplateMode, ContentTemplateMode, LayoutConfig } from '../type';
|
|
8
8
|
export * from './contraints';
|
|
9
9
|
export declare const LOG_CACHE_COUNT = 10;
|
|
10
10
|
export declare const DB_TABLE_COUNT = 10;
|
|
@@ -199,3 +199,8 @@ export declare const MEETING_CONTROL_PLATFORM: {
|
|
|
199
199
|
SIDE: string;
|
|
200
200
|
PROFESSIONAL: string;
|
|
201
201
|
};
|
|
202
|
+
export declare const LOCAL_SHARED_MAX_VIEW_COUNT = 4;
|
|
203
|
+
/**
|
|
204
|
+
* 布局相关配置
|
|
205
|
+
*/
|
|
206
|
+
export declare const DEFAULT_LAYOUT_CONFIG: LayoutConfig;
|
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, 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';
|
|
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, LayoutConfig } from '../type';
|
|
8
8
|
import Emitter from '../tools/emitter';
|
|
9
9
|
import Socket from '../tools/socket';
|
|
10
10
|
import Stream from './stream';
|
|
@@ -325,6 +325,14 @@ export default class Client extends Emitter {
|
|
|
325
325
|
* @param { boolean } status 是否自动切换设备
|
|
326
326
|
*/
|
|
327
327
|
switchAutoDevice(status?: boolean): Promise<boolean>;
|
|
328
|
+
/**
|
|
329
|
+
* 设置布局相关配置
|
|
330
|
+
*
|
|
331
|
+
* @param { LayoutConfig } config - 配置参数
|
|
332
|
+
* @property { boolean? } config.isForceSharedLayout - 本地共享布局是否强制宫格布局,默认强制,设置为true;
|
|
333
|
+
* @property { number? } config.localSharedMaxViewCount - 本地共享时显示的最大画面数量,默认4画面,最大8画面
|
|
334
|
+
*/
|
|
335
|
+
setLayoutConfig(config: LayoutConfig): void;
|
|
328
336
|
/**
|
|
329
337
|
* 设置action信息
|
|
330
338
|
*/
|
|
@@ -346,12 +354,26 @@ export default class Client extends Emitter {
|
|
|
346
354
|
*/
|
|
347
355
|
switchLayout(templateMode?: IMode): Promise<IMode>;
|
|
348
356
|
/**
|
|
349
|
-
*
|
|
357
|
+
* 设置焦点画面
|
|
358
|
+
*
|
|
359
|
+
* @param { string } rosterId - 指定切换到焦点画面的rosterId
|
|
360
|
+
* @returns { Promise<IReturnResult> } - 结果
|
|
361
|
+
*/
|
|
362
|
+
startMeetingFocusView(rosterId: string): Promise<IReturnResult>;
|
|
363
|
+
/**
|
|
364
|
+
* 取消焦点画面
|
|
350
365
|
*
|
|
351
|
-
* @param { string }
|
|
352
|
-
* @returns { Promise<
|
|
366
|
+
* @param { string } rosterId - 取消指定终端为焦点画面
|
|
367
|
+
* @returns { Promise<IReturnResult> } - 结果
|
|
353
368
|
*/
|
|
354
|
-
|
|
369
|
+
stopMeetingFocusView(rosterId: string): Promise<IReturnResult>;
|
|
370
|
+
/**
|
|
371
|
+
* 本地切换主画面
|
|
372
|
+
*
|
|
373
|
+
* @param { string } rosterId - 指定切换到主画面的rosterId
|
|
374
|
+
* @returns { Promise<string> } rosterId
|
|
375
|
+
*/
|
|
376
|
+
setFocusView(rosterId: string): Promise<string>;
|
|
355
377
|
/**
|
|
356
378
|
* AUTO布局 分页
|
|
357
379
|
*
|
|
@@ -834,6 +856,12 @@ export default class Client extends Emitter {
|
|
|
834
856
|
* @param { OperateType } type - 操作类型
|
|
835
857
|
*/
|
|
836
858
|
emitVideoStatus(type: OperateType): void;
|
|
859
|
+
/**
|
|
860
|
+
* 入会成功后,再上报焦点画面
|
|
861
|
+
*
|
|
862
|
+
* @param { IRoster | null } focusRoster - 焦点画面
|
|
863
|
+
*/
|
|
864
|
+
emitFocusView(focusRoster: IRoster | null): void;
|
|
837
865
|
/**
|
|
838
866
|
* 发布 自动布局/自定义布局 layout布局信息(参会人最新的布局列表数据)
|
|
839
867
|
*
|
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 :
|
|
8
|
+
* Last modified : 2024-01-23 16:55:29
|
|
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,20 @@ 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;
|
|
60
|
+
/**
|
|
61
|
+
* 切割RosterId,获取endpointId和mediagroupId信息
|
|
62
|
+
*
|
|
63
|
+
* @param { string } rosterId - 唯一ID
|
|
64
|
+
*/
|
|
65
|
+
export declare const getRosterIdInfo: (rosterId: string) => {
|
|
66
|
+
endpointId: string;
|
|
67
|
+
mediagroupId: string;
|
|
68
|
+
};
|
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
* @email luojinghui424@gmail.com
|
|
7
7
|
*
|
|
8
8
|
* Created at : 2021-01-05 17:24:07
|
|
9
|
-
* Last modified :
|
|
9
|
+
* Last modified : 2024-01-24 11:39:36
|
|
10
10
|
*/
|
|
11
11
|
import Logger from '../../tools/logger';
|
|
12
|
-
import { ILayout, IVideoRenders, IRoster, IScreenInfo, IOutputCustomLayout, ILayoutRoster, IConfInfo, IPageInfo, IReqInfo, VideoQuality, StreamResolutionLevel, TLayoutMap, TemplateMode, ContentTemplateMode, IMode, LayoutOrientationType } from '../../type/index';
|
|
12
|
+
import { ILayout, IVideoRenders, IRoster, IScreenInfo, IOutputCustomLayout, ILayoutRoster, IConfInfo, IPageInfo, IReqInfo, VideoQuality, StreamResolutionLevel, TLayoutMap, TemplateMode, ContentTemplateMode, IMode, LayoutOrientationType, LayoutConfig } from '../../type/index';
|
|
13
13
|
import Client from '../client';
|
|
14
14
|
export default class LayoutManager {
|
|
15
15
|
logger: Logger;
|
|
@@ -37,6 +37,7 @@ export default class LayoutManager {
|
|
|
37
37
|
private templateManager;
|
|
38
38
|
private focusViewConfig;
|
|
39
39
|
private layoutOrientation;
|
|
40
|
+
private layoutConfig;
|
|
40
41
|
constructor(client: Client);
|
|
41
42
|
static getCustomLayoutItem(item: ILayout, resolution: StreamResolutionLevel, quality: VideoQuality): {
|
|
42
43
|
pid: number;
|
|
@@ -44,6 +45,10 @@ export default class LayoutManager {
|
|
|
44
45
|
quality: VideoQuality;
|
|
45
46
|
mediagroupid: number;
|
|
46
47
|
};
|
|
48
|
+
/**
|
|
49
|
+
* 是否开启/接收content
|
|
50
|
+
*/
|
|
51
|
+
get isContentMode(): boolean;
|
|
47
52
|
/**
|
|
48
53
|
* 当前是否是对话模式,且没有发送或接收content。
|
|
49
54
|
* content优先级大于对话模式
|
|
@@ -59,10 +64,17 @@ export default class LayoutManager {
|
|
|
59
64
|
get isEnableHideLocalView(): boolean;
|
|
60
65
|
/**
|
|
61
66
|
* 是否是主会场模式(远端设置为主会场)
|
|
67
|
+
* 会控下发的chairmanUri标识当前会议设置了主会场,
|
|
68
|
+
* 会控的chairmanUri有值时,媒体下发的chairManUrl才标识最终入会的主会场的CallUri
|
|
62
69
|
*
|
|
63
70
|
* @returns
|
|
64
71
|
*/
|
|
65
72
|
get isChairmanMode(): boolean;
|
|
73
|
+
/**
|
|
74
|
+
* 是否是焦点模式
|
|
75
|
+
* forceLayout/content优先级大于对话模式
|
|
76
|
+
*/
|
|
77
|
+
get isFocusMode(): boolean;
|
|
66
78
|
getNewLayout(): ILayout[];
|
|
67
79
|
getOrderRosterList(): IRoster[];
|
|
68
80
|
getOriginOrderRosters(): IRoster[];
|
|
@@ -81,6 +93,7 @@ export default class LayoutManager {
|
|
|
81
93
|
getConfInfo(): IConfInfo;
|
|
82
94
|
getInternalsLayout(): IOutputCustomLayout;
|
|
83
95
|
getLocalShareState(): boolean;
|
|
96
|
+
getFocusRoster(): IRoster | null;
|
|
84
97
|
setOrderRosterList(orderRosterList: IRoster[]): void;
|
|
85
98
|
setOriginOrderRosters(originOrderRosters: IRoster[]): void;
|
|
86
99
|
/**
|
|
@@ -165,12 +178,12 @@ export default class LayoutManager {
|
|
|
165
178
|
*/
|
|
166
179
|
switchLayout(templateMode?: IMode): "SPEAKER" | "GALLERY" | "MULTI_PIC_CONTENT_HIGH_PRIORITY" | "MULTI_PIC_ACTIVE_HIGH_PRIORITY" | "TWO_PIC_PIP" | "CONTENT_ONLY" | "TWO_PIC_SYMMETRIC";
|
|
167
180
|
/**
|
|
168
|
-
* 切换主画面, GALLERY
|
|
181
|
+
* 切换主画面, GALLERY布局/会控设置焦点画面 不支持
|
|
169
182
|
*
|
|
170
|
-
* @param { string }
|
|
171
|
-
* @returns { string }
|
|
183
|
+
* @param { string } rosterId - 指定切换到主画面的rosterId
|
|
184
|
+
* @returns { string } rosterId
|
|
172
185
|
*/
|
|
173
|
-
setFocusView(
|
|
186
|
+
setFocusView(rosterId: string): string;
|
|
174
187
|
/**
|
|
175
188
|
* 更新Local video track
|
|
176
189
|
*/
|
|
@@ -230,11 +243,23 @@ export default class LayoutManager {
|
|
|
230
243
|
*/
|
|
231
244
|
calculateOrderRosterList(): IRoster[];
|
|
232
245
|
/**
|
|
233
|
-
*
|
|
246
|
+
* 设置焦点画面Roster
|
|
247
|
+
*/
|
|
248
|
+
private setFocusRoster;
|
|
249
|
+
/**
|
|
250
|
+
* 缓存主画面信息, 并请流
|
|
234
251
|
*
|
|
235
|
-
* @param { string } id - 指定切换到主画面的
|
|
252
|
+
* @param { string } id - 指定切换到主画面的RosterId
|
|
253
|
+
* @param { FocusViewKind } kind - 来源
|
|
254
|
+
* @param { IRoster | null } roster - 焦点画面roster
|
|
236
255
|
*/
|
|
237
|
-
private
|
|
256
|
+
private handleFocusView;
|
|
257
|
+
/**
|
|
258
|
+
* 更新焦点画面参数
|
|
259
|
+
*
|
|
260
|
+
* @param { FocusViewConfig } config - 焦点画面参数
|
|
261
|
+
*/
|
|
262
|
+
private updateFocusViewConfig;
|
|
238
263
|
/**
|
|
239
264
|
* 计算 custom layout 数据
|
|
240
265
|
*/
|
|
@@ -345,6 +370,12 @@ export default class LayoutManager {
|
|
|
345
370
|
* 退出全屏
|
|
346
371
|
*/
|
|
347
372
|
exitFullScreen(): void;
|
|
373
|
+
/**
|
|
374
|
+
* 设置布局相关配置
|
|
375
|
+
*
|
|
376
|
+
* @param { LayoutConfig } config
|
|
377
|
+
*/
|
|
378
|
+
setLayoutConfig(config: LayoutConfig): void;
|
|
348
379
|
/**
|
|
349
380
|
* 查找对应的roster
|
|
350
381
|
*
|
package/lib/main/meeting.d.ts
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Meeting Info Control
|
|
3
3
|
*
|
|
4
4
|
* Created at : 2022-10-27 13:58:22
|
|
5
|
-
* Last modified :
|
|
5
|
+
* Last modified : 2024-01-24 16:37:23
|
|
6
6
|
*/
|
|
7
|
-
import { IRecordPermission, IConfMgmtUrl, ILayout, IMediaConfig, IReqInfo, LayoutAvatarType, TLayoutMap, InviteInfo, IMeetingControl } from '../type';
|
|
7
|
+
import { IRecordPermission, IConfMgmtUrl, ILayout, IMediaConfig, IReqInfo, LayoutAvatarType, TLayoutMap, InviteInfo, IMeetingControl, FocusViewAction } from '../type';
|
|
8
8
|
import Client from './client';
|
|
9
9
|
import Logger from '../tools/logger';
|
|
10
10
|
declare class Meeting {
|
|
@@ -131,6 +131,13 @@ declare class Meeting {
|
|
|
131
131
|
* 2023-8-3 鉴于安全考虑,此接口需提供MeetingId字段;
|
|
132
132
|
*/
|
|
133
133
|
getMeetingInviteInfo(): Promise<InviteInfo>;
|
|
134
|
+
/**
|
|
135
|
+
* 通过会控设置焦点画面
|
|
136
|
+
*
|
|
137
|
+
* @param { string } endpointId - 指定切换到焦点画面的endpointId
|
|
138
|
+
* @returns
|
|
139
|
+
*/
|
|
140
|
+
setMeetingFocusView(endpointId: string, action: FocusViewAction): Promise<import("../type").IReturnResult>;
|
|
134
141
|
/**
|
|
135
142
|
* 企业配置信息
|
|
136
143
|
*
|
package/lib/tools/browser.d.ts
CHANGED
|
@@ -29,8 +29,10 @@ declare class BrowserDetector {
|
|
|
29
29
|
isMiniProgram: boolean;
|
|
30
30
|
isWindowsWxWechat: boolean;
|
|
31
31
|
isWindowsWechat: boolean;
|
|
32
|
+
isTrident: boolean;
|
|
32
33
|
};
|
|
33
|
-
static getOperationSystem(): "" | "Windows WXWechat" | "Windows Wechat" | "Windows" | "
|
|
34
|
+
static getOperationSystem(): "" | "Windows WXWechat" | "Windows Wechat" | "Windows" | "iOS" | "Android" | "iPad" | "Mac" | "Linux" | "MiniProgram";
|
|
35
|
+
static getBrowserName: () => "Firefox" | "Chrome" | "Safari" | "Edge" | "Opera" | "Internet Explorer" | "WindowsWechat" | "WindowsWxWechat" | "Weixin" | "WXWeixin" | "Tencent" | "Huawei" | "Other" | "Unknown";
|
|
34
36
|
static getChromeVersion(): {
|
|
35
37
|
major: any;
|
|
36
38
|
minor: any;
|
|
@@ -29,8 +29,16 @@ declare class HttpClient {
|
|
|
29
29
|
private clientId;
|
|
30
30
|
private clientSecret;
|
|
31
31
|
private retryCount;
|
|
32
|
-
|
|
32
|
+
private nua;
|
|
33
|
+
private xyApiGatewaySDK;
|
|
33
34
|
constructor(commonOption: IAxiosRequestConfig);
|
|
35
|
+
/**
|
|
36
|
+
* 获取SDK n-ua 信息
|
|
37
|
+
*
|
|
38
|
+
* @param { string } version - SDK版本号
|
|
39
|
+
* @returns { string } n-ua
|
|
40
|
+
*/
|
|
41
|
+
private getNuaInfo;
|
|
34
42
|
getTokenInfo(): any;
|
|
35
43
|
setTokenInfo(tokenInfo: IToken | null): void;
|
|
36
44
|
setLogger(logger: Logger): void;
|
package/lib/type/client.d.ts
CHANGED
|
@@ -674,6 +674,7 @@ export interface IMeetingControl {
|
|
|
674
674
|
* @property { boolean } audioTxMute 参会者麦克风状态,true:开启,false:关闭
|
|
675
675
|
* @property { boolean } videoTxMute 参会者摄像头状态,true:开启,false:关闭
|
|
676
676
|
* @property { boolean } isForceFullScreen 参会者是否是主画面
|
|
677
|
+
* @property { boolean } isFocusScreen 参会者是否是焦点画面
|
|
677
678
|
* @property { number } videoMuteReason 视频关闭原因
|
|
678
679
|
* @property { boolean } isContent 参会者画面类型,同mediagroupid,true:是共享内容画面,false:people画面
|
|
679
680
|
* @property { boolean } isActiveSpeaker 参会者是否是语音激励,即当前会中说话声音最大的一个人
|
|
@@ -697,6 +698,7 @@ export interface IRoster extends Partial<ILayoutRoster> {
|
|
|
697
698
|
videoRxMute: boolean;
|
|
698
699
|
videoMuteReason: number;
|
|
699
700
|
isForceFullScreen: boolean;
|
|
701
|
+
isFocusScreen: boolean;
|
|
700
702
|
isLastAdd: boolean;
|
|
701
703
|
onHold: boolean;
|
|
702
704
|
isPolling: boolean;
|
|
@@ -763,7 +765,7 @@ export declare enum MuteReason {
|
|
|
763
765
|
*
|
|
764
766
|
* @property { number } participantCount 当前会议参会者总人数,不包含共享内容设备数量,包含local
|
|
765
767
|
* @property { number } totalEpCount 当前会议参会者总人数,包含共享内容、指挥调度客户端等设备数量, 包含local
|
|
766
|
-
* @property { string } chairManUrl 当前会议主会场/主画面设备的callUrl,没有为''
|
|
768
|
+
* @property { string } chairManUrl 当前会议主会场/主画面设备的callUrl,没有为'', 如果设置Local为主会场,则此值也为''
|
|
767
769
|
* @property { string } contentUri 当前会议共享内容设别的callUrl,没有为''
|
|
768
770
|
* @property { string } actSpkUri 当前会议语音激励者的callUrl,没有为''
|
|
769
771
|
* @property { IMediaGroupInfo[] } mediaGroupnfo 多分组通人数信息,默认上报0和1分组,分别代表People通道和Content通道
|
|
@@ -776,6 +778,13 @@ export interface IConfInfo {
|
|
|
776
778
|
actSpkUri: string;
|
|
777
779
|
mediaGroupInfo: IMediaGroupInfo[];
|
|
778
780
|
}
|
|
781
|
+
/**
|
|
782
|
+
* 缓存Conf Change消息
|
|
783
|
+
*/
|
|
784
|
+
export interface IPreConfInfo extends IConfInfo {
|
|
785
|
+
isChairmanMode?: boolean;
|
|
786
|
+
isFocusMode?: boolean;
|
|
787
|
+
}
|
|
779
788
|
export interface IMediaGroupInfo {
|
|
780
789
|
endpointCount: number;
|
|
781
790
|
mediagroupid: number;
|
|
@@ -1401,4 +1410,14 @@ export interface Notification {
|
|
|
1401
1410
|
};
|
|
1402
1411
|
requestId: string;
|
|
1403
1412
|
}
|
|
1413
|
+
/**
|
|
1414
|
+
* 焦点画面动作
|
|
1415
|
+
*
|
|
1416
|
+
* @param START - 指定焦点画面
|
|
1417
|
+
* @param STOP - 取消焦点画面
|
|
1418
|
+
*/
|
|
1419
|
+
export declare enum FocusViewAction {
|
|
1420
|
+
START = "start",
|
|
1421
|
+
STOP = "stop"
|
|
1422
|
+
}
|
|
1404
1423
|
export {};
|
package/lib/type/layout.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ILayout } from './client';
|
|
1
|
+
import { ILayout, IRoster } from './client';
|
|
2
2
|
import { StreamResolutionLevel, VideoQuality } from './stream';
|
|
3
3
|
/**
|
|
4
4
|
* Layout头像类型
|
|
@@ -172,14 +172,32 @@ export declare enum LayoutOrientationType {
|
|
|
172
172
|
MOBILE_VERTICAL = 1
|
|
173
173
|
}
|
|
174
174
|
/**
|
|
175
|
-
*
|
|
175
|
+
* 焦点画面来源
|
|
176
176
|
*
|
|
177
|
-
* @
|
|
177
|
+
* @param NONE 0 - 无
|
|
178
|
+
* @param USER 1 - 用户
|
|
179
|
+
* @param MEETING 2 - 会控
|
|
180
|
+
*/
|
|
181
|
+
export declare enum FocusViewKind {
|
|
182
|
+
NONE = 0,
|
|
183
|
+
USER = 1,
|
|
184
|
+
MEETING = 2
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* 焦点画面参数
|
|
188
|
+
*
|
|
189
|
+
* @property { string } viewId - 指定的主画面的RosterId
|
|
178
190
|
* @property { TemplateType } type - 画面类型
|
|
191
|
+
* @property { IRoster|null } roster - 焦点画面roster信息
|
|
192
|
+
* @property { string } rosterId - 焦点画面rosterId
|
|
193
|
+
* @property { FocusViewKind } kind - 来源
|
|
179
194
|
*/
|
|
180
195
|
export interface FocusViewConfig {
|
|
181
|
-
|
|
196
|
+
viewId: string;
|
|
182
197
|
type: TemplateType;
|
|
198
|
+
roster: IRoster | null;
|
|
199
|
+
rosterId?: string;
|
|
200
|
+
kind?: FocusViewKind;
|
|
183
201
|
}
|
|
184
202
|
/**
|
|
185
203
|
* 需要管理员广播才能收看内容共享
|
|
@@ -193,3 +211,13 @@ export interface ContentOnholdInfo {
|
|
|
193
211
|
audioTrackId: string;
|
|
194
212
|
contentUrl: string;
|
|
195
213
|
}
|
|
214
|
+
/**
|
|
215
|
+
* 布局相关配置
|
|
216
|
+
*
|
|
217
|
+
* @property { boolean } isForceSharedLayout - 本地共享布局是否强制宫格布局
|
|
218
|
+
* @property { number } localSharedMaxViewCount - 本地共享时显示的最大画面数量
|
|
219
|
+
*/
|
|
220
|
+
export interface LayoutConfig {
|
|
221
|
+
isForceSharedLayout?: boolean;
|
|
222
|
+
localSharedMaxViewCount?: number;
|
|
223
|
+
}
|