listVideoInputDevices is not a function #6
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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 sodecodeFromVideoDevicepicks the default camera if enumeration fails.Commits
8cc5633