@yidun/livedetect-sdk-h5 2.1.0 → 2.2.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 CHANGED
@@ -69,11 +69,13 @@ 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.v2.1.0.min.css" />
72
+ <link rel="stylesheet" href="https://yidunfe.nosdn.127.net/sdk/NELiveDetection.v<VERSION>.min.css" />
73
73
  <!-- body 标签下引入 sdk -->
74
- <script src="https://yidunfe.nosdn.127.net/sdk/NELiveDetection.v2.1.0.umd.js"></script>
74
+ <script src="https://yidunfe.nosdn.127.net/sdk/NELiveDetection.v<VERSION>.umd.js"></script>
75
75
  ```
76
76
 
77
+ <VERSION> 为占位符,详细版本列表见:https://www.npmjs.com/package/@yidun/livedetect-sdk-h5?activeTab=versions
78
+
77
79
  引入该脚本之后,不需要像**模块引入**方式一样通过 `import` 引入 `NELiveDetection` 变量,该变量已经挂载到全局,初始化时直接按下列方式即可:
78
80
 
79
81
  ```js
@@ -170,6 +172,7 @@ const neLiveDetection = new NELiveDetection({
170
172
  | fallback | Boolean | `true` | 是否降级到视频录制上传 | 否 |
171
173
  | onMount | Function | - | 初始化实例挂载完成回调 | 否 |
172
174
  | onReady | Function | - | 活体检测前的准备工作已完成回调 | 否 |
175
+ | apiServer | String | https://verify.dun.163yun.com | 私有化接口服务地址,仅支持以 `https` 开头的域名,版本需要大于 2.2.0 | 否 |
173
176
 
174
177
  <md-attention>
175
178