html5-qrcode
Advanced tools
Changelog
Version 2.3.8
Scanner Paused
color tone changes.Html5QrcodeScannerConfig
exported, thanks to PR#728 by seyfer@.LitExample
added, thanks to PR#704 by kusigit@.Sponsors Huge thanks to supporters of the mission who sponsored the project (See Leaderboard).
See the sponsorship page at ko-fi.
Changelog
Version 2.3.5
Multiple bug fixes
resolve()
in Html5QrcodeScanner
fixed in PR#168 by itsUndefined.RenderedCameraImpl
in PR#648 by pholawat-tle.Changelog
Version 2.3.4
useBarCodeDetectorIfSupported
defaults to true
and if supported the library will internally alternate between BarcodeDetector
and zxing-js
. Same robustness added for file based scan as well if more than one decoder is supported.scanFile(..)
APIs, scan at image resolution. Show Loading image...
while the image is being loaded for rendering. More info at Issue#612Changelog
Version 2.3.2
Support for zoom slider in Html5QrcodeScanner
.
Added basic support for zoom feature under configuration flag (not enabled by default). This was raised in issue issue#330.This should help address some focus issues raised so far.
Not supported on Safari or any IOS browser though!
How to use
let html5QrcodeScanner = new Html5QrcodeScanner(
"reader",
{
fps: 10,
qrbox: qrboxFunction,
useBarCodeDetectorIfSupported: true,
rememberLastUsedCamera: true,
aspectRatio: 4/3,
showTorchButtonIfSupported: true,
showZoomSliderIfSupported: true,
defaultZoomValueIfSupported: 2
// ^ this means by default camera will load at 2x zoom.
});
src/html5-qrcode.ts
Changelog
Version 2.3.1
willReadFrequently
attribute to canvas context for camera scan as per Google Chrome recommendation.Changelog
Version 2.3.0
Changelog
Version 2.2.8
In certain browsers as well as cases like Android Webview it looks like camera name is not returned by the browser. In such cases the camera selection has empty named options.
To make the UX better, the library will give custom names to the cameras.
For example in Duck Duck Go browser which has this behavior, it will look like this
| Before selection | After selection | | --- | --- | | | |