Especially with the following changes:
- Attempt to fix Safari RangeError exceptions
- Support "structured append" qr codes
- Binarizer: adapt blackBias for slightly higher detection rate
- round scan region to whole pixel positions to avoid blurry
drawing at sub-pixel positions
- avoid clearing the canvas by resetting the canvas width or
height when they actually didn't change.
b3713f2 switched to starting to play immediately, without waiting for
a canplay event. The side effect of this is, that the play event (on
which the source rect is measured) is triggered before the video
is ready and the video dimensions known. To circumvent this, this
commit adds an additional source rect update on loadedmetadata.
- support for image urls and data urls
- support for stopping web cam scanning via stop()
- support for hasCamera() check
- documentation for optional scanImage() parameters
- update file sizes
- list web cam scanning out-of-the-box as a feature of this lib
New version of our jsQR-es6 fork has been updated to newest master
of cozmo/jsQR and merged in additional pull requests which are still
open in cozmo/jsQR. Also now makes the 'onlyInvert' inversion mode
usable.
- Add instructions to readme
- Update _flashOn after the flash was actually turned on or off
- Throw an error when trying to set the flash if not supported
- Make toggleFlash, turnFlashOn, turnFlashOff return a promise
- Throw an error when trying to detect flash support before the
video stream is available.
- Make change backwards compatible with previous consructor signature
- Fix demo to interpret errors as proper results
- Update types
- Do not report errors when the scanner is inactive
- Update readme
Improve the instructions for file-loader and add instructions for
raw-loader (see PR #60).
Co-authored-by: Gustavo Honorato <gustavohonorato@gmail.com>
Set these properties by default to disable picture in picture mode and to
enable inline playback on iPhones.
Co-authored-by: Alessandro Gatti <ale.gatti96@gmail.com>
The manual call of play() just after setting the video stream introduced in
the previous commit seems to suffice without the need to wait for the
canplay event.
Co-authored-by: shrpne <shrpne@gmail.com>
In older Firefox versions, the canplay event was not triggered
correctly, resulting in videos without autoplay not being played
manually via play().
Co-authored-by: Daniel <github.danimoh@neverbox.com>