@zappar/zappar-cv 2.1.5 → 2.1.7
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 +2 -2
- package/lib/camera-source.js +1 -1
- package/lib/profile.d.ts +1 -0
- package/lib/profile.js +5 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +1 -1
- package/umd/56.zappar-cv.js +1 -1
- package/umd/zappar-cv.js +1 -1
- package/umd/zappar-cv.worker.js +1 -1
package/README.md
CHANGED
|
@@ -18,8 +18,8 @@ npm i @zappar/zappar-cv
|
|
|
18
18
|
|
|
19
19
|
You can use our CDN from within your HTML:
|
|
20
20
|
```
|
|
21
|
-
<script src="https://libs.zappar.com/zappar-cv/2.1.
|
|
21
|
+
<script src="https://libs.zappar.com/zappar-cv/2.1.7/zappar-cv.js"></script>
|
|
22
22
|
```
|
|
23
23
|
|
|
24
24
|
Or you can download and host our standalone JavaScript bundle:
|
|
25
|
-
[https://libs.zappar.com/zappar-cv/2.1.
|
|
25
|
+
[https://libs.zappar.com/zappar-cv/2.1.7/zappar-cv.zip](https://libs.zappar.com/zappar-cv/2.1.7/zappar-cv.zip)
|
package/lib/camera-source.js
CHANGED
|
@@ -109,7 +109,7 @@ export class CameraSource extends HTMLElementSource {
|
|
|
109
109
|
deviceId: deviceId
|
|
110
110
|
}
|
|
111
111
|
};
|
|
112
|
-
if (deviceId)
|
|
112
|
+
if (deviceId || profile.relyOnConstraintsForCameraSelection)
|
|
113
113
|
return constraints;
|
|
114
114
|
if (!navigator.mediaDevices || !navigator.mediaDevices.enumerateDevices)
|
|
115
115
|
return constraints;
|
package/lib/profile.d.ts
CHANGED
package/lib/profile.js
CHANGED
|
@@ -18,6 +18,7 @@ export let profile = {
|
|
|
18
18
|
preferMediaStreamTrackProcessorCamera: false,
|
|
19
19
|
preferImageBitmapCamera: false,
|
|
20
20
|
ios164CameraSelection: false,
|
|
21
|
+
relyOnConstraintsForCameraSelection: false,
|
|
21
22
|
forceWindowOrientation: false,
|
|
22
23
|
};
|
|
23
24
|
if (typeof window !== "undefined") {
|
|
@@ -77,8 +78,11 @@ function iDevice(version) {
|
|
|
77
78
|
profile.dataHeight = 180;
|
|
78
79
|
}
|
|
79
80
|
}
|
|
80
|
-
if (
|
|
81
|
+
if (majorVersion === 16 && minorVersion >= 4) {
|
|
81
82
|
profile.ios164CameraSelection = true;
|
|
82
83
|
}
|
|
84
|
+
if (majorVersion >= 17) {
|
|
85
|
+
profile.relyOnConstraintsForCameraSelection = true;
|
|
86
|
+
}
|
|
83
87
|
}
|
|
84
88
|
}
|
package/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "2.1.
|
|
1
|
+
export declare const VERSION = "2.1.7";
|
package/lib/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "2.1.
|
|
1
|
+
export const VERSION = "2.1.7";
|