NSString *url = @"http://www.youtube.com/watch?v=DqCxv6a5Iu0";
/*
NSString *url = @"http://www.youtube.com/watch?v=DqCxv6a5Iu0";
mp = [[MPMoviePlayerController alloc] initWithContentURL:[NSURL URLWithString:url]];
[mp play];*/
NSString *videoFilepath = [[NSBundle mainBundle] pathForResource:@"Movie" ofType:@"m4v"];
NSURL *videoURL = [NSURL fileURLWithPath:url];
MPMoviePlayerController *movie;
movie = [[MPMoviePlayerController alloc] initWithContentURL:videoURL];
[movie play];
为什么它不起作用
答案 0 :(得分:1)