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

Add support for videoConstraints #123

Merged
merged 2 commits into from
Oct 11, 2020
Merged

Add support for videoConstraints #123

merged 2 commits into from
Oct 11, 2020

Conversation

mebjas
Copy link
Owner

@mebjas mebjas commented Oct 11, 2020

  • Can be passed while starting the scan
  • Added two new experimental APIs in Html5Qrcode class
  • getRunningTrackCapabilities() allows getting capabilities of a running stream
  • applyVideoConstraints() allows setting constraints while the stream is running, doesn't support aspectRatio at the moment.

Demo: https://blog.minhazav.dev/research/html5qrcode-video-constraints

- Can be passed while starting the scan
- Added two new experimental APIs in `Html5Qrcode` class
 - getRunningTrackCapabilities() allows getting capabilities of a running stream
- applyVideoConstraints() allows setting constraints while the stream is running, doesn't support aspectRatio at the moment.
@mebjas mebjas merged commit b396404 into master Oct 11, 2020
@mebjas mebjas deleted the v1.2.3 branch November 7, 2020 04:28
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

Successfully merging this pull request may close these issues.

How to make the camera focus automatically Allow setting video constraints
1 participant