It is possible. What you need to do is create a video preview layer, as you did before. Then follow these steps:
MPMoviePlayerController *player = [[MPMoviePlayerController alloc] initWithContentURL: myURL]; [player prepareToPlay]; [player.view setFrame: myView.bounds];
This should place the MPMoviePlayerController over the video preview layer. If you still get the error, let me know in the comments, you can do something wrong with AVFoundation .
source share