Skip to content

Classify getUserMedia failures instead of always reporting denial#156

Merged
pratikbodkhe merged 1 commit into
mainfrom
fix/mic-error-classification
Jul 4, 2026
Merged

Classify getUserMedia failures instead of always reporting denial#156
pratikbodkhe merged 1 commit into
mainfrom
fix/mic-error-classification

Conversation

@pratikbodkhe

Copy link
Copy Markdown
Contributor

The in-meeting recorder caught every getUserMedia rejection and displayed "Microphone access was denied", so a device held by another app (NotReadableError, e.g. Zoom or the Minutia companion) or a missing device (NotFoundError) was reported as a permission problem the user could not resolve. Live testing hit exactly this: the message persisted after mic access was granted. New pure micErrorMessage maps the DOMException name to an actionable message (denied / in use / not found / generic), with contract tests in verify-audio-capture.

The recorder caught every getUserMedia rejection and showed 'Microphone
access was denied', so a busy device (NotReadableError, e.g. another app
or the companion holding the mic) or a missing one (NotFoundError) read
as a permission problem the user could not fix. Classify by DOMException
name and give an actionable message per case.
@pratikbodkhe pratikbodkhe merged commit 51ce758 into main Jul 4, 2026
18 checks passed
@pratikbodkhe pratikbodkhe deleted the fix/mic-error-classification branch July 4, 2026 13:09
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.

1 participant