Skip to content

Improve camera switching iteration#23

Merged
bm12 merged 1 commit intomasterfrom
codex/refactor-switchcamera-logic-in-uselocalmedia
Sep 22, 2025
Merged

Improve camera switching iteration#23
bm12 merged 1 commit intomasterfrom
codex/refactor-switchcamera-logic-in-uselocalmedia

Conversation

@bm12
Copy link
Copy Markdown
Owner

@bm12 bm12 commented Sep 22, 2025

Summary

  • iterate through every remaining video device when switching cameras and retry fallbacks only after devices fail
  • treat fallback attempts that reopen the same camera as no-ops and continue searching
  • remember device IDs that throw NotReadableError so future switches skip them

Testing

  • npm --prefix frontend run lint

https://chatgpt.com/codex/tasks/task_e_68d1cc51f498832a82f23ce4cfaa4a28

@bm12 bm12 merged commit 31870f2 into master Sep 22, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant