Open acorn1010 opened 4 years ago
I think we have a similar issue in that our component isn't disposed or somehow keeps the device binding alive. On ubuntu this causes our webcam to not reappear after the view with the initial webcam component has been closed.
Please follow the general troubleshooting steps first:
Bug reports:
Example to reproduce the failure (in TypeScript). I encountered this on Firefox Browser Developer 80.0b1 (64-bit).
This fails because the
navigator.mediaDevices#mediaDevices
method can throw a'NotReadableError'
if the device is busy being accessed by another<Webcam />
instance. A few attempts with a randomized exponential backoff in#requestUserMedia
should fix this. Using a singleton factory for synchronously callingnavigator.mediaDevices#getUserMedia
would result in less failed attempts, but would also take longer to code.