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
Since we use AVPlayerLayer (a subclass of CALayer), we need to set the frame
- (void)viewDidLayoutSubviews { [super viewDidLayoutSubviews]; self.avPlayerLayer.frame = self.movieContainerView.bounds; }