tencentcloud-webar 2.0.3-dev.11 → 2.0.3-dev.12
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/build-esm/index.js +2 -2
- package/build-esm/lib-3d.js +1 -1
- package/build-esm/recorder.js +6 -0
- package/build-esm/sticker3d.js +1 -1
- package/build-esm/sticker3d.worker.js +1 -1
- package/build-umd/avatar.umd.js +1 -1
- package/build-umd/hand-3d.umd.js +1 -1
- package/build-umd/stickers-3d.umd.js +1 -1
- package/build-umd/webar-recorder.umd.js +6 -0
- package/build-umd/webar-sdk.umd.js +2 -2
- package/index.umd-main.ts +30 -0
- package/miniprogram_dist/index.js +1 -1
- package/miniprogram_dist/plugin-3d.js +1 -1
- package/miniprogram_dist/plugin-hand-3d.js +1 -1
- package/package.json +16 -2
- package/recorder.ts +24 -0
package/package.json
CHANGED
|
@@ -1,9 +1,21 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tencentcloud-webar",
|
|
3
|
-
"version": "2.0.3-dev.
|
|
3
|
+
"version": "2.0.3-dev.12",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "build-esm/index.js",
|
|
6
6
|
"types": "types/index.d.ts",
|
|
7
|
+
"exports": {
|
|
8
|
+
".": {
|
|
9
|
+
"types": "./types/index.d.ts",
|
|
10
|
+
"import": "./build-esm/index.js",
|
|
11
|
+
"default": "./build-esm/index.js"
|
|
12
|
+
},
|
|
13
|
+
"./recorder": {
|
|
14
|
+
"types": "./types/recorder.d.ts",
|
|
15
|
+
"import": "./build-esm/recorder.js",
|
|
16
|
+
"default": "./build-esm/recorder.js"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
7
19
|
"devDependencies": {
|
|
8
20
|
"@assemblyscript/loader": "^0.19.17",
|
|
9
21
|
"@babel/core": "^7.17.10",
|
|
@@ -79,6 +91,8 @@
|
|
|
79
91
|
"author": "shirlyyang",
|
|
80
92
|
"license": "ISC",
|
|
81
93
|
"dependencies": {
|
|
82
|
-
"detect-gpu": "^5.0.14"
|
|
94
|
+
"detect-gpu": "^5.0.14",
|
|
95
|
+
"mp4-muxer": "^5.2.2",
|
|
96
|
+
"mp4box": "^0.5.4"
|
|
83
97
|
}
|
|
84
98
|
}
|
package/recorder.ts
ADDED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/* IFTRUE_platform_h5 */
|
|
2
|
+
/**
|
|
3
|
+
* ArRecorderSdk 子路径入口(ESM sub-path export)。
|
|
4
|
+
*
|
|
5
|
+
* 通过 package.json 的 "exports" 映射到 `tencentcloud-webar/recorder`,
|
|
6
|
+
* 让只用实时美颜的客户不必把录制相关代码(mp4-muxer / mp4box / RecorderInput/Output
|
|
7
|
+
* ~ 50KB gzipped)打进自己的主 bundle。
|
|
8
|
+
*
|
|
9
|
+
* 用法:
|
|
10
|
+
* import { ArRecorderSdk } from 'tencentcloud-webar/recorder';
|
|
11
|
+
*
|
|
12
|
+
* 同页面**不可与 ArSdk 同时实例化**(共享 AROptionsManager / moduleManager 单例)。
|
|
13
|
+
*/
|
|
14
|
+
export {
|
|
15
|
+
ArRecorderSdk,
|
|
16
|
+
RecorderConstructorOptions,
|
|
17
|
+
RecorderAuth,
|
|
18
|
+
RecorderOutputConfig,
|
|
19
|
+
ProcessOptions,
|
|
20
|
+
ProcessResult,
|
|
21
|
+
VideoTrackInfo,
|
|
22
|
+
AudioTrackInfo,
|
|
23
|
+
} from "./src/h5/recorder";
|
|
24
|
+
/* FITRUE_platform_h5 */
|