i have a problem in my app
i'm downloading a zip in my app and adding it on NSDocumentDirectory, this zip have some images and a movie.
I can access and show all images, but i can't play the video
if my video is on bundle directory i use this code and i can play the video
the code: NSString *path = [[NSBundle mainBundle] pathForResource: @"videoName" ofType: @"mov"]; MPMoviePlayerViewController *viewController = [[MPMoviePlayerViewController alloc] initWithContentURL:[NSURL fileURLWithPath:path]]; [self presentMoviePlayerViewControllerAnimated:viewController];
it's work if my video is on bundle directory, but i tried many ways to play the video from NSDocumentDirectory.
Anyone can help me?
Thanks.