Pārlūkot izejas kodu

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 gadus atpakaļ
vecāks
revīzija
6d0a07a4cd
1 mainītis faili ar 2 papildinājumiem un 3 dzēšanām
  1. 2
    3
      react/features/base/tracks/actions.js

+ 2
- 3
react/features/base/tracks/actions.js Parādīt failu

274
             && track.isLocal()
274
             && track.isLocal()
275
             && track.isVideoTrack()
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
             // CAMERA_FACING_MODE as well, it's defined by lib-jitsi-meet. Note
279
             // CAMERA_FACING_MODE as well, it's defined by lib-jitsi-meet. Note
280
             // though that the type of the value on the right side of the
280
             // though that the type of the value on the right side of the
281
             // equality check is defined by jitsi-meet-react. The type
281
             // equality check is defined by jitsi-meet-react. The type
282
             // definitions are surely compatible today but that may not be the
282
             // definitions are surely compatible today but that may not be the
283
             // case tomorrow.
283
             // case tomorrow.
284
             && track.getCameraFacingMode() === CAMERA_FACING_MODE.USER
284
             && track.getCameraFacingMode() === CAMERA_FACING_MODE.USER
285
-            && !track.isScreenSharing()
286
     );
285
     );
287
 }
286
 }
288
 
287
 

Notiek ielāde…
Atcelt
Saglabāt