@xylink/xy-rtc-sdk 3.9.1-beta.6 → 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 +15 -7
- package/lib/enum/index.d.ts +11 -7
- package/lib/index.d.ts +9 -4
- package/lib/main/client.d.ts +37 -10
- 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 +362 -0
- package/lib/main/layout/template.d.ts +72 -0
- package/lib/main/meeting.d.ts +11 -2
- package/lib/main/peer.d.ts +2 -0
- package/lib/tools/browser.d.ts +58 -49
- package/lib/tools/logger.d.ts +1 -0
- package/lib/tools/template/index.d.ts +324 -0
- package/lib/tools/template/mobile.d.ts +9 -0
- package/lib/type/base.d.ts +14 -0
- package/lib/type/client.d.ts +40 -92
- package/lib/type/layout.d.ts +178 -13
- package/lib/type/stream.d.ts +1 -1
- package/lib/xyrtc.cjs.js +1 -1
- package/lib/xyrtc.umd.js +1 -1
- package/package.json +2 -1
- package/lib/main/layoutManager.d.ts +0 -244
- package/lib/tools/template.d.ts +0 -21
|
@@ -0,0 +1,72 @@
|
|
|
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 } isEnableHideLocalView 是否隐藏Local, 默认:false
|
|
14
|
+
* @param { boolean } isChairmanMode 是否有主会场, 默认:false
|
|
15
|
+
* @param { TemplateType } templateType 全屏画面类型
|
|
16
|
+
* @param { LayoutOrientationType } orientation 移动端方向,默认 'NONE':PC端
|
|
17
|
+
* @param { boolean } isInDialogMode 是否是对话模式布局, 默认:false
|
|
18
|
+
* @returns
|
|
19
|
+
*/
|
|
20
|
+
getTemplate({ modeType, currentCount, participantCount, isEnableHideLocalView, isChairmanMode, templateType, orientation, focusViewConfig, isInDialogMode }: TemplateParams): TemplateInfo;
|
|
21
|
+
/**
|
|
22
|
+
* 处理指定的主画面模版信息
|
|
23
|
+
*
|
|
24
|
+
* @param { ITemplateObj[] } newTemplate 模版信息
|
|
25
|
+
* @param { FocusViewConfig } focusViewConfig 指定的主画面的信息
|
|
26
|
+
*/
|
|
27
|
+
private handleForceView;
|
|
28
|
+
/**
|
|
29
|
+
* 处理对话模式布局: 对称布局,主会场+本地画面+未静音分会场
|
|
30
|
+
*
|
|
31
|
+
* @param { ITemplateObj[] } newTemplate 模版信息
|
|
32
|
+
* @returns
|
|
33
|
+
*/
|
|
34
|
+
private handleDialogLayout;
|
|
35
|
+
/**
|
|
36
|
+
* 获取不同平台,不同方向 对应的所有模版类型数据
|
|
37
|
+
*
|
|
38
|
+
* @param { LayoutOrientationType } orientation
|
|
39
|
+
* @returns { ITemplate }
|
|
40
|
+
*/
|
|
41
|
+
private getAllTemplates;
|
|
42
|
+
/**
|
|
43
|
+
* 初始化content模版数据
|
|
44
|
+
*/
|
|
45
|
+
private getContentTemplates;
|
|
46
|
+
/**
|
|
47
|
+
* 初始化 移动端 模版数据
|
|
48
|
+
*/
|
|
49
|
+
private getMobileTemplates;
|
|
50
|
+
/**
|
|
51
|
+
* 获取全屏模版
|
|
52
|
+
*
|
|
53
|
+
* @param { TemplateType } type - 全屏对象的类型, PEOPLE/CONTENT等
|
|
54
|
+
* @returns { TemplateInfo }
|
|
55
|
+
*/
|
|
56
|
+
private getFullLayoutTemplate;
|
|
57
|
+
/**
|
|
58
|
+
* [content]缩略视图: 和演讲者布局一样,但是主画面显示content,分辨率请1080P
|
|
59
|
+
*
|
|
60
|
+
* @param { TemplateInfos } template
|
|
61
|
+
* @returns
|
|
62
|
+
*/
|
|
63
|
+
private getMultiPicContentHighPriority;
|
|
64
|
+
/**
|
|
65
|
+
* [content] 缩略共享: 和演讲者布局一样, 但是左列第二画面小窗口显示content, 分辨率请720P
|
|
66
|
+
*
|
|
67
|
+
* @param { TemplateInfos } template
|
|
68
|
+
* @returns
|
|
69
|
+
*/
|
|
70
|
+
private getMultiPicActiveHighPriority;
|
|
71
|
+
}
|
|
72
|
+
export default TemplateManager;
|
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/browser.d.ts
CHANGED
|
@@ -1,55 +1,64 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Browser version tools
|
|
3
|
+
* platform/browser/version
|
|
3
4
|
*
|
|
4
5
|
* @authors Luo-jinghui (luojinghui424@gmail.com)
|
|
5
6
|
* @date 2020-02-21 16:29:12
|
|
6
7
|
*/
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
8
|
+
declare class BrowserDetector {
|
|
9
|
+
static getPlatform(): {
|
|
10
|
+
isTablet: boolean;
|
|
11
|
+
isPhone: boolean;
|
|
12
|
+
isAndroid: boolean;
|
|
13
|
+
isPc: boolean;
|
|
14
|
+
isMac: boolean;
|
|
15
|
+
isWindows: boolean;
|
|
16
|
+
isIPad: boolean;
|
|
17
|
+
isChrome: boolean;
|
|
18
|
+
isLinux: boolean;
|
|
19
|
+
isFirefox: boolean;
|
|
20
|
+
isBaidu: boolean;
|
|
21
|
+
isQQ: boolean;
|
|
22
|
+
isOpera: boolean;
|
|
23
|
+
isZhazha: boolean;
|
|
24
|
+
isEdge: boolean;
|
|
25
|
+
isSafari: boolean;
|
|
26
|
+
isHuaweiBrowser: boolean;
|
|
27
|
+
isWeixin: boolean;
|
|
28
|
+
iswxwork: boolean;
|
|
29
|
+
isMiniProgram: boolean;
|
|
30
|
+
isWindowsWxWechat: boolean;
|
|
31
|
+
isWindowsWechat: boolean;
|
|
32
|
+
};
|
|
33
|
+
static getOperationSystem(): "" | "Windows WXWechat" | "Windows Wechat" | "Windows" | "iPhone" | "Android" | "iPad" | "Mac" | "Linux" | "MiniProgram";
|
|
34
|
+
static getChromeVersion(): {
|
|
35
|
+
major: any;
|
|
36
|
+
minor: any;
|
|
37
|
+
build: any;
|
|
38
|
+
patch: any;
|
|
39
|
+
} | undefined;
|
|
40
|
+
static getEdgeVersion(): {
|
|
41
|
+
major: any;
|
|
42
|
+
minor: any;
|
|
43
|
+
build: any;
|
|
44
|
+
} | undefined;
|
|
45
|
+
static getSafariVersion(): {
|
|
46
|
+
major: any;
|
|
47
|
+
minor: any;
|
|
48
|
+
} | undefined;
|
|
49
|
+
static getFirefoxVersion(): {
|
|
50
|
+
major: any;
|
|
51
|
+
minor: any;
|
|
52
|
+
} | undefined;
|
|
53
|
+
static getAndroidVersion(): {
|
|
54
|
+
major: any;
|
|
55
|
+
minor: any;
|
|
56
|
+
} | undefined;
|
|
57
|
+
static getIOSVersion(): {
|
|
58
|
+
major: any;
|
|
59
|
+
minor: any;
|
|
60
|
+
} | undefined;
|
|
61
|
+
static getWeixinVersion(): string | undefined;
|
|
62
|
+
static getWXWeixinVersion(): string | undefined;
|
|
63
|
+
}
|
|
64
|
+
export default BrowserDetector;
|
package/lib/tools/logger.d.ts
CHANGED
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Meeting layout init template data
|
|
3
|
+
*
|
|
4
|
+
* @authors Luo-jinghui (luojinghui424@gmail.com)
|
|
5
|
+
* @date 2019-10-24 20:41:38
|
|
6
|
+
*/
|
|
7
|
+
import { ITemplate, TemplateType, VideoQuality, StreamResolutionLevel, TemplateInfos } from '../../type';
|
|
8
|
+
export * from './mobile';
|
|
9
|
+
export declare const RATE = 0.5625;
|
|
10
|
+
export declare const HIDE_POSITION: number[];
|
|
11
|
+
export declare const FULL_POSITION: number[];
|
|
12
|
+
export declare const SPEAKER_TEMPLATE: {
|
|
13
|
+
'1-1': {
|
|
14
|
+
position: number[];
|
|
15
|
+
resolution: {
|
|
16
|
+
normal: StreamResolutionLevel;
|
|
17
|
+
low: StreamResolutionLevel;
|
|
18
|
+
high: StreamResolutionLevel;
|
|
19
|
+
};
|
|
20
|
+
type: TemplateType;
|
|
21
|
+
quality: VideoQuality;
|
|
22
|
+
}[];
|
|
23
|
+
'2-1': ({
|
|
24
|
+
position: number[];
|
|
25
|
+
resolution: {
|
|
26
|
+
normal: StreamResolutionLevel;
|
|
27
|
+
low: StreamResolutionLevel;
|
|
28
|
+
high: StreamResolutionLevel;
|
|
29
|
+
};
|
|
30
|
+
type: TemplateType;
|
|
31
|
+
quality: VideoQuality;
|
|
32
|
+
} | {
|
|
33
|
+
position: number[];
|
|
34
|
+
resolution: {
|
|
35
|
+
normal: StreamResolutionLevel;
|
|
36
|
+
low: StreamResolutionLevel;
|
|
37
|
+
high?: undefined;
|
|
38
|
+
};
|
|
39
|
+
type: TemplateType;
|
|
40
|
+
quality: VideoQuality;
|
|
41
|
+
})[];
|
|
42
|
+
'3-1': ({
|
|
43
|
+
position: number[];
|
|
44
|
+
resolution: {
|
|
45
|
+
normal: StreamResolutionLevel;
|
|
46
|
+
low: StreamResolutionLevel;
|
|
47
|
+
high: StreamResolutionLevel;
|
|
48
|
+
};
|
|
49
|
+
type: TemplateType;
|
|
50
|
+
quality: VideoQuality;
|
|
51
|
+
} | {
|
|
52
|
+
position: number[];
|
|
53
|
+
resolution: {
|
|
54
|
+
normal: StreamResolutionLevel;
|
|
55
|
+
low: StreamResolutionLevel;
|
|
56
|
+
high?: undefined;
|
|
57
|
+
};
|
|
58
|
+
type: TemplateType;
|
|
59
|
+
quality: VideoQuality;
|
|
60
|
+
})[];
|
|
61
|
+
'4-1': ({
|
|
62
|
+
position: number[];
|
|
63
|
+
resolution: {
|
|
64
|
+
normal: StreamResolutionLevel;
|
|
65
|
+
low: StreamResolutionLevel;
|
|
66
|
+
high: StreamResolutionLevel;
|
|
67
|
+
};
|
|
68
|
+
type: TemplateType;
|
|
69
|
+
quality: VideoQuality;
|
|
70
|
+
} | {
|
|
71
|
+
position: number[];
|
|
72
|
+
resolution: {
|
|
73
|
+
normal: StreamResolutionLevel;
|
|
74
|
+
low: StreamResolutionLevel;
|
|
75
|
+
high?: undefined;
|
|
76
|
+
};
|
|
77
|
+
type: TemplateType;
|
|
78
|
+
quality?: undefined;
|
|
79
|
+
} | {
|
|
80
|
+
position: number[];
|
|
81
|
+
resolution: {
|
|
82
|
+
normal: StreamResolutionLevel;
|
|
83
|
+
low: StreamResolutionLevel;
|
|
84
|
+
high?: undefined;
|
|
85
|
+
};
|
|
86
|
+
type: TemplateType;
|
|
87
|
+
quality: VideoQuality;
|
|
88
|
+
})[];
|
|
89
|
+
'5-1': ({
|
|
90
|
+
position: number[];
|
|
91
|
+
resolution: {
|
|
92
|
+
normal: StreamResolutionLevel;
|
|
93
|
+
low: StreamResolutionLevel;
|
|
94
|
+
high: StreamResolutionLevel;
|
|
95
|
+
};
|
|
96
|
+
type: TemplateType;
|
|
97
|
+
quality: VideoQuality;
|
|
98
|
+
} | {
|
|
99
|
+
position: number[];
|
|
100
|
+
resolution: {
|
|
101
|
+
normal: StreamResolutionLevel;
|
|
102
|
+
low: StreamResolutionLevel;
|
|
103
|
+
high?: undefined;
|
|
104
|
+
};
|
|
105
|
+
type: TemplateType;
|
|
106
|
+
quality?: undefined;
|
|
107
|
+
} | {
|
|
108
|
+
position: number[];
|
|
109
|
+
resolution: {
|
|
110
|
+
normal: StreamResolutionLevel;
|
|
111
|
+
low: StreamResolutionLevel;
|
|
112
|
+
high?: undefined;
|
|
113
|
+
};
|
|
114
|
+
type: TemplateType;
|
|
115
|
+
quality: VideoQuality;
|
|
116
|
+
})[];
|
|
117
|
+
'6-1': ({
|
|
118
|
+
position: number[];
|
|
119
|
+
resolution: {
|
|
120
|
+
normal: StreamResolutionLevel;
|
|
121
|
+
low: StreamResolutionLevel;
|
|
122
|
+
high: StreamResolutionLevel;
|
|
123
|
+
};
|
|
124
|
+
type: TemplateType;
|
|
125
|
+
quality: VideoQuality;
|
|
126
|
+
} | {
|
|
127
|
+
position: number[];
|
|
128
|
+
resolution: {
|
|
129
|
+
normal: StreamResolutionLevel;
|
|
130
|
+
low: StreamResolutionLevel;
|
|
131
|
+
high?: undefined;
|
|
132
|
+
};
|
|
133
|
+
type: TemplateType;
|
|
134
|
+
quality?: undefined;
|
|
135
|
+
} | {
|
|
136
|
+
position: number[];
|
|
137
|
+
resolution: {
|
|
138
|
+
normal: StreamResolutionLevel;
|
|
139
|
+
low: StreamResolutionLevel;
|
|
140
|
+
high?: undefined;
|
|
141
|
+
};
|
|
142
|
+
type: TemplateType;
|
|
143
|
+
quality: VideoQuality;
|
|
144
|
+
})[];
|
|
145
|
+
'7-1': ({
|
|
146
|
+
position: number[];
|
|
147
|
+
resolution: {
|
|
148
|
+
normal: StreamResolutionLevel;
|
|
149
|
+
low: StreamResolutionLevel;
|
|
150
|
+
high: StreamResolutionLevel;
|
|
151
|
+
};
|
|
152
|
+
type: TemplateType;
|
|
153
|
+
quality: VideoQuality;
|
|
154
|
+
} | {
|
|
155
|
+
position: number[];
|
|
156
|
+
resolution: {
|
|
157
|
+
normal: StreamResolutionLevel;
|
|
158
|
+
low: StreamResolutionLevel;
|
|
159
|
+
high?: undefined;
|
|
160
|
+
};
|
|
161
|
+
type: TemplateType;
|
|
162
|
+
quality?: undefined;
|
|
163
|
+
} | {
|
|
164
|
+
position: number[];
|
|
165
|
+
resolution: {
|
|
166
|
+
normal: StreamResolutionLevel;
|
|
167
|
+
low: StreamResolutionLevel;
|
|
168
|
+
high?: undefined;
|
|
169
|
+
};
|
|
170
|
+
type: TemplateType;
|
|
171
|
+
quality: VideoQuality;
|
|
172
|
+
})[];
|
|
173
|
+
'8-1': ({
|
|
174
|
+
position: number[];
|
|
175
|
+
resolution: {
|
|
176
|
+
normal: StreamResolutionLevel;
|
|
177
|
+
low: StreamResolutionLevel;
|
|
178
|
+
high: StreamResolutionLevel;
|
|
179
|
+
};
|
|
180
|
+
type: TemplateType;
|
|
181
|
+
quality: VideoQuality;
|
|
182
|
+
} | {
|
|
183
|
+
position: number[];
|
|
184
|
+
resolution: {
|
|
185
|
+
normal: StreamResolutionLevel;
|
|
186
|
+
low: StreamResolutionLevel;
|
|
187
|
+
high?: undefined;
|
|
188
|
+
};
|
|
189
|
+
type: TemplateType;
|
|
190
|
+
quality?: undefined;
|
|
191
|
+
} | {
|
|
192
|
+
position: number[];
|
|
193
|
+
resolution: {
|
|
194
|
+
normal: StreamResolutionLevel;
|
|
195
|
+
low: StreamResolutionLevel;
|
|
196
|
+
high?: undefined;
|
|
197
|
+
};
|
|
198
|
+
type: TemplateType;
|
|
199
|
+
quality: VideoQuality;
|
|
200
|
+
})[];
|
|
201
|
+
};
|
|
202
|
+
export declare const GALLERY_TEMPLATE: {
|
|
203
|
+
'1-1': {
|
|
204
|
+
position: number[];
|
|
205
|
+
resolution: {
|
|
206
|
+
normal: StreamResolutionLevel;
|
|
207
|
+
low: StreamResolutionLevel;
|
|
208
|
+
high: StreamResolutionLevel;
|
|
209
|
+
};
|
|
210
|
+
type: TemplateType;
|
|
211
|
+
}[];
|
|
212
|
+
'2-1': ({
|
|
213
|
+
position: number[];
|
|
214
|
+
resolution: {
|
|
215
|
+
normal: StreamResolutionLevel;
|
|
216
|
+
low: StreamResolutionLevel;
|
|
217
|
+
high: StreamResolutionLevel;
|
|
218
|
+
};
|
|
219
|
+
type: TemplateType;
|
|
220
|
+
quality: VideoQuality;
|
|
221
|
+
} | {
|
|
222
|
+
position: number[];
|
|
223
|
+
resolution: {
|
|
224
|
+
normal: StreamResolutionLevel;
|
|
225
|
+
low: StreamResolutionLevel;
|
|
226
|
+
high: StreamResolutionLevel;
|
|
227
|
+
};
|
|
228
|
+
type: TemplateType;
|
|
229
|
+
quality?: undefined;
|
|
230
|
+
})[];
|
|
231
|
+
'3-1': ({
|
|
232
|
+
position: number[];
|
|
233
|
+
resolution: {
|
|
234
|
+
normal: number;
|
|
235
|
+
low: StreamResolutionLevel;
|
|
236
|
+
};
|
|
237
|
+
type: TemplateType;
|
|
238
|
+
quality: VideoQuality;
|
|
239
|
+
} | {
|
|
240
|
+
position: number[];
|
|
241
|
+
resolution: {
|
|
242
|
+
normal: number;
|
|
243
|
+
low: StreamResolutionLevel;
|
|
244
|
+
};
|
|
245
|
+
type: TemplateType;
|
|
246
|
+
quality?: undefined;
|
|
247
|
+
})[];
|
|
248
|
+
'4-1': ({
|
|
249
|
+
position: number[];
|
|
250
|
+
resolution: {
|
|
251
|
+
normal: number;
|
|
252
|
+
low: StreamResolutionLevel;
|
|
253
|
+
};
|
|
254
|
+
type: TemplateType;
|
|
255
|
+
quality: VideoQuality;
|
|
256
|
+
} | {
|
|
257
|
+
position: number[];
|
|
258
|
+
resolution: {
|
|
259
|
+
normal: number;
|
|
260
|
+
low: StreamResolutionLevel;
|
|
261
|
+
};
|
|
262
|
+
type: TemplateType;
|
|
263
|
+
quality?: undefined;
|
|
264
|
+
})[];
|
|
265
|
+
'5-1': ({
|
|
266
|
+
position: number[];
|
|
267
|
+
resolution: {
|
|
268
|
+
normal: StreamResolutionLevel;
|
|
269
|
+
low: StreamResolutionLevel;
|
|
270
|
+
};
|
|
271
|
+
type: TemplateType;
|
|
272
|
+
quality: VideoQuality;
|
|
273
|
+
} | {
|
|
274
|
+
position: number[];
|
|
275
|
+
resolution: {
|
|
276
|
+
normal: StreamResolutionLevel;
|
|
277
|
+
low: StreamResolutionLevel;
|
|
278
|
+
};
|
|
279
|
+
type: TemplateType;
|
|
280
|
+
quality?: undefined;
|
|
281
|
+
})[];
|
|
282
|
+
'6-1': {
|
|
283
|
+
position: number[];
|
|
284
|
+
resolution: {
|
|
285
|
+
normal: StreamResolutionLevel;
|
|
286
|
+
low: StreamResolutionLevel;
|
|
287
|
+
};
|
|
288
|
+
type: TemplateType;
|
|
289
|
+
quality: VideoQuality;
|
|
290
|
+
}[];
|
|
291
|
+
'7-1': {
|
|
292
|
+
position: number[];
|
|
293
|
+
resolution: {
|
|
294
|
+
normal: StreamResolutionLevel;
|
|
295
|
+
low: StreamResolutionLevel;
|
|
296
|
+
};
|
|
297
|
+
type: TemplateType;
|
|
298
|
+
quality: VideoQuality;
|
|
299
|
+
}[];
|
|
300
|
+
'8-1': {
|
|
301
|
+
position: number[];
|
|
302
|
+
resolution: {
|
|
303
|
+
normal: StreamResolutionLevel;
|
|
304
|
+
low: StreamResolutionLevel;
|
|
305
|
+
};
|
|
306
|
+
type: TemplateType;
|
|
307
|
+
quality: VideoQuality;
|
|
308
|
+
}[];
|
|
309
|
+
'9-1': {
|
|
310
|
+
position: number[];
|
|
311
|
+
resolution: {
|
|
312
|
+
normal: StreamResolutionLevel;
|
|
313
|
+
low: StreamResolutionLevel;
|
|
314
|
+
};
|
|
315
|
+
type: TemplateType;
|
|
316
|
+
quality: VideoQuality;
|
|
317
|
+
}[];
|
|
318
|
+
};
|
|
319
|
+
export declare const COMMON_TEMPLATE: ITemplate;
|
|
320
|
+
export declare const CONTENT_TEMPLATE: ITemplate;
|
|
321
|
+
/**
|
|
322
|
+
* 全屏布局
|
|
323
|
+
*/
|
|
324
|
+
export declare const FULL_TEMPLATE: TemplateInfos;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Meeting layout init template data
|
|
3
|
+
*
|
|
4
|
+
* @authors Luo-jinghui (luojinghui424@gmail.com)
|
|
5
|
+
* @date 2019-10-24 20:41:38
|
|
6
|
+
*/
|
|
7
|
+
import { ITemplate } from '../../type';
|
|
8
|
+
export declare const COMMON_MOBILE_VERTICAL_TEMPLATE: ITemplate;
|
|
9
|
+
export declare const COMMON_MOBILE_HORIZONTAL_TEMPLATE: ITemplate;
|
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
|
+
}
|