Improve user experience by ensuring the video orientation matches user expectations. The change prevents mirroring for local back camera video streams, making the display more intuitive, especially in contexts where mirroring could confuse or degrade the viewing experience.
๐ Implementation details
Modified the StreamVideoRenderer class to detect if a video stream is local and from the back camera. If these conditions are met, the video is not mirrored. This involved checking the videoTrack's mediaConstraints.facingMode against FacingMode.environment to identify back camera usage and adjusting the mirror variable accordingly.
๐จ UI Changes
Before
After
๐งช Testing
Test with front camera to ensure existing mirroring behavior remains unaffected.
Switch to the back camera and confirm that mirroring is disabled.
This change targets the video rendering behavior, requiring live testing with video streams from both front and back cameras to validate the implementation.
๐ฏ Goal
Improve user experience by ensuring the video orientation matches user expectations. The change prevents mirroring for local back camera video streams, making the display more intuitive, especially in contexts where mirroring could confuse or degrade the viewing experience.
๐ Implementation details
Modified the
StreamVideoRenderer
class to detect if a video stream is local and from the back camera. If these conditions are met, the video is not mirrored. This involved checking thevideoTrack
'smediaConstraints.facingMode
againstFacingMode.environment
to identify back camera usage and adjusting themirror
variable accordingly.๐จ UI Changes
๐งช Testing
This change targets the video rendering behavior, requiring live testing with video streams from both front and back cameras to validate the implementation.
โ๏ธ Contributor Checklist
โ๏ธ Reviewer Checklist