MPMoviePlayerViewController cannot play url
I am trying to play remote video with MPMoviePlayerViewController like this.
NSURL *url = [NSURL URLWithString: @"http://km.support.apple.com/library/APPLE/APPLECARE_ALLGEOS/HT1211/sample_iTunes.mov"]; self.mp = [[MPMoviePlayerViewController alloc] initWithContentURL:url]; [self.navigationController presentMoviePlayerViewControllerAnimated:self.mp];
I can play above url. However, I can't play my own video file url like this. It is running on local server and it is pointing to file location.
Is it client or server side problem? Shall I point to file location on server side or how shall I prepare?