Skip to content

Comments

fix: relax device constraints on NotFoundError DOMException#1680

Merged
myandrienko merged 1 commit intomainfrom
fix/device-not-found
Feb 12, 2025
Merged

fix: relax device constraints on NotFoundError DOMException#1680
myandrienko merged 1 commit intomainfrom
fix/device-not-found

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