@zappar/zappar-cv 3.0.0-beta.5 → 3.0.0-beta.6
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 +4 -0
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/lib/zappar-cv.wasm +0 -0
- package/package.json +1 -1
- package/umd/{8879d8857065c12983c1.wasm → 22a0ba3553d400112656.wasm} +0 -0
- 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/3.0.0-beta.
|
|
21
|
+
<script src="https://libs.zappar.com/zappar-cv/3.0.0-beta.6/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/3.0.0-beta.
|
|
25
|
+
[https://libs.zappar.com/zappar-cv/3.0.0-beta.6/zappar-cv.zip](https://libs.zappar.com/zappar-cv/3.0.0-beta.6/zappar-cv.zip)
|
package/lib/camera-source.js
CHANGED
|
@@ -122,7 +122,7 @@ export class CameraSource extends HTMLElementSource {
|
|
|
122
122
|
deviceId: deviceId
|
|
123
123
|
}
|
|
124
124
|
};
|
|
125
|
-
if (deviceId)
|
|
125
|
+
if (deviceId || profile.relyOnConstraintsForCameraSelection)
|
|
126
126
|
return constraints;
|
|
127
127
|
if (!navigator.mediaDevices || !navigator.mediaDevices.enumerateDevices)
|
|
128
128
|
return constraints;
|
package/lib/profile.d.ts
CHANGED
|
@@ -16,6 +16,7 @@ export declare let profile: {
|
|
|
16
16
|
preferMediaStreamTrackProcessorCamera: boolean;
|
|
17
17
|
preferImageBitmapCamera: boolean;
|
|
18
18
|
ios164CameraSelection: boolean;
|
|
19
|
+
relyOnConstraintsForCameraSelection: boolean;
|
|
19
20
|
forceWindowOrientation: boolean;
|
|
20
21
|
intervalMultiplier: number;
|
|
21
22
|
trustSensorIntervals: boolean;
|
package/lib/profile.js
CHANGED
|
@@ -18,6 +18,7 @@ export let profile = {
|
|
|
18
18
|
preferMediaStreamTrackProcessorCamera: true,
|
|
19
19
|
preferImageBitmapCamera: false,
|
|
20
20
|
ios164CameraSelection: false,
|
|
21
|
+
relyOnConstraintsForCameraSelection: false,
|
|
21
22
|
forceWindowOrientation: false,
|
|
22
23
|
intervalMultiplier: 1,
|
|
23
24
|
trustSensorIntervals: false,
|
|
@@ -85,5 +86,8 @@ function iDevice(version) {
|
|
|
85
86
|
if (majorVersion === 16 && minorVersion >= 4) {
|
|
86
87
|
profile.ios164CameraSelection = true;
|
|
87
88
|
}
|
|
89
|
+
if (majorVersion >= 17) {
|
|
90
|
+
profile.relyOnConstraintsForCameraSelection = true;
|
|
91
|
+
}
|
|
88
92
|
}
|
|
89
93
|
}
|
package/lib/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const VERSION = "3.0.0-beta.
|
|
1
|
+
export declare const VERSION = "3.0.0-beta.6";
|
package/lib/version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = "3.0.0-beta.
|
|
1
|
+
export const VERSION = "3.0.0-beta.6";
|
package/lib/zappar-cv.wasm
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|