@wemap/camera 5.3.0 → 5.4.4
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/dist/wemap-camera.es.js +10 -26784
- package/dist/wemap-camera.es.js.map +1 -1
- package/index.js +1 -1
- package/package.json +2 -2
- package/src/Camera.js +3 -1
- package/src/CameraUtils.js +1 -1
- package/src/QrCodeScanner.js +1 -1
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { BarcodeFormat } from '@zxing/library
|
|
1
|
+
export { BarcodeFormat } from '@zxing/library';
|
|
2
2
|
export { default as Camera } from './src/Camera.js';
|
|
3
3
|
export { default as QrCodeScanner } from './src/QrCodeScanner.js';
|
|
4
4
|
export { default as SharedCameras } from './src/SharedCameras.js';
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"directory": "packages/camera"
|
|
12
12
|
},
|
|
13
13
|
"name": "@wemap/camera",
|
|
14
|
-
"version": "5.
|
|
14
|
+
"version": "5.4.4",
|
|
15
15
|
"bugs": {
|
|
16
16
|
"url": "https://github.com/wemap/wemap-modules-js/issues"
|
|
17
17
|
},
|
|
@@ -27,5 +27,5 @@
|
|
|
27
27
|
"events": "^3.3.0"
|
|
28
28
|
},
|
|
29
29
|
"type": "module",
|
|
30
|
-
"gitHead": "
|
|
30
|
+
"gitHead": "a1b04a541794b89c4a3af62a99e66976b6100ca9"
|
|
31
31
|
}
|
package/src/Camera.js
CHANGED
|
@@ -141,7 +141,9 @@ class Camera extends EventEmitter {
|
|
|
141
141
|
}
|
|
142
142
|
|
|
143
143
|
if (testUserMedia) {
|
|
144
|
-
const stream = await navigator.mediaDevices.getUserMedia(
|
|
144
|
+
const stream = await navigator.mediaDevices.getUserMedia({
|
|
145
|
+
audio: false, video: { facingMode: 'environment' }
|
|
146
|
+
});
|
|
145
147
|
if (stream.stop) {
|
|
146
148
|
stream.stop();
|
|
147
149
|
} else {
|
package/src/CameraUtils.js
CHANGED