You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The tricky part, is that our call to getUserMedia is nested inside of react-qr-reader, which in turn is nested inside of @polkadot/react-qr.
So, we need to fork react-qr-reader to add a deviceId property to its QrReader component (which is imported as just Reader inside of @polkadot/react-qr).
Then, we need to fork @polkadot/react-qr to expose this new property on the QrScanAddress and QrScanSignature components.
Maybe we can even get our forks PR'd back upstream?
The text was updated successfully, but these errors were encountered:
It should be possible to get a list of video inputs using the enumerateDevices api.
With that list, we can show a dropdown when
# of video inputs > 1
.If the user selects a device with the dropdown, we can use the
deviceId
parameter togetUserMedia
:The tricky part, is that our call to
getUserMedia
is nested inside ofreact-qr-reader
, which in turn is nested inside of@polkadot/react-qr
.So, we need to fork
react-qr-reader
to add adeviceId
property to its QrReader component (which is imported as justReader
inside of@polkadot/react-qr
).Then, we need to fork
@polkadot/react-qr
to expose this new property on theQrScanAddress
andQrScanSignature
components.Maybe we can even get our forks PR'd back upstream?
The text was updated successfully, but these errors were encountered: