iOS視頻播放
//#import MediaPlayer/MediaPlayer.h
- (IBAction)play:(id)sender {
//NSString *path = [[NSBundle mainBundle] pathForResource:@"3" ofType:@"mp4"];
NSString *path = @"http://127.0.0.1/net/Movie/梁靜茹.mp4";
path = [path stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
MPMoviePlayerViewController *moviePlayerVC = [[MPMoviePlayerViewController alloc] initWithContentURL:[NSURL URLWithString:path]];
[self presentViewController:moviePlayerVC animated:YES completion:nil];
}