🐛(frontend) handle missing device errors gracefully

Handle the "requested device not found" error surfaced in production
when users arrive without a microphone or camera available on their
computer. Some devices also have a hardware button that physically
locks the microphone and makes it invisible to the browser.

Instead of failing loudly, surface a clearer state to the user so
they can still proceed with whatever device is actually available.
This commit is contained in:
lebaudantoine
2026-08-10 18:59:24 +02:00
committed by aleb_the_flash
parent 089db20a2e
commit 199c0297d4
14 changed files with 204 additions and 9 deletions
@@ -133,7 +133,8 @@ export const captureMediaEvent = async (
| 'media-device-error'
| 'media-acquisition'
| 'media-device-topology'
| 'media-device-success',
| 'media-device-success'
| 'device-not-found',
props: Record<string, unknown>
) => {
captureEvent(event, { ...props, ...(await deviceSnapshot()) })