Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
Mario Danic 2019-01-29 03:40:08 +01:00
parent 189a73975b
commit 700cf860af

View File

@ -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(true);
pipVideoView.setMirror(false);
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