Преглед изворни кода

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

master
Saúl Ibarra Corretgé пре 8 година
родитељ
комит
43c8fc6847
1 измењених фајлова са 5 додато и 5 уклоњено
  1. 5
    5
      react/features/base/media/components/native/Video.js

+ 5
- 5
react/features/base/media/components/native/Video.js Прегледај датотеку

93
 
93
 
94
             const mirror = this.props.mirror;
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
             const mirrorWorkaround = mirror && !RTCVIEW_SUPPORTS_MIRROR;
100
             const mirrorWorkaround = mirror && !RTCVIEW_SUPPORTS_MIRROR;
101
 
101
 
102
             // eslint-disable-next-line no-extra-parens
102
             // eslint-disable-next-line no-extra-parens
103
             const video = (
103
             const video = (
104
                 <RTCView
104
                 <RTCView
105
-                    mirror = { !mirrorWorkaround }
105
+                    mirror = { mirrorWorkaround ? false : mirror }
106
                     objectFit = { objectFit }
106
                     objectFit = { objectFit }
107
                     streamURL = { streamURL }
107
                     streamURL = { streamURL }
108
                     style = { style }
108
                     style = { style }

Loading…
Откажи
Сачувај