Ver código fonte

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

master
Saúl Ibarra Corretgé 8 anos atrás
pai
commit
43c8fc6847

+ 5
- 5
react/features/base/media/components/native/Video.js Ver arquivo

@@ -93,16 +93,16 @@ export class Video extends Component {
93 93
 
94 94
             const mirror = this.props.mirror;
95 95
 
96
-            // XXX RTCView doesn't currently support mirroring, even when
97
-            // providing a transform style property. As a workaround, wrap the
98
-            // RTCView inside another View and apply the transform style
99
-            // property to that View instead.
96
+            // XXX RTCView may not support support mirroring, even when
97
+            // providing a transform style property (e.g. iOS) . As a
98
+            // workaround, wrap the RTCView inside another View and apply the
99
+            // transform style property to that View instead.
100 100
             const mirrorWorkaround = mirror && !RTCVIEW_SUPPORTS_MIRROR;
101 101
 
102 102
             // eslint-disable-next-line no-extra-parens
103 103
             const video = (
104 104
                 <RTCView
105
-                    mirror = { !mirrorWorkaround }
105
+                    mirror = { mirrorWorkaround ? false : mirror }
106 106
                     objectFit = { objectFit }
107 107
                     streamURL = { streamURL }
108 108
                     style = { style }

Carregando…
Cancelar
Salvar