Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't able to do Default Zoom 2 when scanner is launched #89

Open
HarshDadhania opened this issue Nov 5, 2024 · 4 comments
Open

Can't able to do Default Zoom 2 when scanner is launched #89

HarshDadhania opened this issue Nov 5, 2024 · 4 comments

Comments

@HarshDadhania
Copy link

I want to set Default Zoom 2 when scanner is launched, currently I'm not able to find property for that.

@HarshDadhania HarshDadhania changed the title Default Zoom 2 when scanner is launched Can't able to do Default Zoom 2 when scanner is launched Nov 5, 2024
@MananJa13ba
Copy link

For anyone using typescript:
const zoomObj: any = { zoom: 3 }
constraints={{ advanced: [zoomObj] }}

Copy link

stale bot commented Dec 7, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Dec 7, 2024
@dangdinhvan
Copy link

For anyone using typescript: const zoomObj: any = { zoom: 3 } constraints={{ advanced: [zoomObj] }}

it's not working for me. constraints={{ advanced: MediaTrackConstraintSet[] }} not include zoom. So any other solution?

@stale stale bot removed the stale label Dec 16, 2024
@MananJa13ba
Copy link

For anyone using typescript: const zoomObj: any = { zoom: 3 } constraints={{ advanced: [zoomObj] }}

it's not working for me. constraints={{ advanced: MediaTrackConstraintSet[] }} not include zoom. So any other solution?

Yes, MediaTrackConstraintSet lacks a zoom property, which is why we initialized it with type 'any.' If you're using the scanner component in a mobile application, the camera should reflect the zoom level you selected.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants