-
Notifications
You must be signed in to change notification settings - Fork 334
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(FullDemo): hidden device ID dropdown
In some browsers the the dropdown to select a camera on the "full demo" is invisible: * In Firefox: when listing available cameras with `enumerateDevices` the `label` field seems to be an empty string. In that case the dropdown does not render because all selectable options are empty strings. Fixing that by also including the device ID. * On iOS: we can't invoke `enumerateDevices` before the user has given camera access permission. Otherwise we always get an empty array (no error). Fixing that by waiting for `QrcodeStream` to request permissions. Also added logging statements for all kinds of state transitions.
- Loading branch information
Showing
4 changed files
with
56 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters