From 59e23430720f223bf7653ccd5ebf84dd8539649e Mon Sep 17 00:00:00 2001 From: Christophe Deschamps Date: Fri, 25 Mar 2022 07:44:33 +0100 Subject: [PATCH] Set content mode for video windows to scaleAspectFill --- .../Swift/Conference/Views/ConferenceWaitingRoomFragment.swift | 2 +- .../Swift/Voip/ViewModels/ConferenceParticipantDeviceData.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Classes/Swift/Conference/Views/ConferenceWaitingRoomFragment.swift b/Classes/Swift/Conference/Views/ConferenceWaitingRoomFragment.swift index c2d1d6f12..f3da22735 100644 --- a/Classes/Swift/Conference/Views/ConferenceWaitingRoomFragment.swift +++ b/Classes/Swift/Conference/Views/ConferenceWaitingRoomFragment.swift @@ -145,7 +145,7 @@ import linphonesw // localVideo view localVideo.layer.cornerRadius = center_view_corner_radius localVideo.clipsToBounds = true - localVideo.contentMode = .scaleAspectFit + localVideo.contentMode = .scaleAspectFill localVideo.backgroundColor = .black self.view.addSubview(localVideo) localVideo.matchParentSideBorders(insetedByDx: content_inset).alignAbove(view:buttonsView,withMargin:SharedLayoutConstants.buttons_bottom_margin).alignUnder(view: subject,withMargin: common_margin).done() diff --git a/Classes/Swift/Voip/ViewModels/ConferenceParticipantDeviceData.swift b/Classes/Swift/Voip/ViewModels/ConferenceParticipantDeviceData.swift index 960dd961d..d0d3a02d6 100644 --- a/Classes/Swift/Voip/ViewModels/ConferenceParticipantDeviceData.swift +++ b/Classes/Swift/Voip/ViewModels/ConferenceParticipantDeviceData.swift @@ -92,7 +92,7 @@ class ConferenceParticipantDeviceData { func setVideoView(view:UIView) { Log.i("[Conference Participant Device] Setting textureView \(view) for participant \(participantDevice)") - view.contentMode = .scaleAspectFit + view.contentMode = .scaleAspectFill if (isMe) { core.usePreviewWindow(yesno: false) core.nativePreviewWindow = view