我很困惑:
MPMoviePlayerViewController 和 MPMoviePlayerController
在 ios6 本地播放视频的最佳方式是什么?
这是我的代码
NSURL * url = [NSURL fileURLWithPath: [[NSBundle mainBundle] pathForResource: @ "17" OfType: @ "mov"]];
MoviePlayer = [[MPMoviePlayerViewController alloc]
initWithContentURL: url];
[self presentMoviePlayerViewControllerAnimated: MoviePlayer];
[moviePlayer.moviePlayer play];
[[NSNotificationCenter defaultCenter] addObserver: self selector: @ selector (moviePlayerPlaybackStateChanged :) name: MPMoviePlayerPlaybackStateDidChangeNotification object: nil];
}
-(void)moviePlayerPlaybackStateChanged:(NSNotification *)notification {
}