Skip to content

[FCE-4028] Add a camera switch to the example. - #5

Merged
graszka22 merged 2 commits into
mainfrom
graszka22/camera-flip
Oct 28, 2026
Merged

graszka22 merged 2 commits into
mainfrom
graszka22/camera-flip

Conversation

@graszka22

Copy link
Copy Markdown
Contributor

The same published track can use the front or back camera, and the local tile stays mirrored only for the front camera.

@graszka22
graszka22 requested a review from Magmusacy October 27, 2026 10:26
@linear

linear Bot commented Oct 27, 2026 •

Copy link
Copy Markdown

@Magmusacy Magmusacy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, but when switching on android (pixel 7) i see that before the camera is switched to rear I briefly see my front camera become mirrored

Comment thread SPEC.md Resolved
@graszka22
graszka22 force-pushed the graszka22/camera-flip branch from eb7e2ee to 2df1824 Compare October 27, 2026 19:53
@graszka22
graszka22 requested a review from Magmusacy October 28, 2026 11:09

@Magmusacy Magmusacy left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good stuff

graszka22 and others added 2 commits October 28, 2026 12:13
The same published track can use the front or back camera, and the local tile stays mirrored only for the front camera.

Co-authored-by: Cursor <cursoragent@cursor.com>
RTCView, cameraDevices, and selectCamera follow the React Native SDK, so the example mirrors and switches through the SDK instead of flutter_webrtc. On Android the switch pauses drawing, changes the camera, then sets the mirror before drawing resumes.

Co-authored-by: Cursor <cursoragent@cursor.com>
@graszka22
graszka22 force-pushed the graszka22/camera-flip branch from 2df1824 to 4d79956 Compare October 28, 2026 11:18
@graszka22
graszka22 merged commit 4da3827 into main Oct 28, 2026
2 checks passed
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.

2 participants