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.
This commit is contained in:
Lyubo Marinov 2017-04-05 00:13:56 -05:00
parent e0b829f92f
commit 6d0a07a4cd
1 changed files with 2 additions and 3 deletions

View File

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