I have the following method playing video on AVMediaPlayerController
-(void)sendRequestForVideo
{
NSString*VideoStr=@"http://www.ebookfrenzy.com/ios_book/movie/movie.mov";
NSURL *url = [NSURL URLWithString:VideoStr];
AVPlayer *player = [AVPlayer playerWithURL:url];
AVPlayerViewController *controller = [[AVPlayerViewController alloc]init];
controller.player = player;
[self addChildViewController:controller];
[self.view addSubview:controller.view];
controller.view.frame = self.view.frame;
[player play];
}
I want to cache the video played here like we cache image but I am not able to cache it and not understanding how should I move to achieve this thing as there are so many things relted to AVfoundation frammework .Kindly give some suggestions that how vides can be stored in nsurl cache .Thanks in advance!