To add to the long answer,
You can disable the video player with rejectViewControllerAnimated function in itemDidFinishPlaying function. You should also remember to delete the observer that you created after you are done.
-(void)startPlaybackForItemWithURL:(NSURL*)url {
AVPlayerItem* playerItem = [AVPlayerItem playerItemWithURL:url];
[[NSNotificationCenter defaultCenter]
addObserver:self
selector:@selector(itemDidFinishPlaying:)
name:AVPlayerItemDidPlayToEndTimeNotification object:playerItem];
[player play]
}
-(void)itemDidFinishPlaying:(NSNotification *) notification {
[self dismissViewControllerAnimated:YES completion:Nil]
[[NSNotificationCenter defaultCenter]
removeObserver:self
name:AVPlayerItemDidPlayToEndTimeNotification
object:Nil];
}