mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-21 04:29:45 +01:00
parent
50fdb7c49a
commit
b1356ff0d1
@ -431,7 +431,6 @@ public class CallController extends BaseController {
|
||||
cameraSwitchButton.setVisibility(View.GONE);
|
||||
}
|
||||
|
||||
pipVideoView.setMirror(true);
|
||||
pipVideoView.init(rootEglBase.getEglBaseContext(), null);
|
||||
pipVideoView.setZOrderMediaOverlay(true);
|
||||
// disabled because it causes some devices to crash
|
||||
@ -576,6 +575,7 @@ public class CallController extends BaseController {
|
||||
VideoCapturer videoCapturer = enumerator.createCapturer(deviceName, null);
|
||||
|
||||
if (videoCapturer != null) {
|
||||
pipVideoView.setMirror(true);
|
||||
return videoCapturer;
|
||||
}
|
||||
}
|
||||
@ -590,6 +590,7 @@ public class CallController extends BaseController {
|
||||
VideoCapturer videoCapturer = enumerator.createCapturer(deviceName, null);
|
||||
|
||||
if (videoCapturer != null) {
|
||||
pipVideoView.setMirror(false);
|
||||
return videoCapturer;
|
||||
}
|
||||
}
|
||||
@ -730,7 +731,8 @@ public class CallController extends BaseController {
|
||||
if (cameraVideoCapturer != null) {
|
||||
cameraVideoCapturer.switchCamera(new CameraVideoCapturer.CameraSwitchHandler() {
|
||||
@Override
|
||||
public void onCameraSwitchDone(boolean b) {
|
||||
public void onCameraSwitchDone(boolean currentCameraIsFront) {
|
||||
pipVideoView.setMirror(currentCameraIsFront);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Loading…
Reference in New Issue
Block a user