mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-21 12:39:58 +01:00
parent
50fdb7c49a
commit
b1356ff0d1
@ -431,7 +431,6 @@ public class CallController extends BaseController {
|
|||||||
cameraSwitchButton.setVisibility(View.GONE);
|
cameraSwitchButton.setVisibility(View.GONE);
|
||||||
}
|
}
|
||||||
|
|
||||||
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
|
||||||
@ -576,6 +575,7 @@ 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(true);
|
||||||
return videoCapturer;
|
return videoCapturer;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -590,6 +590,7 @@ 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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -730,7 +731,8 @@ public class CallController extends BaseController {
|
|||||||
if (cameraVideoCapturer != null) {
|
if (cameraVideoCapturer != null) {
|
||||||
cameraVideoCapturer.switchCamera(new CameraVideoCapturer.CameraSwitchHandler() {
|
cameraVideoCapturer.switchCamera(new CameraVideoCapturer.CameraSwitchHandler() {
|
||||||
@Override
|
@Override
|
||||||
public void onCameraSwitchDone(boolean b) {
|
public void onCameraSwitchDone(boolean currentCameraIsFront) {
|
||||||
|
pipVideoView.setMirror(currentCameraIsFront);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user