Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
mtwmt committed Oct 7, 2024
1 parent 36f0423 commit dbe1bd2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/app/isbn/isbn.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ export class IsbnComponent implements OnInit {
bookInfo!: any;
scanResult: string | null = null;
videoConstraints = {
width: { ideal: 1280 }, // 嘗試將解析度設置為 1280x720
height: { ideal: 720 },
facingMode: { exact: 'environment' }, // 使用後置鏡頭,這通常是自動對焦最好的
focusMode: 'continuous', // 持續自動對焦
zoom: true, // 如果裝置支援的話,可設置為自動縮放
Expand Down

0 comments on commit dbe1bd2

Please sign in to comment.