v2.3.2
版本发布时间: 2022-11-22 19:59:58
mebjas/html5-qrcode最新发布版本:v2.3.8(2023-04-15 13:48:51)
Version 2.3.2
Features or bug fixes.
- Hide margin of parent container when camera selection UI is hidden (if only 1 camera is found.) - Issue#599, PR#607 by adamwolf@.
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.
});
Tech debts
- Refactored the camera components out of
src/html5-qrcode.ts
1、 html5-qrcode.min.js 364.46KB