Skip to content

Commit

Permalink
Fix video constraints
Browse files Browse the repository at this point in the history
  • Loading branch information
mainnet-pat committed Aug 12, 2024
1 parent c5234ea commit e64137b
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions src/components/qr/qrCodeScanDialog.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,12 @@
<q-card v-else :style="isMobile ? 'width: 100%; height: 100%;' : 'width: 75%; height: 75%;'">
<qrcode-stream
:formats="['qr_code']"
:camera="frontCamera ? 'front': 'auto'"
:constraints="{
video: {
width: { min: 1080 },
height: { min: 1080 },
aspectRatio: { ideal: 1 },
frameRate: { min: 20 }
}
width: { min: 1080 },
height: { min: 1080 },
aspectRatio: { ideal: 1 },
frameRate: { min: 20 },
facingMode: { ideal: 'environment' }
}"
@detect="onScannerDecode"
@init="onScannerInit"
Expand Down

0 comments on commit e64137b

Please sign in to comment.