@alvedder/html5-qrcode
Advanced tools
Comparing version 0.1.0 to 0.2.0-alpha.1
@@ -83,3 +83,3 @@ "use strict"; | ||
}; | ||
return [4, navigator.mediaDevices.getUserMedia({ audio: false, video: true })]; | ||
return [4, navigator.mediaDevices.getUserMedia({ audio: false, video: { facingMode: { exact: 'environment' } } })]; | ||
case 1: | ||
@@ -86,0 +86,0 @@ mediaStream = _a.sent(); |
@@ -46,3 +46,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
}; | ||
let mediaStream = yield navigator.mediaDevices.getUserMedia({ audio: false, video: true }); | ||
let mediaStream = yield navigator.mediaDevices.getUserMedia({ audio: false, video: { facingMode: { exact: 'environment' } } }); | ||
let devices = yield navigator.mediaDevices.enumerateDevices(); | ||
@@ -49,0 +49,0 @@ let results = []; |
@@ -80,3 +80,3 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) { | ||
}; | ||
return [4, navigator.mediaDevices.getUserMedia({ audio: false, video: true })]; | ||
return [4, navigator.mediaDevices.getUserMedia({ audio: false, video: { facingMode: { exact: 'environment' } } })]; | ||
case 1: | ||
@@ -83,0 +83,0 @@ mediaStream = _a.sent(); |
{ | ||
"name": "@alvedder/html5-qrcode", | ||
"version": "0.1.0", | ||
"version": "0.2.0-alpha.1", | ||
"description": "A cross platform HTML5 QR Code & bar code scanner", | ||
@@ -5,0 +5,0 @@ "main": "./cjs/index.js", |
@@ -58,3 +58,3 @@ /** | ||
let mediaStream = await navigator.mediaDevices.getUserMedia( | ||
{ audio: false, video: true }); | ||
{ audio: false, video: { facingMode: { exact: 'environment' } } }); | ||
let devices = await navigator.mediaDevices.enumerateDevices(); | ||
@@ -61,0 +61,0 @@ let results: Array<CameraDevice> = []; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Unpublished package
Supply chain riskPackage version was not found on the registry. It may exist on a different registry and need to be configured to pull from that registry.
Found 1 instance in 1 package
Unpopular package
QualityThis package is not very popular.
Found 1 instance in 1 package
2615387
0
1