Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: relax device constraints on NotFoundError DOMException #1680

Merged
merged 1 commit into from
Feb 12, 2025

Conversation

myandrienko
Copy link
Contributor

Browsers react differently to getUserMedia requests with constraints that cannot be satisfied. In some cases, Firefox throws a DOMException called NotFoundError. We should handle it in the same way we handle over-constrained requests: fallback to default device.

@myandrienko myandrienko merged commit c682908 into main Feb 12, 2025
19 checks passed
@myandrienko myandrienko deleted the fix/device-not-found branch February 12, 2025 14:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants