ios: RTCMTLVideoView resizes outside frame bounds

218 views
Skip to first unread message

jee...@gmail.com

unread,
Mar 12, 2021, 7:29:03 AM3/12/21
to discuss-webrtc
In my app, I set the RTCMTLVideoView.frame during the initialisation. However, RTCMTLVideoView resizes outside the frame bounds to match the video aspect ratio. This happens both in fill and fit mode. 

To debug, I checked the RTCMTLVideoView frame and bounds in didChangeVideoSize but they are same as set during the initialisation. 

This is not a problem when I use RTCEAGLVideoView, but RTCEAGLVideoView does not have videoContentMode and possibly that's why it is no resizing and hence not a problem there. 

Any solution?


long

unread,
Jun 10, 2024, 9:54:13 AMJun 10
to discuss-webrtc
Hi, 
I'm facing the same problem. The WebRTC version I am using is 114.5735.09. 
Have someone solved this problem so far? Hope I can get your help!

thank you!
Reply all
Reply to author
Forward
0 new messages