lukegbcom: ee-qrcode should use back camera by default
This commit is contained in:
parent
828c7ad578
commit
5193dd028a
1 changed files with 1 additions and 1 deletions
|
@ -18,7 +18,7 @@ async function startCapture(video, canvas, captureType) {
|
|||
if (captureType === 'screen')
|
||||
captureStream = await navigator.mediaDevices.getDisplayMedia({ audio: false, video: true })
|
||||
else
|
||||
captureStream = await navigator.mediaDevices.getUserMedia({ audio: false, video: true })
|
||||
captureStream = await navigator.mediaDevices.getUserMedia({ audio: false, video: { facingMode: 'environment' } })
|
||||
} catch (e) {
|
||||
alert(`Failed to start screen capture: ${e}`)
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue