Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

[RN] Fix mirroring video views on platforms with native support

Saúl Ibarra Corretgé43c8fc6847fd
diff --git a/react/features/base/media/components/native/Video.js b/react/features/base/media/components/native/Video.js
index a933c7aa97..ccd4da5674 100644
--- a/react/features/base/media/components/native/Video.js
+++ b/react/features/base/media/components/native/Video.js
@@ -93,16 +93,16 @@ export class Video extends Component {
const mirror = this.props.mirror;
- // XXX RTCView doesn't currently support mirroring, even when
- // providing a transform style property. As a workaround, wrap the
- // RTCView inside another View and apply the transform style
- // property to that View instead.
+ // XXX RTCView may not support support mirroring, even when
+ // providing a transform style property (e.g. iOS) . As a
+ // workaround, wrap the RTCView inside another View and apply the
+ // transform style property to that View instead.
const mirrorWorkaround = mirror && !RTCVIEW_SUPPORTS_MIRROR;
// eslint-disable-next-line no-extra-parens
const video = (
<RTCView
- mirror = { !mirrorWorkaround }
+ mirror = { mirrorWorkaround ? false : mirror }
objectFit = { objectFit }
streamURL = { streamURL }
style = { style }