@xylink/xy-rtc-sdk 3.8.0 → 3.9.0
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/README.MD +37 -37
- package/lib/action/index.d.ts +21 -6
- package/lib/enum/client.d.ts +15 -0
- package/lib/enum/contraints.d.ts +33 -96
- package/lib/enum/device.d.ts +1 -0
- package/lib/enum/errorCode.d.ts +58 -1
- package/lib/enum/i18n.d.ts +39 -0
- package/lib/enum/index.d.ts +65 -16
- package/lib/index.d.ts +11 -8
- package/lib/main/client.d.ts +101 -71
- package/lib/main/deviceManager.d.ts +23 -4
- package/lib/main/helper.d.ts +2 -2
- package/lib/main/iauth.d.ts +14 -1
- package/lib/main/layoutManager.d.ts +43 -13
- package/lib/main/meeting.d.ts +75 -21
- 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/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 +4 -4
- 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 +8 -1
- package/lib/tools/utils.d.ts +8 -0
- package/lib/type/base.d.ts +2 -2
- package/lib/type/client.d.ts +286 -183
- package/lib/type/device.d.ts +21 -15
- package/lib/type/index.d.ts +3 -0
- package/lib/type/layout.d.ts +25 -6
- package/lib/type/logger.d.ts +112 -0
- package/lib/type/meeting.d.ts +29 -0
- package/lib/type/peer.d.ts +20 -0
- package/lib/type/quality.d.ts +101 -0
- package/lib/type/stream.d.ts +340 -102
- package/lib/xyrtc.cjs.js +1 -1
- package/lib/xyrtc.umd.js +1 -1
- package/package.json +119 -119
- package/lib/tools/db.d.ts +0 -85
package/package.json
CHANGED
|
@@ -1,119 +1,119 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@xylink/xy-rtc-sdk",
|
|
3
|
-
"version": "3.
|
|
4
|
-
"description": "XYLink RTC SDK(小鱼易连WebRTC SDK)",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"XYLink RTC SDK",
|
|
7
|
-
"XYLink WebRTC SDK",
|
|
8
|
-
"WebRTC SDK",
|
|
9
|
-
"RTC SDK"
|
|
10
|
-
],
|
|
11
|
-
"main": "lib/xyrtc.cjs.js",
|
|
12
|
-
"types": "lib/index.d.ts",
|
|
13
|
-
"scripts": {
|
|
14
|
-
"dev": "npm run start",
|
|
15
|
-
"start": "cross-env NODE_ENV=development webpack serve --config ./scripts/webpack.dev.js",
|
|
16
|
-
"build:demo": "cross-env NODE_ENV=production webpack --config ./scripts/webpack.common.js",
|
|
17
|
-
"build:lib": "cross-env NODE_ENV=production webpack --config ./scripts/webpack.sdk.js",
|
|
18
|
-
"build:nodeLib": "node ./scripts/build_lib.js",
|
|
19
|
-
"test": "jest",
|
|
20
|
-
"xytools": "xytools",
|
|
21
|
-
"version:beta": "npm version prerelease --preid=beta",
|
|
22
|
-
"publish:beta": "npm publish --tag beta --access public"
|
|
23
|
-
},
|
|
24
|
-
"author": "jinghui-Luo",
|
|
25
|
-
"email": "luojinghui424@gmail.com",
|
|
26
|
-
"bugs": {
|
|
27
|
-
"url": "https://github.com/xylink-com/xylink-rtc-demo/issues",
|
|
28
|
-
"email": "luojinghui424@gmail.com"
|
|
29
|
-
},
|
|
30
|
-
"devDependencies": {
|
|
31
|
-
"@babel/core": "^7.18.10",
|
|
32
|
-
"@babel/plugin-transform-runtime": "^7.18.10",
|
|
33
|
-
"@babel/preset-env": "^7.18.10",
|
|
34
|
-
"@babel/preset-react": "^7.18.6",
|
|
35
|
-
"@babel/preset-typescript": "^7.7.4",
|
|
36
|
-
"@svgr/webpack": "^6.3.1",
|
|
37
|
-
"@types/clone-deep": "^4.0.1",
|
|
38
|
-
"@types/crypto-js": "^4.0.1",
|
|
39
|
-
"@types/downloadjs": "^1.4.2",
|
|
40
|
-
"@types/react": "^17.0.3",
|
|
41
|
-
"@types/react-dom": "^17.0.6",
|
|
42
|
-
"@types/uuid": "^8.3.0",
|
|
43
|
-
"antd": "4.10.1",
|
|
44
|
-
"axios": "^0.19.1",
|
|
45
|
-
"babel-loader": "^8.2.5",
|
|
46
|
-
"babel-plugin-import": "^1.13.5",
|
|
47
|
-
"clone-deep": "^4.0.1",
|
|
48
|
-
"copy-webpack-plugin": "^11.0.0",
|
|
49
|
-
"core-js": "^3.24.1",
|
|
50
|
-
"cross-env": "^7.0.3",
|
|
51
|
-
"css-loader": "^6.7.1",
|
|
52
|
-
"dexie": "^2.
|
|
53
|
-
"dexie-export-import": "^
|
|
54
|
-
"downloadjs": "^1.4.7",
|
|
55
|
-
"eslint": "^6.7.1",
|
|
56
|
-
"eslint-config-alloy": "^3.4.0",
|
|
57
|
-
"html-webpack-plugin": "^5.5.0",
|
|
58
|
-
"husky": "^4.3.8",
|
|
59
|
-
"jest": "^25.1.0",
|
|
60
|
-
"jszip": "^3.5.0",
|
|
61
|
-
"less": "^4.1.3",
|
|
62
|
-
"less-loader": "^11.0.0",
|
|
63
|
-
"lint-staged": "^10.5.4",
|
|
64
|
-
"mini-css-extract-plugin": "^2.6.1",
|
|
65
|
-
"postcss-loader": "^7.0.1",
|
|
66
|
-
"prettier": "^
|
|
67
|
-
"react": "^16.10.2",
|
|
68
|
-
"react-dom": "^16.10.2",
|
|
69
|
-
"sass": "^1.54.3",
|
|
70
|
-
"sass-loader": "^13.0.2",
|
|
71
|
-
"style-loader": "^3.3.1",
|
|
72
|
-
"terser-webpack-plugin": "^5.3.3",
|
|
73
|
-
"ts-loader": "^9.3.1",
|
|
74
|
-
"typescript": "^4.3.2",
|
|
75
|
-
"validate-commit-msg": "^2.14.0",
|
|
76
|
-
"vconsole": "^3.3.4",
|
|
77
|
-
"webpack": "^5.74.0",
|
|
78
|
-
"webpack-cli": "^4.10.0",
|
|
79
|
-
"webpack-dev-server": "^4.9.3",
|
|
80
|
-
"worker-loader": "^3.0.8",
|
|
81
|
-
"xytools": "^1.5.7"
|
|
82
|
-
},
|
|
83
|
-
"dependencies": {
|
|
84
|
-
"crypto-browserify": "^3.12.0",
|
|
85
|
-
"crypto-js": "^4.1.1",
|
|
86
|
-
"encryptlong": "^3.1.4",
|
|
87
|
-
"js-base64": "^3.6.1",
|
|
88
|
-
"uuid": "^7.0.2"
|
|
89
|
-
},
|
|
90
|
-
"husky": {
|
|
91
|
-
"hooks": {
|
|
92
|
-
"pre-commit": "lint-staged",
|
|
93
|
-
"commit-msg": "validate-commit-msg"
|
|
94
|
-
}
|
|
95
|
-
},
|
|
96
|
-
"config": {
|
|
97
|
-
"validate-commit-msg": {
|
|
98
|
-
"types": [
|
|
99
|
-
"feat",
|
|
100
|
-
"fix",
|
|
101
|
-
"docs",
|
|
102
|
-
"style",
|
|
103
|
-
"refactor",
|
|
104
|
-
"perf",
|
|
105
|
-
"test",
|
|
106
|
-
"build",
|
|
107
|
-
"ci",
|
|
108
|
-
"chore",
|
|
109
|
-
"revert",
|
|
110
|
-
"merge"
|
|
111
|
-
]
|
|
112
|
-
}
|
|
113
|
-
},
|
|
114
|
-
"lint-staged": {
|
|
115
|
-
"{src,demo}/**/*.{js,jsx,json,ts,tsx,scss,sass,css,md}": [
|
|
116
|
-
"prettier --write"
|
|
117
|
-
]
|
|
118
|
-
}
|
|
119
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "@xylink/xy-rtc-sdk",
|
|
3
|
+
"version": "3.9.0",
|
|
4
|
+
"description": "XYLink RTC SDK(小鱼易连WebRTC SDK)",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"XYLink RTC SDK",
|
|
7
|
+
"XYLink WebRTC SDK",
|
|
8
|
+
"WebRTC SDK",
|
|
9
|
+
"RTC SDK"
|
|
10
|
+
],
|
|
11
|
+
"main": "lib/xyrtc.cjs.js",
|
|
12
|
+
"types": "lib/index.d.ts",
|
|
13
|
+
"scripts": {
|
|
14
|
+
"dev": "npm run start",
|
|
15
|
+
"start": "cross-env NODE_ENV=development webpack serve --config ./scripts/webpack.dev.js",
|
|
16
|
+
"build:demo": "cross-env NODE_ENV=production webpack --config ./scripts/webpack.common.js",
|
|
17
|
+
"build:lib": "cross-env NODE_ENV=production webpack --config ./scripts/webpack.sdk.js",
|
|
18
|
+
"build:nodeLib": "node ./scripts/build_lib.js",
|
|
19
|
+
"test": "jest",
|
|
20
|
+
"xytools": "xytools",
|
|
21
|
+
"version:beta": "npm version prerelease --preid=beta",
|
|
22
|
+
"publish:beta": "npm publish --tag beta --access public"
|
|
23
|
+
},
|
|
24
|
+
"author": "jinghui-Luo",
|
|
25
|
+
"email": "luojinghui424@gmail.com",
|
|
26
|
+
"bugs": {
|
|
27
|
+
"url": "https://github.com/xylink-com/xylink-rtc-demo/issues",
|
|
28
|
+
"email": "luojinghui424@gmail.com"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@babel/core": "^7.18.10",
|
|
32
|
+
"@babel/plugin-transform-runtime": "^7.18.10",
|
|
33
|
+
"@babel/preset-env": "^7.18.10",
|
|
34
|
+
"@babel/preset-react": "^7.18.6",
|
|
35
|
+
"@babel/preset-typescript": "^7.7.4",
|
|
36
|
+
"@svgr/webpack": "^6.3.1",
|
|
37
|
+
"@types/clone-deep": "^4.0.1",
|
|
38
|
+
"@types/crypto-js": "^4.0.1",
|
|
39
|
+
"@types/downloadjs": "^1.4.2",
|
|
40
|
+
"@types/react": "^17.0.3",
|
|
41
|
+
"@types/react-dom": "^17.0.6",
|
|
42
|
+
"@types/uuid": "^8.3.0",
|
|
43
|
+
"antd": "4.10.1",
|
|
44
|
+
"axios": "^0.19.1",
|
|
45
|
+
"babel-loader": "^8.2.5",
|
|
46
|
+
"babel-plugin-import": "^1.13.5",
|
|
47
|
+
"clone-deep": "^4.0.1",
|
|
48
|
+
"copy-webpack-plugin": "^11.0.0",
|
|
49
|
+
"core-js": "^3.24.1",
|
|
50
|
+
"cross-env": "^7.0.3",
|
|
51
|
+
"css-loader": "^6.7.1",
|
|
52
|
+
"dexie": "^3.2.3",
|
|
53
|
+
"dexie-export-import": "^4.0.7",
|
|
54
|
+
"downloadjs": "^1.4.7",
|
|
55
|
+
"eslint": "^6.7.1",
|
|
56
|
+
"eslint-config-alloy": "^3.4.0",
|
|
57
|
+
"html-webpack-plugin": "^5.5.0",
|
|
58
|
+
"husky": "^4.3.8",
|
|
59
|
+
"jest": "^25.1.0",
|
|
60
|
+
"jszip": "^3.5.0",
|
|
61
|
+
"less": "^4.1.3",
|
|
62
|
+
"less-loader": "^11.0.0",
|
|
63
|
+
"lint-staged": "^10.5.4",
|
|
64
|
+
"mini-css-extract-plugin": "^2.6.1",
|
|
65
|
+
"postcss-loader": "^7.0.1",
|
|
66
|
+
"prettier": "^2.8.8",
|
|
67
|
+
"react": "^16.10.2",
|
|
68
|
+
"react-dom": "^16.10.2",
|
|
69
|
+
"sass": "^1.54.3",
|
|
70
|
+
"sass-loader": "^13.0.2",
|
|
71
|
+
"style-loader": "^3.3.1",
|
|
72
|
+
"terser-webpack-plugin": "^5.3.3",
|
|
73
|
+
"ts-loader": "^9.3.1",
|
|
74
|
+
"typescript": "^4.3.2",
|
|
75
|
+
"validate-commit-msg": "^2.14.0",
|
|
76
|
+
"vconsole": "^3.3.4",
|
|
77
|
+
"webpack": "^5.74.0",
|
|
78
|
+
"webpack-cli": "^4.10.0",
|
|
79
|
+
"webpack-dev-server": "^4.9.3",
|
|
80
|
+
"worker-loader": "^3.0.8",
|
|
81
|
+
"xytools": "^1.5.7"
|
|
82
|
+
},
|
|
83
|
+
"dependencies": {
|
|
84
|
+
"crypto-browserify": "^3.12.0",
|
|
85
|
+
"crypto-js": "^4.1.1",
|
|
86
|
+
"encryptlong": "^3.1.4",
|
|
87
|
+
"js-base64": "^3.6.1",
|
|
88
|
+
"uuid": "^7.0.2"
|
|
89
|
+
},
|
|
90
|
+
"husky": {
|
|
91
|
+
"hooks": {
|
|
92
|
+
"pre-commit": "lint-staged",
|
|
93
|
+
"commit-msg": "validate-commit-msg"
|
|
94
|
+
}
|
|
95
|
+
},
|
|
96
|
+
"config": {
|
|
97
|
+
"validate-commit-msg": {
|
|
98
|
+
"types": [
|
|
99
|
+
"feat",
|
|
100
|
+
"fix",
|
|
101
|
+
"docs",
|
|
102
|
+
"style",
|
|
103
|
+
"refactor",
|
|
104
|
+
"perf",
|
|
105
|
+
"test",
|
|
106
|
+
"build",
|
|
107
|
+
"ci",
|
|
108
|
+
"chore",
|
|
109
|
+
"revert",
|
|
110
|
+
"merge"
|
|
111
|
+
]
|
|
112
|
+
}
|
|
113
|
+
},
|
|
114
|
+
"lint-staged": {
|
|
115
|
+
"{src,demo}/**/*.{js,jsx,json,ts,tsx,scss,sass,css,md}": [
|
|
116
|
+
"prettier --write"
|
|
117
|
+
]
|
|
118
|
+
}
|
|
119
|
+
}
|
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;
|