Add support for torch and make beta APIs non beta. #570
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Version 2.2.5
Added support for turning
torch
On and Off inHtml5QrcodeScanner
. On supported devices + browsers.This new feature will implement the feature request - Issue#129 and add support for torch (also called flash) on supported devices and browsers.
So far I have confirmed functionality on Samsung Flip 4 Chrome and Internet (Samsung's default browser).
This is only supported on
Html5QrcodeScanner
and can be enabled using the config like this.The
showTorchButtonIfSupported: true
part is the crucial one. It's off by default for now as I don't like the UI very much.Added support for
getRunningTrackSettings()
.Added a new API to get settings (type: MediaTrackSettings) for running video streams while QR code is being scanned.
This API can be used to check the currently applied settings on the running video stream like weather torch is on or not.
getRunningTrackCapabilities(..)
andapplyVideoConstraints(..)
out of beta.Both
Html5Qrcode
andHtml5QrcodeScanner
classes had support for following APIs.These have now been taken out of beta and publicly documented. More blog articles to be published for these.