mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-05-06 21:33:08 +00:00
Set content mode for video windows to scaleAspectFill
This commit is contained in:
parent
5adf3d8a3f
commit
59e2343072
2 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue