@xylink/xy-rtc-sdk 3.9.0 → 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.
- package/lib/action/index.d.ts +12 -2
- package/lib/enum/contraints.d.ts +0 -9
- package/lib/enum/index.d.ts +20 -7
- package/lib/index.d.ts +2 -0
- package/lib/main/client.d.ts +89 -27
- package/lib/main/iauth.d.ts +62 -13
- package/lib/main/{layoutManager.d.ts → layout/index.d.ts} +184 -87
- package/lib/main/layout/template.d.ts +64 -0
- package/lib/main/meeting.d.ts +4 -3
- package/lib/tools/browser.d.ts +58 -49
- package/lib/tools/config.d.ts +5 -1
- package/lib/tools/httpClient.d.ts +13 -21
- package/lib/tools/template/index.d.ts +324 -0
- package/lib/tools/template/mobile.d.ts +9 -0
- package/lib/type/action.d.ts +4 -0
- package/lib/type/client.d.ts +65 -142
- package/lib/type/iauth.d.ts +112 -0
- package/lib/type/index.d.ts +1 -0
- package/lib/type/layout.d.ts +164 -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/tools/template.d.ts +0 -21
|
@@ -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/action.d.ts
CHANGED
package/lib/type/client.d.ts
CHANGED
|
@@ -3,6 +3,7 @@ import VideoManager from '../main/videoManager';
|
|
|
3
3
|
import { IInternals, StreamResolution, StreamResolutionLevel, VideoQuality } from './stream';
|
|
4
4
|
import { SupportLocalLanguages } from '../enum';
|
|
5
5
|
import { ICloudRoomConfig } from './meeting';
|
|
6
|
+
import { ContentTemplateMode, ExternalTemplateConfig, TemplateMode } from './layout';
|
|
6
7
|
/**
|
|
7
8
|
* 向Client推送流类型
|
|
8
9
|
*
|
|
@@ -63,27 +64,6 @@ export type IVideoLoadStatus = 'LOAD_START' | 'CANPLAY' | 'ERROR';
|
|
|
63
64
|
* @param REQUEST 视频请求中
|
|
64
65
|
*/
|
|
65
66
|
export type IVideoManagerState = '' | 'CANPLAY' | 'ENDED' | 'REQUEST';
|
|
66
|
-
/**
|
|
67
|
-
* Layout布局方式
|
|
68
|
-
*
|
|
69
|
-
* @param SPEAKER 默认值,演讲者模式,即 1大N小 画面模式
|
|
70
|
-
* @param GALLERY 另一种是画廊模式,即 宫格布局
|
|
71
|
-
*/
|
|
72
|
-
export type ITemplateMode = 'SPEAKER' | 'GALLERY';
|
|
73
|
-
/**
|
|
74
|
-
* 主画面/Content布局模式
|
|
75
|
-
*
|
|
76
|
-
* @param MULTI_PIC_CONTENT_HIGH_PRIORITY Content是大窗口
|
|
77
|
-
* @param MULTI_PIC_ACTIVE_HIGH_PRIORITY ActiveSpeaker是大窗口
|
|
78
|
-
* @param TWO_PIC_PIP 画中画模式(picture in picture)
|
|
79
|
-
* @param CONTENT_ONLY 只显示Content
|
|
80
|
-
* @param TWO_PIC_SYMMETRIC 对称显示content和speaker(side by side)
|
|
81
|
-
*/
|
|
82
|
-
export type IContentTemplateMode = 'MULTI_PIC_CONTENT_HIGH_PRIORITY' | 'MULTI_PIC_ACTIVE_HIGH_PRIORITY' | 'TWO_PIC_PIP' | 'CONTENT_ONLY' | 'TWO_PIC_SYMMETRIC';
|
|
83
|
-
/**
|
|
84
|
-
* 布局模式
|
|
85
|
-
*/
|
|
86
|
-
export type IMode = ITemplateMode | IContentTemplateMode;
|
|
87
67
|
/**
|
|
88
68
|
* 客户端状态
|
|
89
69
|
*
|
|
@@ -215,10 +195,10 @@ export declare enum LayoutMode {
|
|
|
215
195
|
/**
|
|
216
196
|
* 录制状态
|
|
217
197
|
*
|
|
218
|
-
* @param RECORD_STATE_IDLE
|
|
219
|
-
* @param RECORD_STATE_STARTING 开启录制
|
|
220
|
-
* @param RECORD_STATE_STARTED
|
|
221
|
-
* @param RECORD_STATE_STOPING 停止录制
|
|
198
|
+
* @param RECORD_STATE_IDLE - 停止录制成功
|
|
199
|
+
* @param RECORD_STATE_STARTING - 开启录制
|
|
200
|
+
* @param RECORD_STATE_STARTED - 开启录制成功
|
|
201
|
+
* @param RECORD_STATE_STOPING - 停止录制
|
|
222
202
|
*/
|
|
223
203
|
export declare enum RecordingState {
|
|
224
204
|
RECORD_STATE_IDLE = "RECORD_STATE_IDLE",
|
|
@@ -261,6 +241,8 @@ export type IFacingMode = keyof typeof FacingMode;
|
|
|
261
241
|
* client配置参数
|
|
262
242
|
*
|
|
263
243
|
* @property { string } clientId 必填 | "" | 网关校验id(clientId),需要从对接人处获取
|
|
244
|
+
* @property { string } clientSecret 必填 | "" | 网关密钥,需要从对接人处获取
|
|
245
|
+
* @property { string } extId 非必填 企业ID
|
|
264
246
|
* @property { string } server 非必填 服务地址, IP/域名 + 端口,如: cloudapi.xylink.com
|
|
265
247
|
* @property { string } wssServer 非必填 websocket服务地址,默认不需要配置, 待废弃
|
|
266
248
|
* @property { string } httpServer 非必填 resetApi服务地址,默认不需要配置, 待废弃
|
|
@@ -274,18 +256,18 @@ export type IFacingMode = keyof typeof FacingMode;
|
|
|
274
256
|
* @property { string } container.elementId 非必填 | "" | 配置Layout需要包裹在elementId元素里面显示,并使用此元素的信息计算 Layout 的 size和 position
|
|
275
257
|
* @property { boolean } localHide 非必填 | false | 是否在页面上隐藏Local画面,默认不隐藏
|
|
276
258
|
* @property { boolean } localMirror 非必填 | true | 是否需要镜像Local画面,默认镜像Local
|
|
277
|
-
* @property {
|
|
259
|
+
* @property { TemplateMode } templateMode 非必填 | 布局模式,默认:SPEAKER,1大N小 画面布局模式,可选:SPEAKER | GALLERY
|
|
278
260
|
* @property { string } __hideId 是否是隐身入会模式,hide代表隐身入会,为空代表正常模式
|
|
279
261
|
* @property { string } __monitorMode 是否是巡课模式,默认是'',MONITOR代表巡课模式
|
|
280
262
|
* @property { boolean } isThird 埋点
|
|
281
263
|
* @property { boolean } isSupportHybridCloud 是否是混合云,默认公有云。 如果有探测到内网地址,则此值为true,将不进行鉴权。
|
|
282
|
-
* @property { boolean } isVerifyMeetingId 是否校验会议号,默认校验
|
|
283
264
|
* @property { boolean? } checkSSL 是否启用必须使用Https协议访问页面,默认启用,设置为true,建议开启,Http页面下无法访问WebRTC API,音视频互通存在问题;
|
|
284
265
|
*
|
|
285
266
|
*/
|
|
286
267
|
export interface IClientConfig {
|
|
287
268
|
clientId: string;
|
|
288
269
|
clientSecret?: string;
|
|
270
|
+
extId?: string;
|
|
289
271
|
server?: string;
|
|
290
272
|
wssServer?: string;
|
|
291
273
|
httpServer?: string;
|
|
@@ -300,69 +282,22 @@ export interface IClientConfig {
|
|
|
300
282
|
};
|
|
301
283
|
localHide?: boolean;
|
|
302
284
|
localMirror?: boolean;
|
|
303
|
-
templateMode?:
|
|
285
|
+
templateMode?: TemplateMode;
|
|
304
286
|
__hideId?: number | string;
|
|
305
287
|
__monitorMode?: string;
|
|
306
288
|
isThird?: boolean;
|
|
307
289
|
isSupportHybridCloud?: boolean;
|
|
308
|
-
isVerifyMeetingId?: boolean;
|
|
309
290
|
checkSSL?: boolean;
|
|
310
291
|
}
|
|
311
292
|
export interface ILayoutParams {
|
|
312
293
|
rosters: IRoster[];
|
|
313
294
|
speakerInfo: ISpeakerInfo;
|
|
314
295
|
layout: ILayout[];
|
|
315
|
-
templateMode:
|
|
296
|
+
templateMode: TemplateMode | ContentTemplateMode;
|
|
316
297
|
invite: IInvite;
|
|
317
298
|
contentSenderPid: number;
|
|
318
299
|
localHide: boolean;
|
|
319
300
|
}
|
|
320
|
-
/**
|
|
321
|
-
* Layout 模版 分辨率
|
|
322
|
-
*
|
|
323
|
-
* @property { StreamResolutionLevel } normal 默认请流分辨率
|
|
324
|
-
* @property { StreamResolutionLevel } low 低性能请流分辨率
|
|
325
|
-
* @property { StreamResolutionLevel } high 高分辨率
|
|
326
|
-
*/
|
|
327
|
-
export interface ITemplateResolution {
|
|
328
|
-
normal: StreamResolutionLevel;
|
|
329
|
-
low: StreamResolutionLevel;
|
|
330
|
-
high?: StreamResolutionLevel;
|
|
331
|
-
}
|
|
332
|
-
/**
|
|
333
|
-
* Layout模版定义
|
|
334
|
-
*
|
|
335
|
-
* @property { number[] } position - 位置/尺寸比例
|
|
336
|
-
* @property { ITemplateResolution } resolution - 分辨率
|
|
337
|
-
* @property { number } resolution.normal - 正常分辨率
|
|
338
|
-
* @property { number } resolution.low - 低性能模式分辨率
|
|
339
|
-
* @property { number ?} resolution.high - 高分辨率
|
|
340
|
-
* @property { VideoQuality } quality - 请流质量
|
|
341
|
-
* @property { number } zIndex - 层级
|
|
342
|
-
* @property { string } type - 类型,LOCAL/CONTENT
|
|
343
|
-
*/
|
|
344
|
-
export type ITemplateObj = {
|
|
345
|
-
position: number[];
|
|
346
|
-
resolution: ITemplateResolution;
|
|
347
|
-
quality?: VideoQuality;
|
|
348
|
-
zIndex?: number;
|
|
349
|
-
type?: string;
|
|
350
|
-
};
|
|
351
|
-
export interface ITypeTemplate {
|
|
352
|
-
[id: string]: ITemplateObj[];
|
|
353
|
-
}
|
|
354
|
-
export interface ITemplateInfo {
|
|
355
|
-
length: number;
|
|
356
|
-
temp: {
|
|
357
|
-
[index: string]: ITemplateObj[];
|
|
358
|
-
};
|
|
359
|
-
rate: {
|
|
360
|
-
[index: number]: number;
|
|
361
|
-
};
|
|
362
|
-
}
|
|
363
|
-
export interface ITemplate {
|
|
364
|
-
[type: string]: ITemplateInfo;
|
|
365
|
-
}
|
|
366
301
|
/**
|
|
367
302
|
* @enum 默认常量列表
|
|
368
303
|
*/
|
|
@@ -537,47 +472,6 @@ export interface IMediaSupportedConstraints {
|
|
|
537
472
|
export interface ICandidate extends RTCIceCandidateInit {
|
|
538
473
|
type?: string;
|
|
539
474
|
}
|
|
540
|
-
/**
|
|
541
|
-
* 第三方登录用户信息
|
|
542
|
-
*
|
|
543
|
-
* @property { string } displayName 用户名称
|
|
544
|
-
* @property { string } extId 企业id
|
|
545
|
-
*/
|
|
546
|
-
export interface ILoginExtAccount {
|
|
547
|
-
displayName: string;
|
|
548
|
-
extId: string;
|
|
549
|
-
extUserId?: string;
|
|
550
|
-
}
|
|
551
|
-
/**
|
|
552
|
-
* 第三方登录sdk用户信息,由sdk server创建
|
|
553
|
-
*
|
|
554
|
-
* @property { string } userName sdk用户名
|
|
555
|
-
* @property { string } password sdk密码
|
|
556
|
-
* @property { string? } extId sdk企业Id
|
|
557
|
-
*/
|
|
558
|
-
export interface ISdkUserInfo {
|
|
559
|
-
userName: string;
|
|
560
|
-
password: string;
|
|
561
|
-
extId?: string;
|
|
562
|
-
}
|
|
563
|
-
/**
|
|
564
|
-
* 授权码登录
|
|
565
|
-
*
|
|
566
|
-
* @property { string } extId 企业id
|
|
567
|
-
* @property { string } extUserId 用户id
|
|
568
|
-
* @property { string } displayName 用户名
|
|
569
|
-
* @property { string } oauthCode 授权码
|
|
570
|
-
* @property { boolean } isTempUser 是否是临时账号
|
|
571
|
-
* @property { string } channelId 渠道id
|
|
572
|
-
*/
|
|
573
|
-
export interface ILoginWidthAuthCode {
|
|
574
|
-
extId: string;
|
|
575
|
-
extUserId: string;
|
|
576
|
-
displayName: string;
|
|
577
|
-
oauthCode: string;
|
|
578
|
-
isTempUser: boolean;
|
|
579
|
-
channelId: string;
|
|
580
|
-
}
|
|
581
475
|
export interface IHttpConfig {
|
|
582
476
|
baseUrl: string;
|
|
583
477
|
}
|
|
@@ -625,6 +519,7 @@ export interface IConferenceInfo {
|
|
|
625
519
|
avatar?: string;
|
|
626
520
|
inviteInfo?: InviteInfo;
|
|
627
521
|
meetingId?: string;
|
|
522
|
+
displayNum?: string;
|
|
628
523
|
}
|
|
629
524
|
/**
|
|
630
525
|
* 会议分享信息
|
|
@@ -896,39 +791,42 @@ export interface ISpeakerInfo {
|
|
|
896
791
|
/**
|
|
897
792
|
* 布局对象
|
|
898
793
|
*
|
|
899
|
-
* @property { number[] } position 模版位置,业务层可以忽略
|
|
900
|
-
* @property { StreamResolutionLevel } resolution 当前布局对象的分辨数据
|
|
901
794
|
* @property { IRoster } roster 参会者基本信息、状态信息,例如:用户名、麦克风/摄像头状态、是否是主会场等信息
|
|
902
|
-
* @property { any } rotate 当前参会者的旋转信息
|
|
903
795
|
* @property { ILayoutState } state 当前参会者的画面状态信息,暂时未使用
|
|
796
|
+
* @property { any } rotate 当前参会者的旋转信息,用于设置video标签样式
|
|
904
797
|
* @property { { left: string; top: string; width: string; height: string } } positionStyle 当前参会者的位置样式
|
|
798
|
+
* @property { string } avatar 人物头像
|
|
799
|
+
* @property { string } textAvatar 名称头像
|
|
800
|
+
* @property { ExternalTemplateConfig } templateConfig 忽略
|
|
905
801
|
* @property { { width: number; height: number } } positionInfo 忽略
|
|
906
|
-
* @property {
|
|
802
|
+
* @property { number[] } position 忽略
|
|
907
803
|
* @property { boolean } deal 忽略
|
|
908
|
-
* @property { number }
|
|
804
|
+
* @property { number } index 忽略
|
|
805
|
+
* @property { number } resolution 忽略, 2.0.2以前的版本 自定义布局roster请流使用
|
|
806
|
+
* @property { number } quality 忽略, 2.0.2以前的版本 自定义布局roster请流使用
|
|
909
807
|
*/
|
|
910
808
|
export interface ILayout {
|
|
911
|
-
position?: number[];
|
|
912
|
-
resolution?: StreamResolutionLevel;
|
|
913
809
|
roster: IRoster;
|
|
914
|
-
rotate?: any;
|
|
915
810
|
state?: ILayoutState;
|
|
811
|
+
rotate?: any;
|
|
916
812
|
positionStyle?: {
|
|
917
813
|
left: string;
|
|
918
814
|
top: string;
|
|
919
815
|
width: string;
|
|
920
816
|
height: string;
|
|
921
817
|
};
|
|
818
|
+
avatar?: string;
|
|
819
|
+
textAvatar?: string;
|
|
820
|
+
templateConfig?: ExternalTemplateConfig;
|
|
821
|
+
position?: number[];
|
|
922
822
|
positionInfo?: {
|
|
923
823
|
width: number;
|
|
924
824
|
height: number;
|
|
925
825
|
};
|
|
926
|
-
quality?: 0 | 100 | 200;
|
|
927
826
|
deal?: boolean;
|
|
928
|
-
zIndex?: number;
|
|
929
|
-
avatar?: string;
|
|
930
|
-
textAvatar?: string;
|
|
931
827
|
index?: number;
|
|
828
|
+
resolution?: number;
|
|
829
|
+
quality?: number;
|
|
932
830
|
}
|
|
933
831
|
/**
|
|
934
832
|
* Local布局对象
|
|
@@ -1183,29 +1081,30 @@ export interface IGetConferenceParams {
|
|
|
1183
1081
|
autoMute: AutoMute;
|
|
1184
1082
|
}
|
|
1185
1083
|
/**
|
|
1186
|
-
*
|
|
1084
|
+
* 本地录制结果上报
|
|
1187
1085
|
*
|
|
1188
|
-
* @property { string } reason
|
|
1189
|
-
* @property {
|
|
1190
|
-
* @property { boolean } isRecorded
|
|
1191
|
-
* @property { string } controlUri
|
|
1086
|
+
* @property { string } reason - 成功STATE:200
|
|
1087
|
+
* @property { RecordingState } state - 录制状态
|
|
1088
|
+
* @property { boolean } isRecorded - ignore
|
|
1089
|
+
* @property { string } controlUri - ignore
|
|
1090
|
+
* @property { string } reasonText - ignore
|
|
1192
1091
|
*/
|
|
1193
1092
|
export interface IRecordingStateChanged {
|
|
1194
1093
|
reason: string;
|
|
1195
|
-
state:
|
|
1094
|
+
state: RecordingState;
|
|
1196
1095
|
isRecorded: boolean;
|
|
1197
1096
|
controlUri: string;
|
|
1198
1097
|
reasonText: string;
|
|
1199
1098
|
}
|
|
1200
1099
|
/**
|
|
1201
|
-
*
|
|
1100
|
+
* 远端录制状态上报
|
|
1202
1101
|
*
|
|
1203
|
-
* @property { boolean } isStart
|
|
1204
|
-
* @property { string } uri
|
|
1205
|
-
* @property { string } callUri
|
|
1206
|
-
* @property { string } callerUri
|
|
1207
|
-
* @property { string } status
|
|
1208
|
-
* @property { boolean } isLocal 是否是local开启的录制
|
|
1102
|
+
* @property { boolean } isStart - 是否已经存在录制 true:存在录制;false:不存在录制
|
|
1103
|
+
* @property { string } uri - 录制的displayName,即callUri的名称,当是" "时,取会议室名称
|
|
1104
|
+
* @property { string } callUri - 录制终端callUri
|
|
1105
|
+
* @property { string } callerUri - ignore
|
|
1106
|
+
* @property { string } status - 录制状态 RECORDING_STATE_PAUSED(录制暂停),RECORDING_STATE_ACTING(录制恢复)
|
|
1107
|
+
* @property { boolean } isLocal - 是否是local开启的录制
|
|
1209
1108
|
*/
|
|
1210
1109
|
export interface IRecordStatusNotification {
|
|
1211
1110
|
isStart: Boolean;
|
|
@@ -1464,4 +1363,28 @@ export interface IStreamCapability {
|
|
|
1464
1363
|
streamId: string;
|
|
1465
1364
|
resolution: StreamResolutionLevel;
|
|
1466
1365
|
}
|
|
1366
|
+
/**
|
|
1367
|
+
* 是否是联席主持人
|
|
1368
|
+
*
|
|
1369
|
+
* @param ON - 是
|
|
1370
|
+
* @param OFF - 否
|
|
1371
|
+
*/
|
|
1372
|
+
export declare enum CoChair {
|
|
1373
|
+
ON = "on",
|
|
1374
|
+
OFF = "off"
|
|
1375
|
+
}
|
|
1376
|
+
/**
|
|
1377
|
+
* 信令上报的消息
|
|
1378
|
+
*
|
|
1379
|
+
* @property { number } subType - 消息类型
|
|
1380
|
+
* @property { number } content - 消息详细内容
|
|
1381
|
+
* @property { CoChair } content.coChair - 是否是联席主持人
|
|
1382
|
+
*/
|
|
1383
|
+
export interface Notification {
|
|
1384
|
+
subType: number;
|
|
1385
|
+
content: {
|
|
1386
|
+
coChair: CoChair;
|
|
1387
|
+
};
|
|
1388
|
+
requestId: string;
|
|
1389
|
+
}
|
|
1467
1390
|
export {};
|