Created
February 20, 2019 16:44
-
-
Save pgpt10/6ce2ea052a3f1c0d5a20e3687d42c5f5 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let playerLayer = AVPlayerLayer(player: player) | |
playerLayer.frame = self.videoView.bounds //bounds of the view in which AVPlayer should be displayed | |
playerLayer.videoGravity = .resizeAspect |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment