Repository navigation
[FCE-4028] Add a camera switch to the example. - #5
Merged
Merged
Conversation
Magmusacy
approved these changes
Oct 27, 2026
Magmusacy
left a comment
Contributor
There was a problem hiding this comment.
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
Magmusacy
reviewed
Oct 27, 2026
graszka22
force-pushed
the
graszka22/camera-flip
branch
from
October 27, 2026 19:53
eb7e2ee to
2df1824
Compare
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
force-pushed
the
graszka22/camera-flip
branch
from
October 28, 2026 11:18
2df1824 to
4d79956
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The same published track can use the front or back camera, and the local tile stays mirrored only for the front camera.