The scanner read frames at 480p, which is thin for the web UI's dense pairing QR (1024px, low error correction, a two-module quiet zone), and it rejected a Y plane whose last row has no padding even though some cameras return exactly rowStride * (height - 1) + width bytes — on those devices every frame was dropped, so nothing ever reacted. Frames are now requested at 720p and fall back to 480p only when the device refuses the higher analysis size; a stream that fails to start reports an error instead of leaving a silent preview. Decoding runs with zxing's tryHarder hint and retries an inverted frame for light-on-dark codes. The screen also reports what it sees: resolution/format and a live "frames scanned / decode attempts" line, a one-time log of the first frame's planes, row stride and byte count, a no-frames hint after four seconds, and a "move closer" hint when frames decode but no QR is found. 0.4.6 (406).
3 lines
100 B
Dart
3 lines
100 B
Dart
/// The app version sent to the server in pairing and relay handshakes.
|
|
const appVersion = '0.4.6';
|