mirror of
https://github.com/GuerillaStudio/souvenir.git
synced 2025-02-01 13:49:40 +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) {
|
||||
try {
|
||||
console.log(constraints)
|
||||
return {
|
||||
mediaStream: await navigator.mediaDevices.getUserMedia(constraints),
|
||||
facingMode: constraints.video.facingMode.exact ? constraints.video.facingMode.exact : 'unknow'
|
||||
}
|
||||
} catch (error) {
|
||||
console.log(error)
|
||||
if (error.name !== 'OverconstrainedError' && error.constraint === 'facingMode') {
|
||||
throw error
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue