Friends I have an image saved in SQLite, I have read the image and put it in an NSData variable
I now need to give play in this NSData but the component expects a URL
NSURL *urlVideoFile = [NSURL fileURLWithPath:stringVideoPath];
//NSAssert(urlVideoFile, @"Expected not nil video url");
_playerViewController = [[AVPlayerViewController alloc] init];
_playerViewController.player = [AVPlayer playerWithURL:**urlVideoFile**];
_playerViewController.view.frame = self.view.bounds;
_playerViewController.showsPlaybackControls = YES;
[self.view addSubview:_playerViewController.view];
self.view.autoresizesSubviews = YES;
Thanks,