Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Beginner

IOS UIViewContentModeScaleAspectFit not work

Hi,

 How to make remoteView or localView to render fullscreen? "setFrame"、“setSize"、”contentMode=UIViewContentModeScaleAspectFit" not work!Could you provide a demo?

   Thanks for your reply!

 

 

Tags (2)
0 Kudos
1 Reply
Highlighted

Hi Somnus,

Hi Somnus,

I'm afraid you need to implement a custom view. You could refer to https://chromium.googlesource.com/external/webrtc/+/branch-heads/63/sdk/objc/Framework/Classes/Metal/RTCMTLVideoView.m for remote view(Metal).

0 Kudos