listVideoInputDevices is not a function #6

Closed
opened 2026-05-20 21:28:06 +00:00 by shawn · 0 comments
Owner

Problem

ZXing.BrowserMultiFormatReader.listVideoInputDevices() called as static method but it's an instance method.

Fix

Call codeReader.listVideoInputDevices() on the reader instance. Wrapped in try/catch with null fallback so decodeFromVideoDevice picks the default camera if enumeration fails.

Commits

## Problem `ZXing.BrowserMultiFormatReader.listVideoInputDevices()` called as static method but it's an instance method. ## Fix Call `codeReader.listVideoInputDevices()` on the reader instance. Wrapped in try/catch with null fallback so `decodeFromVideoDevice` picks the default camera if enumeration fails. ## Commits - 8cc5633
shawn closed this issue 2026-05-20 21:28:07 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: shawn/canteen-asset-tracker#6