瀏覽代碼

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

j8
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…
取消
儲存