PolymerLabs / polymon

Seek out Polymer team members and capture them as Polymon! https://polymon.polymer-project.org
10 stars 2 forks source link

use <input type="file"> instead of <polymon-qr-code-scanner> #76

Open valdrinkoshi opened 8 years ago

valdrinkoshi commented 8 years ago

<polymon-qr-code-scanner> in the ideal case doesn't require any click to scan the QR code, as the user just needs to point the camera. Unfortunately this doesn't work on sadfari, so we use an <input> there. Also, the scanner doesn't support features like tap to focus.

Instead of <polymon-qr-code-scanner>, we could use <input type="file" capture="camera" accept="image/*">. Once the input changes, we could trigger the QR code scanning & handle the success/error.

@cdata WDYT?