react-qr-reader
react-qr-reader copied to clipboard
Pass streamTrack on onLoad
- streamTrack can be used e.g. for zooming camera
That streamTrack object is handy if you want to zoom videostream. If it is passed to parent component, it could be edited there too.
Personally I would like to use applyConstraints method: https://developer.mozilla.org/en-US/docs/Web/API/MediaStreamTrack/applyConstraints
Example of using camera zoom: https://googlechrome.github.io/samples/image-capture/update-camera-zoom.html
I would also point out that package-lock.json is not up to date. E.g. version number increments after npm install.
@JodusNodus What do you think about this?
:+1:
@fviard
I made new package with this change.
See https://www.npmjs.com/package/react-qr-reader2