Skip to content

feat(video): add rear/front camera switching with dynamic mirroring - #31

Merged
superezzdev merged 1 commit into
mainfrom
feat/camera-switching
Aug 28, 2026
Merged

feat(video): add rear/front camera switching with dynamic mirroring#31
superezzdev merged 1 commit into
mainfrom
feat/camera-switching

Conversation

@superezzdev

Copy link
Copy Markdown
Owner
  • Implement switchCamera in useVideoChat to toggle between user (front) and environment (rear) camera
  • Replace WebRTC video track dynamically across active peer connections via replaceTrack without interrupting audio
  • Dynamically mirror front camera while keeping rear camera unmirrored for natural viewing
  • Add camera switch button to floating control dock and PiP overlay
  • Track selfId in signaling matched payload and fix isAudioEnabledRef speaker detection closure

What does this PR do?

[1-2 sentences describing the change]

Related issue

Closes #

Type of change

  • Bug fix
  • New feature
  • Docs
  • Chore

Testing done

  • Tested locally
  • Tested in two tabs
  • No console errors
  • Mobile tested

Screenshots (if UI change)

[Drop screenshots here]

Checklist

  • My branch is up to date with main
  • I have not committed .env
  • Code follows project style

- Implement switchCamera in useVideoChat to toggle between user (front) and environment (rear) camera
- Replace WebRTC video track dynamically across active peer connections via replaceTrack without interrupting audio
- Dynamically mirror front camera while keeping rear camera unmirrored for natural viewing
- Add camera switch button to floating control dock and PiP overlay
- Track selfId in signaling matched payload and fix isAudioEnabledRef speaker detection closure
@vercel

vercel Bot commented Aug 28, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
openchat-ui Ready Ready Preview Aug 28, 2026 2:34pm

@coderabbitai

coderabbitai Bot commented Aug 28, 2026

Copy link
Copy Markdown

Important

  • 馃攳 Trigger review

This repository does not receive automatic reviews because it has fewer than 10 stars.

鈿欙笍 Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 0742a956-828b-4e71-aae8-ac8cf22864d1


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

鉂わ笍 Share

Comment @coderabbitai help to get the list of available commands.

@superezzdev
superezzdev merged commit d58dcff into main Aug 28, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant