Skip to content

Fix camera position across full econnects#962

Draft
pblazej wants to merge 1 commit intomainfrom
blaze/fix-camera-reconnect-position
Draft

Fix camera position across full econnects#962
pblazej wants to merge 1 commit intomainfrom
blaze/fix-camera-reconnect-position

Conversation

@pblazej
Copy link
Copy Markdown
Contributor

@pblazej pblazej commented Apr 10, 2026

No description provided.

After a full reconnect, the camera could switch to the wrong device and
switchCameraPosition() would stop working. Two issues in CameraCapturer:

1. options.position was never updated after device selection via fallback,
   so reconnects re-ran fallback logic instead of re-selecting the same camera.
2. The position property returned .unspecified when device was nil (between
   stop/start), causing switchCameraPosition() to always fail after reconnect.

Fix: persist the resolved device position in options after startCapture, and
fall back to options.position instead of .unspecified when device is nil.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown

⚠️ This PR does not contain any files in the .changes directory.

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