Skip to content

fix: keep device changes during startup and surface failed device queries - #510

Merged
devopvoid merged 1 commit into
mainfrom
fix/device-snapshot-and-errors
Nov 1, 2026
Merged

devopvoid merged 1 commit into
mainfrom
fix/device-snapshot-and-errors

Conversation

@devopvoid

Copy link
Copy Markdown
Owner
  • DevicesImpl registers its listener before the first snapshot and serializes the reads, so a device change during startup is no longer lost.
  • Only the native layer's plain Error (no audio system, etc.) still yields an empty list or per-call reads. Other query failures throw a MediaException from cameras()/microphones()/speakers(), a failed watch is reported, and JVM errors pass through.
  • switchDevice keeps the main failure and attaches the refusal and restart failures as suppressed instead of one hiding another.

…ries

Register the device listener before the first snapshot and serialize the
reads, so a change during startup is no longer lost. Only the native layer's
plain Error counts as "no such devices"; other query failures throw a
MediaException, and JVM errors pass through. switchDevice keeps the refusal
and restart failures as suppressed instead of letting one hide another.
@devopvoid
devopvoid merged commit cdcbb34 into main Nov 1, 2026
25 checks passed
@devopvoid
devopvoid deleted the fix/device-snapshot-and-errors branch November 1, 2026 13:06
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