mirror of
https://github.com/nextcloud/talk-android
synced 2025-06-19 19:49:33 +01:00
Scaling magic
Signed-off-by: Mario Danic <mario@lovelyhq.com>
This commit is contained in:
parent
66903b77db
commit
39eafa3065
@ -49,6 +49,7 @@ import org.webrtc.MediaConstraints;
|
||||
import org.webrtc.MediaStream;
|
||||
import org.webrtc.PeerConnection;
|
||||
import org.webrtc.PeerConnectionFactory;
|
||||
import org.webrtc.RendererCommon;
|
||||
import org.webrtc.SessionDescription;
|
||||
import org.webrtc.SurfaceViewRenderer;
|
||||
import org.webrtc.VideoCapturer;
|
||||
@ -177,6 +178,10 @@ public class CallActivity extends AppCompatActivity {
|
||||
pipVideoView.setZOrderMediaOverlay(true);
|
||||
fullScreenVideoView.init(rootEglBase.getEglBaseContext(), null);
|
||||
fullScreenVideoView.setZOrderMediaOverlay(true);
|
||||
fullScreenVideoView.setEnableHardwareScaler(true);
|
||||
pipVideoView.setEnableHardwareScaler(true);
|
||||
pipVideoView.setScalingType(RendererCommon.ScalingType.SCALE_ASPECT_FIT);
|
||||
fullScreenVideoView.setScalingType(RendererCommon.ScalingType.SCALE_ASPECT_FILL);
|
||||
}
|
||||
|
||||
public void start() {
|
||||
|
Loading…
Reference in New Issue
Block a user