优化声音和安卓端适配
This commit is contained in:
6
dist/index.md
vendored
6
dist/index.md
vendored
@@ -89,6 +89,9 @@ interface ScanConfigOptions {
|
||||
webScanType?: ("qrCode" | "barCode")[];
|
||||
webScanVideoMirror?: boolean;
|
||||
webScanVideoMirrorVertical?: boolean;
|
||||
webScanImageFallbackOnVideoError?: boolean;
|
||||
webScanVideoAccessTimeout?: number;
|
||||
webScanVideoReadyTimeout?: number;
|
||||
scanBeepAudio?: string;
|
||||
scanBeepEnabled?: boolean;
|
||||
initWechatJssdk?: {
|
||||
@@ -120,6 +123,9 @@ interface ScanConfigOptions {
|
||||
| `webScanType` | WebScan 扫码类型 | `["qrCode", "barCode"]` |
|
||||
| `webScanVideoMirror` | WebScan 视频是否水平镜像;不配置时自动判断:前置/PC 镜像,后置不镜像 | 自动 |
|
||||
| `webScanVideoMirrorVertical` | WebScan 视频是否垂直镜像 | `false` |
|
||||
| `webScanImageFallbackOnVideoError` | 摄像头不可用或打开失败时,是否自动弹出拍照/选图(适用于部分安卓内置浏览器) | `true` |
|
||||
| `webScanVideoAccessTimeout` | 打开摄像头超时(毫秒),超时后走图片回退 | `10000` |
|
||||
| `webScanVideoReadyTimeout` | 摄像头已开但无画面超时(毫秒),超时后走图片回退 | `8000` |
|
||||
| `scanBeepAudio` | 扫码成功提示音地址(任意模式匹配成功时播放) | 内置提示音 |
|
||||
| `scanBeepEnabled` | 扫码成功是否播放提示音 | `true` |
|
||||
| `initWechatJssdk` | 微信 JSSDK 初始化配置,仅微信环境生效 | 无 |
|
||||
|
||||
Reference in New Issue
Block a user