浏览代码

Remove unnecessary source code

Lib-jitsi-meet does not really implement isScreenSharing. Besides,
getCameraFacingMode will already make sure that the video track does not
represent a desktop stream.
j8
Lyubo Marinov 8 年前
父节点
当前提交
6d0a07a4cd
共有 1 个文件被更改,包括 2 次插入3 次删除
  1. 2
    3
      react/features/base/tracks/actions.js

+ 2
- 3
react/features/base/tracks/actions.js 查看文件

@@ -274,15 +274,14 @@ function _shouldMirror(track) {
274 274
             && track.isLocal()
275 275
             && track.isVideoTrack()
276 276
 
277
-            // XXX Type of the return value of
278
-            // JitsiLocalTrack#getCameraFacingMode() happens to be named
277
+            // XXX The type of the return value of
278
+            // JitsiLocalTrack's getCameraFacingMode happens to be named
279 279
             // CAMERA_FACING_MODE as well, it's defined by lib-jitsi-meet. Note
280 280
             // though that the type of the value on the right side of the
281 281
             // equality check is defined by jitsi-meet-react. The type
282 282
             // definitions are surely compatible today but that may not be the
283 283
             // case tomorrow.
284 284
             && track.getCameraFacingMode() === CAMERA_FACING_MODE.USER
285
-            && !track.isScreenSharing()
286 285
     );
287 286
 }
288 287
 

正在加载...
取消
保存