浏览代码

Fix #432

Signed-off-by: Mario Danic <mario@lovelyhq.com>
Mario Danic 6 年之前
父节点
当前提交
700cf860af
共有 1 个文件被更改,包括 1 次插入4 次删除
  1. 1 4
      app/src/main/java/com/nextcloud/talk/controllers/CallController.java

+ 1 - 4
app/src/main/java/com/nextcloud/talk/controllers/CallController.java

@@ -431,8 +431,7 @@ public class CallController extends BaseController {
                 cameraSwitchButton.setVisibility(View.GONE);
                 cameraSwitchButton.setVisibility(View.GONE);
             }
             }
 
 
-            // setting this to true because it's not shown by default
-            pipVideoView.setMirror(false);
+            pipVideoView.setMirror(true);
             pipVideoView.init(rootEglBase.getEglBaseContext(), null);
             pipVideoView.init(rootEglBase.getEglBaseContext(), null);
             pipVideoView.setZOrderMediaOverlay(true);
             pipVideoView.setZOrderMediaOverlay(true);
             // disabled because it causes some devices to crash
             // disabled because it causes some devices to crash
@@ -591,7 +590,6 @@ public class CallController extends BaseController {
                 VideoCapturer videoCapturer = enumerator.createCapturer(deviceName, null);
                 VideoCapturer videoCapturer = enumerator.createCapturer(deviceName, null);
 
 
                 if (videoCapturer != null) {
                 if (videoCapturer != null) {
-                    pipVideoView.setMirror(false);
                     return videoCapturer;
                     return videoCapturer;
                 }
                 }
             }
             }
@@ -733,7 +731,6 @@ public class CallController extends BaseController {
             cameraVideoCapturer.switchCamera(new CameraVideoCapturer.CameraSwitchHandler() {
             cameraVideoCapturer.switchCamera(new CameraVideoCapturer.CameraSwitchHandler() {
                 @Override
                 @Override
                 public void onCameraSwitchDone(boolean b) {
                 public void onCameraSwitchDone(boolean b) {
-                    pipVideoView.setMirror(false);
                 }
                 }
 
 
                 @Override
                 @Override