flaky-beard-91685
09/16/2025, 6:50 AMtall-airline-16756
09/16/2025, 6:50 AMtall-airline-16756
09/16/2025, 6:51 AMrapid-judge-7554
11/05/2025, 6:29 AMtall-airline-16756
11/05/2025, 6:30 AMTrackSelector. To mirror the self-view in React, apply a CSS flip to the rendered video element (no special LiveKit API needed).
• If you render a VideoTrack (from @livekit/components-react):
◦ Add a style when the track is local: style={{ transform: 'scaleX(-1)' }}
Example:
<VideoTrack trackRef={trackRef} style={{ transform: isLocal ? 'scaleX(-1)' : undefined }} />
• If you attach to a plain `<video>`:
<video ref={ref} style={{ transform: 'scaleX(-1)' }} />
This mirrors only the view; it doesn’t change the actual stream. For context, the web demo uses the same approach with CSS transforms scale(-1, 1).
If you share how you’re rendering tracks (using @livekit/components-react, manual attach, or a custom TrackSelector flow), I can tailor the snippet.
Sources: Web Applications & Integration Examples | livekit/livekit_composite | DeepW... | Expo quickstart | LiveKit docs | Subscribing to tracks | LiveKit docs | React quickstart | LiveKit docsrapid-judge-7554
11/05/2025, 6:34 AM