Already someone answer this question in swift
MPMoviePlayerController' is deprecated in swift I want this in Objective-C.
I am getting this warning
'MPMoviePlayerController' is deprecated: first deprecated in iOS 9.0
Here is my code :
MPMoviePlayerController* _moviePlayer;
_moviePlayer = [[MPMoviePlayerController alloc] initWithContentURL:contentURL];
_moviePlayer.shouldAutoplay = YES;
[self.view addSubview:_moviePlayer.view];
[_moviePlayer setFullscreen:YES animated:YES];