@xylink/xy-rtc-sdk 2.0.6 → 2.1.2-beta.7
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/index.es.js +3 -1
- package/lib/index.js +3 -1
- package/lib/src/action/index.d.ts +179 -16
- package/lib/src/enum/contraints.d.ts +115 -0
- package/lib/src/enum/errorCode.d.ts +874 -0
- package/lib/src/enum/index.d.ts +90 -185
- package/lib/src/index.d.ts +2 -2
- package/lib/src/main/client.d.ts +199 -80
- package/lib/src/main/deviceManager.d.ts +2 -2
- package/lib/src/main/helper.d.ts +5 -5
- package/lib/src/main/iauth.d.ts +33 -0
- package/lib/src/main/layoutManager.d.ts +45 -18
- package/lib/src/main/peer.d.ts +14 -2
- package/lib/src/main/qualityManager.d.ts +39 -0
- package/lib/src/main/stream.d.ts +18 -4
- package/lib/src/main/videoManager.d.ts +4 -4
- package/lib/src/tools/browser.d.ts +2 -3
- package/lib/src/tools/config.d.ts +1 -1
- package/lib/src/tools/db.d.ts +55 -3
- package/lib/src/tools/httpClient.d.ts +21 -8
- package/lib/src/tools/logger.d.ts +1 -2
- package/lib/src/tools/socket.d.ts +2 -2
- package/lib/src/tools/utils.d.ts +14 -1
- package/lib/src/tools/verify.d.ts +7 -0
- package/lib/src/type/base.d.ts +10 -6
- package/lib/src/type/client.d.ts +231 -58
- package/lib/src/type/device.d.ts +2 -2
- package/lib/src/type/index.d.ts +1 -1
- package/lib/src/type/quality.d.ts +77 -0
- package/lib/src/type/stream.d.ts +77 -5
- package/package.json +5 -3
package/lib/src/enum/index.d.ts
CHANGED
|
@@ -4,225 +4,130 @@
|
|
|
4
4
|
* @authors Luo-jinghui (luojinghui424@gmail.com)
|
|
5
5
|
* @date 2019-10-30 14:12:52
|
|
6
6
|
*/
|
|
7
|
-
import {
|
|
7
|
+
import { IDefault, IMUTE_MAP, ITemplateMode, IContentTemplateMode, IRoster } from '../type';
|
|
8
|
+
export * from './contraints';
|
|
9
|
+
export declare const LOG_CACHE_COUNT = 10;
|
|
10
|
+
export declare const DB_TABLE_COUNT = 10;
|
|
8
11
|
export declare const DETECT_LOCATOR_SERVER_NAME = "WebrtcSigGW";
|
|
12
|
+
export declare const MIME_TYPE = "video/H264";
|
|
9
13
|
export declare const DEVICE_TYPE = 17;
|
|
10
14
|
export declare const SELF_MOCK_PID = 9999999999;
|
|
11
15
|
export declare const STREAM_CHANNEL_COUNT = 11;
|
|
12
16
|
export declare const MAX_PARTICIPANT_COUNT = 112;
|
|
13
17
|
export declare const STREAM_ERROR_CODE_MAP: string[];
|
|
18
|
+
/**
|
|
19
|
+
* 支持呼叫的会议室类型
|
|
20
|
+
*/
|
|
14
21
|
export declare const SUPPORT_DEVICE_TYPE: string[];
|
|
22
|
+
/**
|
|
23
|
+
* media类型
|
|
24
|
+
* 0: people
|
|
25
|
+
* 1: content
|
|
26
|
+
*/
|
|
27
|
+
export declare const MEDIAGROUPID: number[];
|
|
28
|
+
/**
|
|
29
|
+
* 请流质量, 帧率还受带宽、发送端能力综合决定
|
|
30
|
+
* 0: people 720P 15帧、1080P 15帧 / content 720P 5帧、 1080P 15帧
|
|
31
|
+
* 1: people 720P 30帧、1080P 60帧 / content 720P 30帧、 1080P 30帧
|
|
32
|
+
*/
|
|
33
|
+
export declare const QUALITY_TYPE: number[];
|
|
34
|
+
/**
|
|
35
|
+
* 分辨率
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
export declare const RESOLUTION_TYPE: number[];
|
|
39
|
+
/**
|
|
40
|
+
* 每页最大显示终端数
|
|
41
|
+
*/
|
|
15
42
|
export declare const MAX_PAGE_SIZE = 9;
|
|
43
|
+
/**
|
|
44
|
+
* 网络信息
|
|
45
|
+
*/
|
|
16
46
|
export declare const NETWORK_TYPE_MAP: {
|
|
17
47
|
[key: string]: number;
|
|
18
48
|
};
|
|
49
|
+
/**
|
|
50
|
+
* 音视频状态
|
|
51
|
+
*/
|
|
19
52
|
export declare const MUTE_MAP: IMUTE_MAP;
|
|
20
|
-
export declare const CONTRAINTS_MAP: {
|
|
21
|
-
0: number[];
|
|
22
|
-
1: number[];
|
|
23
|
-
2: number[];
|
|
24
|
-
3: number[];
|
|
25
|
-
4: number[];
|
|
26
|
-
5: number[];
|
|
27
|
-
11: number[];
|
|
28
|
-
12: number[];
|
|
29
|
-
};
|
|
30
|
-
export declare const BASE_RESOLUTION_CONTRAINTS: {
|
|
31
|
-
width: {
|
|
32
|
-
min: number;
|
|
33
|
-
ideal: number;
|
|
34
|
-
};
|
|
35
|
-
height: {
|
|
36
|
-
min: number;
|
|
37
|
-
ideal: number;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
export declare const RESOLUTION_360_CONTRAINTS: {
|
|
41
|
-
width: number;
|
|
42
|
-
height: number;
|
|
43
|
-
};
|
|
44
|
-
export declare const BASE_CONTRAINTS: IBASE_CONTRAINTS;
|
|
45
|
-
export declare const CONTENT_BASE_CONTRAINTS: ICONTENT_CONTRAINTS;
|
|
46
|
-
export declare const FIREFOX_CONTENT_CONTRAINTS: {
|
|
47
|
-
'720': {
|
|
48
|
-
min: {
|
|
49
|
-
frameRate: number;
|
|
50
|
-
width: number;
|
|
51
|
-
height: number;
|
|
52
|
-
cursor: string;
|
|
53
|
-
aspectRatio: number;
|
|
54
|
-
resizeMode: "crop-and-scale";
|
|
55
|
-
logicalSurface: true;
|
|
56
|
-
};
|
|
57
|
-
max: {
|
|
58
|
-
width: number;
|
|
59
|
-
height: number;
|
|
60
|
-
cursor: string;
|
|
61
|
-
aspectRatio: number;
|
|
62
|
-
resizeMode: "crop-and-scale";
|
|
63
|
-
frameRate: ConstrainDouble;
|
|
64
|
-
logicalSurface: true;
|
|
65
|
-
};
|
|
66
|
-
};
|
|
67
|
-
'1080': {
|
|
68
|
-
min: {
|
|
69
|
-
frameRate: number;
|
|
70
|
-
width: number;
|
|
71
|
-
height: number;
|
|
72
|
-
cursor: string;
|
|
73
|
-
aspectRatio: number;
|
|
74
|
-
resizeMode: "crop-and-scale";
|
|
75
|
-
logicalSurface: true;
|
|
76
|
-
};
|
|
77
|
-
max: {
|
|
78
|
-
width: number;
|
|
79
|
-
height: number;
|
|
80
|
-
cursor: string;
|
|
81
|
-
aspectRatio: number;
|
|
82
|
-
resizeMode: "crop-and-scale";
|
|
83
|
-
frameRate: ConstrainDouble;
|
|
84
|
-
logicalSurface: true;
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
};
|
|
88
|
-
export declare const CONTENT_CONTRAINTS: {
|
|
89
|
-
'720': {
|
|
90
|
-
min: {
|
|
91
|
-
frameRate: number;
|
|
92
|
-
width: number;
|
|
93
|
-
height: number;
|
|
94
|
-
cursor: string;
|
|
95
|
-
aspectRatio: number;
|
|
96
|
-
resizeMode: "crop-and-scale";
|
|
97
|
-
logicalSurface: true;
|
|
98
|
-
};
|
|
99
|
-
max: {
|
|
100
|
-
width: number;
|
|
101
|
-
height: number;
|
|
102
|
-
cursor: string;
|
|
103
|
-
aspectRatio: number;
|
|
104
|
-
resizeMode: "crop-and-scale";
|
|
105
|
-
frameRate: ConstrainDouble;
|
|
106
|
-
logicalSurface: true;
|
|
107
|
-
};
|
|
108
|
-
};
|
|
109
|
-
'1080': {
|
|
110
|
-
min: {
|
|
111
|
-
frameRate: number;
|
|
112
|
-
width: number;
|
|
113
|
-
height: number;
|
|
114
|
-
cursor: string;
|
|
115
|
-
aspectRatio: number;
|
|
116
|
-
resizeMode: "crop-and-scale";
|
|
117
|
-
logicalSurface: true;
|
|
118
|
-
};
|
|
119
|
-
max: {
|
|
120
|
-
width: number;
|
|
121
|
-
height: number;
|
|
122
|
-
cursor: string;
|
|
123
|
-
aspectRatio: number;
|
|
124
|
-
resizeMode: "crop-and-scale";
|
|
125
|
-
frameRate: ConstrainDouble;
|
|
126
|
-
logicalSurface: true;
|
|
127
|
-
};
|
|
128
|
-
};
|
|
129
|
-
} | {
|
|
130
|
-
'720': {
|
|
131
|
-
min: {
|
|
132
|
-
frameRate: number;
|
|
133
|
-
width: {
|
|
134
|
-
ideal: number;
|
|
135
|
-
max: number;
|
|
136
|
-
};
|
|
137
|
-
height: {
|
|
138
|
-
ideal: number;
|
|
139
|
-
max: number;
|
|
140
|
-
};
|
|
141
|
-
cursor: string;
|
|
142
|
-
aspectRatio: number;
|
|
143
|
-
resizeMode: "crop-and-scale";
|
|
144
|
-
logicalSurface: true;
|
|
145
|
-
};
|
|
146
|
-
max: {
|
|
147
|
-
frameRate: {
|
|
148
|
-
ideal: number;
|
|
149
|
-
max: number;
|
|
150
|
-
};
|
|
151
|
-
width: {
|
|
152
|
-
ideal: number;
|
|
153
|
-
max: number;
|
|
154
|
-
};
|
|
155
|
-
height: {
|
|
156
|
-
ideal: number;
|
|
157
|
-
max: number;
|
|
158
|
-
};
|
|
159
|
-
cursor: string;
|
|
160
|
-
aspectRatio: number;
|
|
161
|
-
resizeMode: "crop-and-scale";
|
|
162
|
-
logicalSurface: true;
|
|
163
|
-
};
|
|
164
|
-
};
|
|
165
|
-
'1080': {
|
|
166
|
-
min: {
|
|
167
|
-
frameRate: number;
|
|
168
|
-
width: {
|
|
169
|
-
ideal: number;
|
|
170
|
-
max: number;
|
|
171
|
-
};
|
|
172
|
-
height: {
|
|
173
|
-
ideal: number;
|
|
174
|
-
max: number;
|
|
175
|
-
};
|
|
176
|
-
cursor: string;
|
|
177
|
-
aspectRatio: number;
|
|
178
|
-
resizeMode: "crop-and-scale";
|
|
179
|
-
logicalSurface: true;
|
|
180
|
-
};
|
|
181
|
-
max: {
|
|
182
|
-
frameRate: {
|
|
183
|
-
ideal: number;
|
|
184
|
-
max: number;
|
|
185
|
-
};
|
|
186
|
-
width: {
|
|
187
|
-
ideal: number;
|
|
188
|
-
max: number;
|
|
189
|
-
};
|
|
190
|
-
height: {
|
|
191
|
-
ideal: number;
|
|
192
|
-
max: number;
|
|
193
|
-
};
|
|
194
|
-
cursor: string;
|
|
195
|
-
aspectRatio: number;
|
|
196
|
-
resizeMode: "crop-and-scale";
|
|
197
|
-
logicalSurface: true;
|
|
198
|
-
};
|
|
199
|
-
};
|
|
200
|
-
};
|
|
201
|
-
export declare const PEOPLE_CONTRAINTS: {
|
|
202
|
-
[key: string]: any;
|
|
203
|
-
};
|
|
204
53
|
export declare const CONFIGURATION: RTCConfiguration;
|
|
54
|
+
/**
|
|
55
|
+
* stop call 对应错误码
|
|
56
|
+
*/
|
|
205
57
|
export declare const NEW_CODE_MAP: {
|
|
206
58
|
[key: string]: string;
|
|
207
59
|
};
|
|
60
|
+
/**
|
|
61
|
+
* roster数据
|
|
62
|
+
*/
|
|
208
63
|
export declare const DEFAULT_ROSTER: IRoster;
|
|
64
|
+
/**
|
|
65
|
+
* 初始化数据
|
|
66
|
+
*/
|
|
209
67
|
export declare const DEFAULT: IDefault;
|
|
68
|
+
/**
|
|
69
|
+
* 模板类型
|
|
70
|
+
*/
|
|
210
71
|
export declare const TEMPLATE_MODE: ITemplateMode[];
|
|
72
|
+
/**
|
|
73
|
+
* content 模板类型
|
|
74
|
+
*/
|
|
211
75
|
export declare const CONTENT_TEMPLATE_MODE: IContentTemplateMode[];
|
|
76
|
+
/**
|
|
77
|
+
* 非content 默认模板类型
|
|
78
|
+
*/
|
|
212
79
|
export declare const TEMPLATE_DEFAULT_MODE = "SPEAKER";
|
|
80
|
+
/**
|
|
81
|
+
* content 模板类型
|
|
82
|
+
*/
|
|
213
83
|
export declare const CONTENT_DEFAULT_TEMPLATE_MODE = "MULTI_PIC_CONTENT_HIGH_PRIORITY";
|
|
84
|
+
/**
|
|
85
|
+
* 用户类型
|
|
86
|
+
*/
|
|
214
87
|
export declare const APP_NAME: {
|
|
215
88
|
STANDARD_WEBRTC: string;
|
|
216
89
|
THIRD_WEBRTC: string;
|
|
217
90
|
};
|
|
91
|
+
/**
|
|
92
|
+
* 音视频事件类型
|
|
93
|
+
*/
|
|
218
94
|
export declare const EVENT_TYPE_MAP: {
|
|
219
95
|
[key: string]: string;
|
|
220
96
|
};
|
|
97
|
+
/**
|
|
98
|
+
* content audio offer 状态
|
|
99
|
+
*/
|
|
221
100
|
export declare const CONTENT_AUDIO_OFFER_STATE: {
|
|
222
101
|
NOT_SEND: number;
|
|
223
102
|
SEND: number;
|
|
224
103
|
SENDED: number;
|
|
225
104
|
};
|
|
105
|
+
/**
|
|
106
|
+
* 支持的分辨率
|
|
107
|
+
*/
|
|
226
108
|
export declare const SCALE_RESOLUTION_MAP: {
|
|
227
109
|
[key: string]: number;
|
|
228
110
|
};
|
|
111
|
+
/**
|
|
112
|
+
* 隐身入会
|
|
113
|
+
*
|
|
114
|
+
* @enum
|
|
115
|
+
*
|
|
116
|
+
* @property { number } HIDE 隐身入会
|
|
117
|
+
* @property { number } SDKMonitor+hide sdk监会
|
|
118
|
+
*/
|
|
119
|
+
export declare const SDKMonitor: {
|
|
120
|
+
[key: string]: string;
|
|
121
|
+
};
|
|
122
|
+
/**
|
|
123
|
+
* 可支持的监会方式
|
|
124
|
+
*/
|
|
125
|
+
export declare const SDKMonitorList: string[];
|
|
126
|
+
/**
|
|
127
|
+
* 同传字幕: 本地支持的语言
|
|
128
|
+
*/
|
|
129
|
+
export declare const SupportLocalLanguages: readonly ["Chinese", "English"];
|
|
130
|
+
/**
|
|
131
|
+
* 日志中需要隐藏的关键词
|
|
132
|
+
*/
|
|
133
|
+
export declare const HIDE_KEY_INFOS: string[];
|
package/lib/src/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import Client from './main/client';
|
|
|
11
11
|
import Stream from './main/stream';
|
|
12
12
|
import { IClientConfig, IConfig, TLocale, ICheckSystemRequirements } from './type';
|
|
13
13
|
import DeviceManager from './main/deviceManager';
|
|
14
|
-
import { getLayoutItemState,
|
|
14
|
+
import { getLayoutItemState, getVideoInfoByRotation, getLayoutRotateInfo, getSendSupportedCodec, detectLocator } from './main/helper';
|
|
15
15
|
interface IXyRTC {
|
|
16
16
|
version: string;
|
|
17
17
|
client: Client | null;
|
|
@@ -29,6 +29,6 @@ interface IXyRTC {
|
|
|
29
29
|
}
|
|
30
30
|
declare const xyRTC: IXyRTC;
|
|
31
31
|
export default xyRTC;
|
|
32
|
-
export { Client, Stream, DeviceManager, getLayoutItemState, getVideoInfoByRotaion, getLayoutRotateInfo, getSendSupportedCodec, detectLocator };
|
|
32
|
+
export { Client, Stream, DeviceManager, getLayoutItemState, getVideoInfoByRotation as getVideoInfoByRotaion, getLayoutRotateInfo, getSendSupportedCodec, detectLocator };
|
|
33
33
|
export * from './type';
|
|
34
34
|
export { ERROR_CODE } from './enum/errorCode';
|