我对以下内容感到困惑:
MPMoviePlayerViewController和MPMoviePlayerController 在iOS6中本地播放视频的最佳方法是什么?
这是我的代码:
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 {
}