🐛(frontend) handle Firefox/Windows AbortError on device start

Some versions of Firefox on Windows do not raise the
`NotReadableError` that LiveKit expects when the camera or
microphone fails to start. Instead, they surface an `AbortError`
with a message explaining the browser could not start the video or
microphone input.

This case was observed in PostHog error tracking and was not
handled, so users hit an unhelpful failure state.

Detect that specific `AbortError` and route it through the same
device-in-use / not-readable handling as the standard error, so
users get a clear explanation.
This commit is contained in:
lebaudantoine
2026-08-22 22:02:37 +02:00
parent 54e9747350
commit 2e31947bad
6 changed files with 31 additions and 5 deletions
+1
View File
@@ -33,6 +33,7 @@ and this project adheres to
- 🐛(frontend) hoist mute confirmation dialog to VideoConference level
- 🐛(frontend) fix joined notification tile no longer rendering properly
- 🐛(frontend) handle device-in-use errors on Chrome / Windows 10
- 🐛(frontend) handle Firefox/Windows AbortError on device start
## [1.27.0] - 2026-08-14