Set content mode for video windows to scaleAspectFill

This commit is contained in:
Christophe Deschamps 2022-03-25 07:44:33 +01:00
parent 5adf3d8a3f
commit 59e2343072
2 changed files with 2 additions and 2 deletions

View file

@ -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()

View file

@ -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