@yidun/livedetect-sdk-h5 1.2.6 → 2.0.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/README.md +9 -3
- package/dist/NELiveDetection.v2.0.1.umd.js +2 -0
- package/dist/es/NELiveDetection.esm.js +2 -2
- package/dist/es/typings/main/constants.d.ts +2 -1
- package/dist/es/typings/main/types.d.ts +1 -0
- package/dist/es/typings/main/utils/i18n.d.ts +12 -0
- package/package.json +1 -1
- package/dist/NELiveDetection.umd.js +0 -2
- /package/dist/{NELiveDetection.min.css → NELiveDetection.v2.0.1.min.css} +0 -0
package/README.md
CHANGED
|
@@ -69,9 +69,9 @@ import '@yidun/livedetect-sdk-h5/dist/es/NELiveDetection.css';
|
|
|
69
69
|
|
|
70
70
|
```html
|
|
71
71
|
<!-- head 标签下样式文件引入 -->
|
|
72
|
-
<link rel="stylesheet" href="https://yidunfe.nosdn.127.net/sdk/NELiveDetection.
|
|
72
|
+
<link rel="stylesheet" href="https://yidunfe.nosdn.127.net/sdk/NELiveDetection.v2.0.1.min.css" />
|
|
73
73
|
<!-- body 标签下引入 sdk -->
|
|
74
|
-
<script src="https://yidunfe.nosdn.127.net/sdk/NELiveDetection.
|
|
74
|
+
<script src="https://yidunfe.nosdn.127.net/sdk/NELiveDetection.v2.0.1.umd.js"></script>
|
|
75
75
|
```
|
|
76
76
|
|
|
77
77
|
引入该脚本之后,不需要像**模块引入**方式一样通过 `import` 引入 `NELiveDetection` 变量,该变量已经挂载到全局,初始化时直接按下列方式即可:
|
|
@@ -271,9 +271,15 @@ instance.on('error', (err) => {
|
|
|
271
271
|
| ------ | ------------------------------------ |
|
|
272
272
|
| 10000 | 校验不通过 |
|
|
273
273
|
| 10001 | 校验接口网络错误 |
|
|
274
|
-
| 11000 |
|
|
274
|
+
| 11000 | 获取相机权限失败 |
|
|
275
275
|
| 11001 | 鉴权不通过 |
|
|
276
276
|
| 11002 | 浏览器不支持 |
|
|
277
|
+
| 11003 | 用户拒绝相机权限授权 |
|
|
278
|
+
| 11004 | 找不到摄像头 |
|
|
279
|
+
| 11005 | 异常硬件导致无法读取摄像头 |
|
|
280
|
+
| 11006 | 摄像头分辨率过低 |
|
|
281
|
+
| 11007 | 未知问题导致摄像头无法被使用 |
|
|
282
|
+
| 11008 | 炫瞳检测失败 |
|
|
277
283
|
| 12000 | 获取配置接口网络错误 |
|
|
278
284
|
| 12001 | 获取配置失败,请检查接入配置是否正确 |
|
|
279
285
|
|