I would like to be able to force an AVPlayerView to have a 16:9 aspect ratio, even if the user decides to resize the window.
Right now I have it so that my view opens automatically with a 16:9 ratio (800x450)
Screenshot: https://i.stack.imgur.com/xOKg1.jpg
the problem is, if the user decides to resize the window, the aspect ratio can get skewed and would result in large black rectangles around the video.
Screenshot: https://i.stack.imgur.com/T6Iqt.jpg
Any possible ways of effectively keeping/forcing the aspect ratio in swift?