twilio / twilio-video-app-ios

A collaboration application built with the Twilio Video iOS SDK
Apache License 2.0
248 stars 54 forks source link

Rounded VideoView #183

Closed HakanSAYAR closed 2 years ago

HakanSAYAR commented 2 years ago

Description

Hi Devs, I'm developing a P2P&Group video call application using your SDK. I set the videoView's contentMode to .scaleAspectFit. But I got black lines on left and right or top and bottom depends on video frames that I get receiving. How can I get videoView filled with video feed by having the same aspect ratio or by setting the content mode on videoView?

Versions

Video app version: 3.7 iOS version: 15.2.1 Device: iPhone 7 Xcode version: 13

timrozum commented 2 years ago

Hi @HakanSAYAR, I think .scaleAspectFill should provide the behavior you need.

https://developer.apple.com/documentation/uikit/uiview/contentmode/scaleaspectfill

timrozum commented 2 years ago

Going to close this out but let me know if you have more questions.