When i tried a video saved on the Xcode project , it worked.
then when i changed it with a url , it always returns this error :

```
 _itemFailedToPlayToEnd: {
kind = 1;
new = 2;
old = 0;

```

}

Here's my code :

```
 NSURL *url = [NSURL fileURLWithPath:@"https://m.youtube.com/watch?v=9MNAeGWd_04"];

movieController = [[MoviePlayerVC alloc]initWithContentURL:url];
movieController.view.frame = self.view.bounds;
[movieController.moviePlayer setShouldAutoplay:YES];

[movieController.moviePlayer setControlStyle:MPMovieControlStyleFullscreen];
[[movieController view] setTransform:CGAffineTransformMakeRotation(M_PI / 2)];
[self presentViewController:movieController animated:NO completion:nil];
[[NSNotificationCenter defaultCenter] addObserver:self
                                         selector:@selector(playbackStateDidChange:)
                                             name:@"MPAVControllerPlaybackStateChangedNotification"
                                           object:nil];

```