mirror of
https://github.com/GuerillaStudio/souvenir.git
synced 2025-02-01 15:49:39 +00:00
remove useless debug from camera
This commit is contained in:
parent
74f3df8c01
commit
d7032c8aac
1 changed files with 0 additions and 2 deletions
|
@ -12,13 +12,11 @@ export async function getCamera (shouldFaceUser) {
|
||||||
|
|
||||||
for (const constraints of constraintsList) {
|
for (const constraints of constraintsList) {
|
||||||
try {
|
try {
|
||||||
console.log(constraints)
|
|
||||||
return {
|
return {
|
||||||
mediaStream: await navigator.mediaDevices.getUserMedia(constraints),
|
mediaStream: await navigator.mediaDevices.getUserMedia(constraints),
|
||||||
facingMode: constraints.video.facingMode.exact ? constraints.video.facingMode.exact : 'unknow'
|
facingMode: constraints.video.facingMode.exact ? constraints.video.facingMode.exact : 'unknow'
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error)
|
|
||||||
if (error.name !== 'OverconstrainedError' && error.constraint === 'facingMode') {
|
if (error.name !== 'OverconstrainedError' && error.constraint === 'facingMode') {
|
||||||
throw error
|
throw error
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue