@xylink/xy-rtc-sdk 3.8.1 → 3.9.1-beta.6
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 +29 -5
- package/lib/enum/client.d.ts +15 -0
- package/lib/enum/contraints.d.ts +30 -102
- package/lib/enum/device.d.ts +1 -0
- package/lib/enum/errorCode.d.ts +58 -1
- package/lib/enum/index.d.ts +53 -16
- package/lib/index.d.ts +11 -8
- package/lib/main/client.d.ts +157 -79
- package/lib/main/deviceManager.d.ts +23 -4
- package/lib/main/helper.d.ts +2 -2
- package/lib/main/iauth.d.ts +67 -5
- package/lib/main/layoutManager.d.ts +29 -11
- package/lib/main/meeting.d.ts +73 -35
- package/lib/main/peer.d.ts +70 -121
- package/lib/main/qualityManager.d.ts +38 -9
- package/lib/main/stream.d.ts +237 -104
- package/lib/main/videoManager.d.ts +1 -9
- package/lib/tools/config.d.ts +5 -1
- package/lib/tools/dbManager.d.ts +106 -0
- package/lib/tools/detect.d.ts +2 -2
- package/lib/tools/enum.d.ts +1 -1
- package/lib/tools/httpClient.d.ts +15 -23
- package/lib/tools/i18n.d.ts +1 -1
- package/lib/tools/logger.d.ts +75 -74
- package/lib/tools/logger.worker.d.ts +13 -0
- package/lib/tools/quality.d.ts +113 -0
- package/lib/tools/quality.worker.d.ts +13 -0
- package/lib/tools/queue.d.ts +38 -3
- package/lib/tools/template.d.ts +3 -3
- package/lib/tools/utils.d.ts +8 -0
- package/lib/type/action.d.ts +4 -0
- package/lib/type/base.d.ts +2 -2
- package/lib/type/client.d.ts +280 -186
- package/lib/type/device.d.ts +21 -15
- package/lib/type/iauth.d.ts +112 -0
- package/lib/type/index.d.ts +4 -0
- package/lib/type/layout.d.ts +18 -1
- package/lib/type/logger.d.ts +112 -0
- package/lib/type/meeting.d.ts +11 -2
- package/lib/type/peer.d.ts +20 -0
- package/lib/type/quality.d.ts +101 -0
- package/lib/type/stream.d.ts +332 -134
- package/lib/xyrtc.cjs.js +1 -1
- package/lib/xyrtc.umd.js +1 -1
- package/package.json +5 -4
- package/lib/tools/db.d.ts +0 -85
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xylink/xy-rtc-sdk",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.9.1-beta.6",
|
|
4
4
|
"description": "XYLink RTC SDK(小鱼易连WebRTC SDK)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"XYLink RTC SDK",
|
|
@@ -49,8 +49,8 @@
|
|
|
49
49
|
"core-js": "^3.24.1",
|
|
50
50
|
"cross-env": "^7.0.3",
|
|
51
51
|
"css-loader": "^6.7.1",
|
|
52
|
-
"dexie": "^2.
|
|
53
|
-
"dexie-export-import": "^
|
|
52
|
+
"dexie": "^3.2.3",
|
|
53
|
+
"dexie-export-import": "^4.0.7",
|
|
54
54
|
"downloadjs": "^1.4.7",
|
|
55
55
|
"eslint": "^6.7.1",
|
|
56
56
|
"eslint-config-alloy": "^3.4.0",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"lint-staged": "^10.5.4",
|
|
64
64
|
"mini-css-extract-plugin": "^2.6.1",
|
|
65
65
|
"postcss-loader": "^7.0.1",
|
|
66
|
-
"prettier": "^
|
|
66
|
+
"prettier": "^2.8.8",
|
|
67
67
|
"react": "^16.10.2",
|
|
68
68
|
"react-dom": "^16.10.2",
|
|
69
69
|
"sass": "^1.54.3",
|
|
@@ -81,6 +81,7 @@
|
|
|
81
81
|
"xytools": "^1.5.7"
|
|
82
82
|
},
|
|
83
83
|
"dependencies": {
|
|
84
|
+
"@xylink/xy_api_gateway": "^0.4.2",
|
|
84
85
|
"crypto-browserify": "^3.12.0",
|
|
85
86
|
"crypto-js": "^4.1.1",
|
|
86
87
|
"encryptlong": "^3.1.4",
|
package/lib/tools/db.d.ts
DELETED
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* webrtc log db 数据库
|
|
3
|
-
*
|
|
4
|
-
* @authors Luo-jinghui (luojinghui424@gmail.com)
|
|
5
|
-
* @date 2020-02-27 18:17:49
|
|
6
|
-
*/
|
|
7
|
-
declare class DB {
|
|
8
|
-
db: any;
|
|
9
|
-
num: number;
|
|
10
|
-
dbName: string;
|
|
11
|
-
tableCount: number;
|
|
12
|
-
tableName: string;
|
|
13
|
-
maxTableCount: number;
|
|
14
|
-
constructor(tableCount?: number, tableName?: string, dbName?: string);
|
|
15
|
-
/**
|
|
16
|
-
* 表 添加数据
|
|
17
|
-
*
|
|
18
|
-
* @param data
|
|
19
|
-
*/
|
|
20
|
-
add(data: any): Promise<void>;
|
|
21
|
-
deleteDB(): Promise<void>;
|
|
22
|
-
close(): void;
|
|
23
|
-
stop(): void;
|
|
24
|
-
isOpen(): any;
|
|
25
|
-
/**
|
|
26
|
-
* 本地下载日志
|
|
27
|
-
*
|
|
28
|
-
* @returns { boolean } 日志下载是否成功
|
|
29
|
-
*/
|
|
30
|
-
export(): Promise<boolean>;
|
|
31
|
-
/**
|
|
32
|
-
* 日志上传
|
|
33
|
-
*
|
|
34
|
-
* @param { string } displayName 上传文件名
|
|
35
|
-
* @returns
|
|
36
|
-
*/
|
|
37
|
-
upload(displayName: string): Promise<Blob | null>;
|
|
38
|
-
progressCallback({ totalRows, completedRows }: any): boolean;
|
|
39
|
-
open(): void;
|
|
40
|
-
/**
|
|
41
|
-
* 初始化db
|
|
42
|
-
*/
|
|
43
|
-
init(): Promise<void>;
|
|
44
|
-
/**
|
|
45
|
-
* 获取需要在某个版本中添加的表。
|
|
46
|
-
*
|
|
47
|
-
* @param {string} field 表 字段
|
|
48
|
-
* @returns 表对象 每个键代表一个表名,每个值代表主键,后跟索引属性列表
|
|
49
|
-
*/
|
|
50
|
-
getStores(field: string): {
|
|
51
|
-
[key: string]: string;
|
|
52
|
-
};
|
|
53
|
-
/**
|
|
54
|
-
* 创建表
|
|
55
|
-
*
|
|
56
|
-
* @param log
|
|
57
|
-
*/
|
|
58
|
-
initStores(): void;
|
|
59
|
-
/**
|
|
60
|
-
* 存储日志版本
|
|
61
|
-
*
|
|
62
|
-
* @param version
|
|
63
|
-
*/
|
|
64
|
-
setLogVersion(version: number): void;
|
|
65
|
-
/**
|
|
66
|
-
* 升级数据库
|
|
67
|
-
*
|
|
68
|
-
* @param log
|
|
69
|
-
*/
|
|
70
|
-
upgradeStores({ version, tableCount, tableName, field }?: {
|
|
71
|
-
version?: number | undefined;
|
|
72
|
-
tableCount?: number | undefined;
|
|
73
|
-
tableName?: string | undefined;
|
|
74
|
-
field?: string | undefined;
|
|
75
|
-
}): void;
|
|
76
|
-
/**
|
|
77
|
-
* Generate zip blob use json's blob async
|
|
78
|
-
*
|
|
79
|
-
* @param blob origin json blob data
|
|
80
|
-
* @param time current time
|
|
81
|
-
* @param displayName file's name
|
|
82
|
-
*/
|
|
83
|
-
private generateZipBlobAsync;
|
|
84
|
-
}
|
|
85
|
-
export default DB;
|