Where is it located locally? In a set of applications? If so, the URL is as follows:
NSURL *url = [NSURL URLWithString:[[NSBundle mainBundle] pathForResource:@"videoname" ofType:@"mov" inDirectory:@""]];
You can play most videos using Apple MediaPlayer.
Add a framework (MediaPlayer) to your project and import it into a .hfile and create an instance of MediaPlayer, like this:
#import <MediaPlayer/MediaPlayer.h>
MPMoviePlayerController *player = [[MPMoviePlayerController alloc] initWithContentURL:videoURL];
[[player view] setFrame:[self.view bounds]];
[self.view addSubview:[player view]];
[player play];
[player release];
MPMoviePlayerController documentation
Emil source
share