I\'m switching from MPMoviePlayerController to AVPlayer as I need finer grained control over video swapping. The .mov file I was playi
MPMoviePlayerController
AVPlayer
.mov
Found out it was a result of using AutoLayout. In the viewDidLoad the self.playerContainer.bounds is a CGRectZero.
AutoLayout
viewDidLoad
self.playerContainer.bounds
CGRectZero
I had to assign the playerLayer frame in the viewDidAppear to match the playerContainer.
viewDidAppear