@xylink/xy-rtc-sdk 3.9.1-beta.6 → 3.9.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.
@@ -93,11 +93,12 @@ declare class Action {
93
93
  /**
94
94
  * 获取i18n/errorcode等链接
95
95
  *
96
+ * @deprecated
96
97
  * @returns
97
98
  */
98
99
  getDefaultServerConfig(): Promise<any>;
99
100
  /**
100
- * 批量获取serverConfig
101
+ * 批量获取serverConfig, 获取错误码/i18n等json链接
101
102
  *
102
103
  * @param {string[]} includeConfigNameList 需要的配置key值
103
104
  * @returns
@@ -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, ITemplateMode, IContentTemplateMode, IRoster, IFeatureConfig, StreamStatus, StreamType, ILoggerConfig, FacingMode } from '../type';
7
+ import { IDefault, IOPERATE_MAP, IRoster, IFeatureConfig, StreamStatus, StreamType, ILoggerConfig, FacingMode, TemplateMode, ContentTemplateMode } 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;
@@ -61,6 +61,10 @@ export declare const RESOLUTION_TYPE: number[];
61
61
  * 每页最大显示终端数
62
62
  */
63
63
  export declare const MAX_PAGE_SIZE = 9;
64
+ /**
65
+ * 移动端 对称布局 最大请流数量
66
+ */
67
+ export declare const MAX_MOBILE_PAGE_SIZE = 6;
64
68
  /**
65
69
  * 网络信息
66
70
  */
@@ -87,21 +91,21 @@ export declare const DEFAULT_ROSTER: IRoster;
87
91
  */
88
92
  export declare const DEFAULT: IDefault;
89
93
  /**
90
- * 模板类型
94
+ * 非content 默认模版类型数组
91
95
  */
92
- export declare const TEMPLATE_MODE: ITemplateMode[];
96
+ export declare const TEMPLATE_MODE_LIST: TemplateMode[];
93
97
  /**
94
- * content 模板类型
98
+ * content 模板类型数组
95
99
  */
96
- export declare const CONTENT_TEMPLATE_MODE: IContentTemplateMode[];
100
+ export declare const CONTENT_TEMPLATE_MODE_LIST: ContentTemplateMode[];
97
101
  /**
98
102
  * 非content 默认模板类型
99
103
  */
100
- export declare const TEMPLATE_DEFAULT_MODE = "SPEAKER";
104
+ export declare const TEMPLATE_DEFAULT_MODE = TemplateMode.SPEAKER;
101
105
  /**
102
106
  * content 模板类型
103
107
  */
104
- export declare const CONTENT_DEFAULT_TEMPLATE_MODE = "MULTI_PIC_CONTENT_HIGH_PRIORITY";
108
+ export declare const CONTENT_DEFAULT_TEMPLATE_MODE = ContentTemplateMode.MULTI_PIC_CONTENT_HIGH_PRIORITY;
105
109
  /**
106
110
  * 用户类型
107
111
  */
package/lib/index.d.ts CHANGED
@@ -12,6 +12,7 @@ import Logger from './tools/logger';
12
12
  import Client from './main/client';
13
13
  import Stream from './main/stream';
14
14
  import { getVideoInfoByRotation, getSendSupportedCodec, getLayoutRotateInfo, getLayoutItemState, detectLocator } from './main/helper';
15
+ import BrowserDetector from './tools/browser';
15
16
  /**
16
17
  * XYLink WebRTC SDK 操作入口
17
18
  */
@@ -35,3 +36,4 @@ export default xyRTC;
35
36
  export { Client, Stream, Logger, DeviceManager, getLayoutItemState, getVideoInfoByRotation as getVideoInfoByRotaion, getLayoutRotateInfo, getSendSupportedCodec, detectLocator };
36
37
  export * from './type';
37
38
  export { ERROR_CODE } from './enum/errorCode';
39
+ export { BrowserDetector };
@@ -4,14 +4,14 @@
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 } from '../type';
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';
8
8
  import Emitter from '../tools/emitter';
9
9
  import Socket from '../tools/socket';
10
10
  import Stream from './stream';
11
11
  import Logger from '../tools/logger';
12
12
  import IAuth from './iauth';
13
13
  import DeviceManager from './deviceManager';
14
- import LayoutManager from './layoutManager';
14
+ import LayoutManager from './layout';
15
15
  export default class Client extends Emitter {
16
16
  logger: Logger;
17
17
  iauth: IAuth;
@@ -148,6 +148,13 @@ export default class Client extends Emitter {
148
148
  * @returns { IMediaConfig }
149
149
  */
150
150
  getEnterpriseMediaConfig(): import("../type").IMediaConfig;
151
+ /**
152
+ * 切换布局方向
153
+ *
154
+ * @param { LayoutOrientationType } orientation - 布局方向: MOBILE_HORIZONTAL(横屏);MOBILE_VERTICAL(竖屏)
155
+ * @returns { Promise<IReturnResult> }
156
+ */
157
+ setLayoutOrientation(orientation: LayoutOrientationType): Promise<IReturnResult>;
151
158
  /**
152
159
  * 设置本地是否在等候室
153
160
  *
@@ -325,6 +332,13 @@ export default class Client extends Emitter {
325
332
  * @returns { Promise<IMode> } 切换后的布局模式
326
333
  */
327
334
  switchLayout(templateMode?: IMode): Promise<IMode>;
335
+ /**
336
+ * 切换主画面
337
+ *
338
+ * @param { string } id 指定切换到主画面的LayoutId
339
+ * @returns { Promise<string> } LayoutId
340
+ */
341
+ setFocusView(id: string): Promise<string>;
328
342
  /**
329
343
  * AUTO布局 分页
330
344
  *
@@ -6,11 +6,11 @@
6
6
  * @email luojinghui424@gmail.com
7
7
  *
8
8
  * Created at : 2021-01-05 17:24:07
9
- * Last modified : 2023-06-16 16:53:23
9
+ * Last modified : 2023-07-07 16:49:48
10
10
  */
11
- import Logger from '../tools/logger';
12
- import { ILayout, IVideoRenders, IRoster, ITemplateObj, IScreenInfo, IMode, IOutputCustomLayout, ILayoutRoster, IConfInfo, IPageInfo, IReqInfo, VideoQuality, StreamResolutionLevel, TLayoutMap } from '../type/index';
13
- import Client from './client';
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';
13
+ import Client from '../client';
14
14
  export default class LayoutManager {
15
15
  logger: Logger;
16
16
  client: Client;
@@ -34,6 +34,9 @@ export default class LayoutManager {
34
34
  private confInfo;
35
35
  private pageInfo;
36
36
  private isLocalShareContent;
37
+ private templateManager;
38
+ private focusViewConfig;
39
+ private layoutOrientation;
37
40
  constructor(client: Client);
38
41
  static getCustomLayoutItem(item: ILayout, resolution: StreamResolutionLevel, quality: VideoQuality): {
39
42
  pid: number;
@@ -55,99 +58,122 @@ export default class LayoutManager {
55
58
  getScreenInfo(): IScreenInfo;
56
59
  getVideoManagers(): IVideoRenders;
57
60
  getForceFullScreenId(): string;
58
- getTemplateMode(): IMode;
61
+ getTemplateMode(): TemplateMode | ContentTemplateMode;
59
62
  getConfInfo(): IConfInfo;
60
63
  getInternalsLayout(): IOutputCustomLayout;
61
64
  getLocalShareState(): boolean;
62
65
  setOrderRosterList(orderRosterList: IRoster[]): void;
63
66
  setOriginOrderRosters(originOrderRosters: IRoster[]): void;
67
+ /**
68
+ * 维护 Local roster 状态
69
+ *
70
+ * @param { Partial<IRoster> } data - 需要更新的roster数据
71
+ */
72
+ setLocalStatus(data: Partial<IRoster>): void;
64
73
  /**
65
74
  * 设置发布全屏layout id
66
75
  *
67
- * @param { string } id forceLayout roster id
76
+ * @param { string } id - forceLayout roster id
68
77
  */
69
78
  setForceFullScreenId(id?: string): void;
79
+ /**
80
+ * 设置content信息
81
+ *
82
+ * @param { IRoster | null } content - 共享内容
83
+ */
70
84
  setContentRosterItem(content: IRoster | null): void;
85
+ /**
86
+ * 设置confInfo
87
+ *
88
+ * @param { IConfInfo } confInfo - Conf Change消息
89
+ */
71
90
  setConfInfo(confInfo: IConfInfo): void;
72
91
  /**
73
- * 本地分享content, 设置对应布局、页码
92
+ * [AUTO] 分页
74
93
  *
75
- * @public
76
- * @param { boolean } is 本地是否分享content
94
+ * @param { number } currentPage - 请求某一页数据
77
95
  */
78
- setLocalShareContent(is: boolean): void;
96
+ setPageInfo(currentPage?: number): void;
79
97
  /**
80
- * 计算显示模板数据
98
+ * 本地分享content, 设置对应布局、页码
81
99
  *
82
- * @public
83
- * @returns
100
+ * @param { boolean } is - 本地是否分享content
84
101
  */
85
- calcTemplate(): {
86
- tempLayout: ITemplateObj[];
87
- templateRate: number;
88
- };
89
- initLayoutManager(): void;
102
+ setLocalShareContent(is: boolean): void;
90
103
  /**
91
104
  * 回调 video 状态
105
+ * state === (roster当前状态 + 上一次的status)
92
106
  *
93
- * @param key endpointId + mediagroupId 组成的id
94
- * @param data 最新的会议状态 status === video track / video标签 监听到的状态
95
- *
96
- * state === roster 当前状态 + 上一次的status
107
+ * @param { string } key - endpointId + mediagroupId 组成的id
108
+ * @param { status: string; error?: any } data - 最新的会议状态 status === video track / video标签 监听到的状态
97
109
  */
98
110
  private onVideoStatusChange;
99
111
  /**
100
112
  * 使用wrap element元素更新 videoManagers 数据,并绑定视频流信息
101
113
  *
102
- * @param key endpointId + mediagroupId 组成的id
103
- * @param wrapEleId wrap video element id
114
+ * @param { string } key - endpointId + mediagroupId 组成的id
115
+ * @param { string } wrapEleId - wrap video element id
104
116
  */
105
117
  setVideoRenderer(key: string, wrapEleId: string): void;
118
+ /**
119
+ * videoManagers 移除key对应的元素
120
+ *
121
+ * @param { string } key - endpointId + mediagroupId 组成的id
122
+ * @param { string } wrapEleId - wrap video element id
123
+ */
106
124
  removeVideoRenderer(key: string, wrapEleId: string): void;
125
+ /**
126
+ * 播放本地画面
127
+ */
107
128
  playLocalVideo(): Promise<void>;
108
- playVideo(keys?: string[]): Promise<void>;
109
- updateLocalTrack(): void;
110
129
  /**
111
- * 使用最新的 videoTrackList 和 layoutResults 数据更新 layout 内容
130
+ * 播放对应画面
131
+ *
132
+ * @param { string[] } keys - videoID list
112
133
  */
113
- updateStreams(isAutoSendLayout?: boolean): void;
134
+ playVideo(keys?: string[]): Promise<void>;
114
135
  /**
115
- * 清理失效的 video manager 数据
136
+ * 切换布局方向
137
+ *
138
+ * @param { LayoutOrientationType } layoutOrientation - 布局方向: MOBILE_HORIZONTAL-横屏;MOBILE_VERTICAL-竖屏
116
139
  */
117
- clearInvalidVideoManagers(): void;
140
+ setLayoutOrientation(layoutOrientation: LayoutOrientationType): void;
118
141
  /**
119
- * [AUTO] 重新计算页码信息、模板类型
142
+ * [AUTO] 切换布局
120
143
  *
121
- * @public
144
+ * @param { IMode } templateMode - 指定要切换的布局模式
145
+ * @returns { Promise<IMode> } - 切换后的布局模式
122
146
  */
123
- calcPageInfo(confInfo?: IConfInfo): void;
147
+ switchLayout(templateMode?: IMode): "SPEAKER" | "GALLERY" | "MULTI_PIC_CONTENT_HIGH_PRIORITY" | "MULTI_PIC_ACTIVE_HIGH_PRIORITY" | "TWO_PIC_PIP" | "CONTENT_ONLY" | "TWO_PIC_SYMMETRIC";
124
148
  /**
125
- * [AUTO] 分页
149
+ * 切换主画面, GALLERY布局不支持
126
150
  *
127
- * @public
128
- * @param { number } currentPage 请求某一页数据
151
+ * @param { string } id - 指定切换到主画面的LayoutId
152
+ * @returns { string } id
129
153
  */
130
- setPageInfo(currentPage?: number): void;
154
+ setFocusView(id: string): string;
131
155
  /**
132
- * [AUTO] 全屏请流
156
+ * 更新Local video track
157
+ */
158
+ updateLocalTrack(): void;
159
+ /**
160
+ * [AUTO] 重新计算页码信息、模板类型
133
161
  *
134
- * @public
162
+ * @param { IConfInfo } confInfo - confChange信息
135
163
  */
136
- calcForceFullScreenRequestLayout(): void;
164
+ calcPageInfo(confInfo?: IConfInfo): void;
137
165
  /**
138
166
  * [AUTO] 请流
139
167
  *
140
- * @public
141
- * @param { IPageInfo } pageInfo 页码信息
168
+ * @param { IPageInfo } pageInfo - 页码信息
142
169
  */
143
170
  calcRequestNewLayout(pageInfo?: IPageInfo): void;
144
171
  /**
145
- * [AUTO] : 基于 new layout result 消息生成 customLayoutMap 数据,并diff对比更新数据
172
+ * [AUTO] 设置模版类型
146
173
  *
147
- * @public
148
- * @param { ILayoutRoster[] } totalLayoutResultList
174
+ * @param { boolean } isReset - 是否重置模版
149
175
  */
150
- createAutoLayout(totalLayoutResultList: ILayoutRoster[]): void;
176
+ setTemplateMode(isReset?: boolean): void;
151
177
  /**
152
178
  * 重置templateMode
153
179
  * 本地共享,则显示对称布局四画面
@@ -157,63 +183,106 @@ export default class LayoutManager {
157
183
  /**
158
184
  * 创建排好序的roster数据
159
185
  *
160
- * @private
161
- * @param { ILayoutRoster[] } totalLayoutResultList
186
+ * @param { ILayoutRoster[] } totalLayoutResultList - layout数据
162
187
  */
163
188
  private createOrderRoster;
189
+ /**
190
+ * [CUSTOM] 基于 new layout result 消息生成 customLayoutMap 数据,并diff对比更新数据
191
+ *
192
+ * @param { ILayoutRoster[] } totalLayoutResultList - layout数据
193
+ */
164
194
  createCustomLayout(totalLayoutResultList: ILayoutRoster[]): void;
165
195
  /**
166
- * 根据 reqList 计算最新的 layout 数据(2.0.2以前的版本方法)
196
+ * [AUTO] : 基于 new layout result 消息生成 customLayoutMap 数据,并diff对比更新数据
167
197
  *
168
- * @param reqList
198
+ * @param { ILayoutRoster[] } totalLayoutResultList - layout数据
199
+ */
200
+ createAutoLayout(totalLayoutResultList: ILayoutRoster[]): void;
201
+ /**
202
+ * 创建Layout
169
203
  */
170
- requestLayout(reqList: IReqInfo[]): void;
171
- calculatePosition(): void;
172
- calculateRotate(): void;
173
- getVideoStreamByTrackId(videoTrackId: string): {
174
- videoStream: MediaStream | null;
175
- track: MediaStreamTrack | null;
176
- };
177
- calculateNewLayoutList(): {
178
- roster: IRoster;
179
- position: number[];
180
- zIndex: number;
181
- }[];
182
- calculateScreenInfo(): {
183
- width: number;
184
- height: number;
185
- rateHeight: number;
186
- rateWidth: number;
187
- } | undefined;
188
204
  createLayout(): void;
205
+ /**
206
+ * roster 排序
207
+ */
189
208
  calculateOrderRosterList(): IRoster[];
190
209
  /**
191
- * [auto] 切换布局
210
+ * 缓存主画面信息
192
211
  *
193
- * @param { IMode } templateMode 指定要切换的布局模式
194
- * @returns { Promise<IMode> } 切换后的布局模式
212
+ * @param { string } id - 指定切换到主画面的LayoutId
195
213
  */
196
- switchLayout(templateMode?: IMode): IMode;
214
+ private handleFocusViewConfig;
197
215
  /**
198
- * 【内部方法】停止轮询时,清理无效的 videoManager 数据
216
+ * 计算 custom layout 数据
217
+ */
218
+ private customLayoutCalculator;
219
+ /**
220
+ * [AUTO] 1. 初始化Layout数据
221
+ */
222
+ initLayoutManager(): void;
223
+ /**
224
+ * 计算显示模板数据
199
225
  *
200
- * @param monitoryList callUri list 数据
226
+ * @param { number } currentCount - 模版画面数量
227
+ * @param { TemplateType } templateType 是否是全屏模版
201
228
  */
202
- clearVideoManagersUseMonitorList(monitoryList: string[]): void;
229
+ private calcTemplate;
203
230
  /**
204
- * 维护 Local roster 状态
205
- * @param data
231
+ * 根据模版匹配roster信息,生产newLayout数据
232
+ */
233
+ calculateNewLayoutList(): ILayout[];
234
+ /**
235
+ * 计算Layout Container的容器信息
236
+ */
237
+ calculateScreenInfo(): void;
238
+ /**
239
+ * 计算Layout Container的容器信息
240
+ *
241
+ * @param { number } rate - 容器比例
242
+ * @returns { IScreenInfo } screenInfo
206
243
  */
207
- setLocalStatus(data: any): void;
244
+ private getTemplateScreenInfo;
245
+ /**
246
+ * [AUTO] 2.创建LayoutMap, 移除无效Layout
247
+ */
248
+ private createBaseLayout;
208
249
  /**
209
250
  * 清理无效的 layout 数据,重置状态
210
251
  */
211
252
  private clearInvalidLayout;
212
- private createBaseLayout;
213
253
  /**
214
- * 计算 custom layout 数据
254
+ * [AUTO | CUSTOM] 使用最新的 videoTrackList 和 layoutResults 数据更新 layout 内容
255
+ *
256
+ * @param { boolean } isAutoSendLayout - 是否上报Layout信息
215
257
  */
216
- private customLayoutCalculator;
258
+ updateStreams(isAutoSendLayout?: boolean): void;
259
+ /**
260
+ * 清理失效的 video manager 数据
261
+ */
262
+ clearInvalidVideoManagers(): void;
263
+ private getVideoStreamByTrackId;
264
+ /**
265
+ * [AUTO] 计算位置信息
266
+ */
267
+ calculatePosition(): void;
268
+ /**
269
+ * 计算位置信息
270
+ *
271
+ * @param { ILayout } item - 需要计算位置信息的layout信息
272
+ * @param { IScreenInfo } screenInfo
273
+ * @returns
274
+ */
275
+ private getTemplatePosition;
276
+ /**
277
+ * [AUTO] 计算旋转信息
278
+ */
279
+ calculateRotate(): void;
280
+ /**
281
+ * 【内部方法】停止轮询时,清理无效的 videoManager 数据
282
+ *
283
+ * @param monitoryList callUri list 数据
284
+ */
285
+ clearVideoManagersUseMonitorList(monitoryList: string[]): void;
217
286
  /**
218
287
  * 通过旋转信息获取在layout中的位置
219
288
  *
@@ -221,6 +290,21 @@ export default class LayoutManager {
221
290
  * @param mediagroupid type
222
291
  */
223
292
  private getLayoutKeyByRotateInfo;
293
+ /**
294
+ * 获取最终请流分辨率
295
+ * 1. 根据是否启用低性能模式
296
+ * 2. 根据企业配置转换请流分辨率
297
+ *
298
+ * @param { ITemplateResolution } resolution - layout模版分辨率
299
+ * @returns { resolutionLevel }
300
+ */
301
+ private convertResolutionLevel;
302
+ /**
303
+ * 是否是主会场模式(远端设置为主会场)
304
+ *
305
+ * @returns
306
+ */
307
+ private isChairmanMode;
224
308
  /**
225
309
  * 镜像显示Local画面
226
310
  */
@@ -233,12 +317,25 @@ export default class LayoutManager {
233
317
  */
234
318
  private getLayoutTextAvatar;
235
319
  /**
236
- * 获取最终请流分辨率
237
- * 1. 根据是否启用低性能模式
238
- * 2. 根据企业配置转换请流分辨率
320
+ * [AUTO] 全屏请流
321
+ */
322
+ private calcForceFullScreenRequestLayout;
323
+ /**
324
+ * 退出全屏
325
+ */
326
+ private exitFullScreen;
327
+ /**
328
+ * 查找对应的roster
239
329
  *
240
- * @param { ITemplateResolution } resolution - layout模版分辨率
241
- * @returns { resolutionLevel }
330
+ * @param { string } id - LayoutId
331
+ * @param { ILayoutRoster[]} list - layout list
332
+ * @returns
242
333
  */
243
- private convertResolutionLevel;
334
+ private findRosterById;
335
+ /**
336
+ * 根据 reqList 计算最新的 layout 数据(2.0.2以前的版本方法)
337
+ *
338
+ * @param { IReqInfo[] } reqList - 请流数据
339
+ */
340
+ requestLayout(reqList: IReqInfo[]): void;
244
341
  }
@@ -0,0 +1,64 @@
1
+ import { TemplateInfo, TemplateParams } from '../../type';
2
+ declare class TemplateManager {
3
+ private templates;
4
+ private commonTemplates;
5
+ private contentTemplates;
6
+ constructor();
7
+ /**
8
+ * 获取对应的模版
9
+ *
10
+ * @param { TemplateMode } modeType 模版类型
11
+ * @param { number } currentCount 画面数量
12
+ * @param { number } participantCount 会议总人数
13
+ * @param { boolean } isLocalHide 是否隐藏Local, 默认:false
14
+ * @param { boolean } isChairmanMode 是否有主会场, 默认:false
15
+ * @param { TemplateType } templateType 全屏画面类型
16
+ * @param { LayoutOrientationType } orientation 移动端方向,默认 'NONE':PC端
17
+ * @returns
18
+ */
19
+ getTemplate({ modeType, currentCount, participantCount, isLocalHide, isChairmanMode, templateType, orientation, focusViewConfig }: TemplateParams): TemplateInfo;
20
+ /**
21
+ * 处理指定的主画面模版信息
22
+ *
23
+ * @param { ITemplateObj[] } newTemplate 模版信息
24
+ * @param { FocusViewConfig } focusViewConfig 指定的主画面的信息
25
+ */
26
+ private handleForceView;
27
+ /**
28
+ * 获取不同平台,不同方向 对应的所有模版类型数据
29
+ *
30
+ * @param { LayoutOrientationType } orientation
31
+ * @returns { ITemplate }
32
+ */
33
+ private getAllTemplates;
34
+ /**
35
+ * 初始化content模版数据
36
+ */
37
+ private getContentTemplates;
38
+ /**
39
+ * 初始化 移动端 模版数据
40
+ */
41
+ private getMobileTemplates;
42
+ /**
43
+ * 获取全屏模版
44
+ *
45
+ * @param { TemplateType } type - 全屏对象的类型, PEOPLE/CONTENT等
46
+ * @returns { TemplateInfo }
47
+ */
48
+ private getFullLayoutTemplate;
49
+ /**
50
+ * [content]缩略视图: 和演讲者布局一样,但是主画面显示content,分辨率请1080P
51
+ *
52
+ * @param { TemplateInfos } template
53
+ * @returns
54
+ */
55
+ private getMultiPicContentHighPriority;
56
+ /**
57
+ * [content] 缩略共享: 和演讲者布局一样, 但是左列第二画面小窗口显示content, 分辨率请720P
58
+ *
59
+ * @param { TemplateInfos } template
60
+ * @returns
61
+ */
62
+ private getMultiPicActiveHighPriority;
63
+ }
64
+ export default TemplateManager;