add comments

pull/560/head
Ryan Zhao 3 years ago
parent 80b18f0715
commit 65d78533c9

@ -55,7 +55,7 @@ class RemoteVideoView: RTCMTLVideoView {
self.videoContentMode = .scaleAspectFit self.videoContentMode = .scaleAspectFit
} }
} }
// if not a mobile ratio, always use .scaleAspectFit
if frameRatio < 1.5 { if frameRatio < 1.5 {
self.videoContentMode = .scaleAspectFit self.videoContentMode = .scaleAspectFit
} }

Loading…
Cancel
Save