All Projects → Turbo87 → ember-qr-scanner

Turbo87 / ember-qr-scanner

Licence: MIT license
QR Code scanner component for Ember.js

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

ember-qr-scanner

npm Build Status

QR Code scanner component for Ember.js.

Demo: https://turbo87.github.io/ember-qr-scanner/

Installation

ember install ember-qr-scanner

Usage

{{qr-scanner onSuccess=(action (mut result)) onError=(action (mut error))}}

The qr-scanner component will create a <canvas> showing the current camera stream. Once the component is added to the template it will automatically request permission from the user to use the camera.

The onError callback will be called if either the camera stream could not be acquired or if the scan of the current video frame did not result in a QR code. In the second case a ScanError instance will be passed to the callback (available through import { ScanError } from 'ember-qr-scanner';).

You can check for browser compatibility by using import { isSupported } from 'ember-qr-scanner'; and then checking the isSupported flag.

Links

License

ember-qr-scanner is licensed under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].