Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -(void)awakeFromNib
- {
- NSURL *url2 = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"tecnolitevideo_1" ofType:@"mov"]];
- moviePlayer = [[MPMoviePlayerViewController alloc]
- initWithContentURL:url2];
- [moviePlayer presentMoviePlayerViewControllerAnimated:moviePlayer];
- [moviePlayer.moviePlayer play];
- [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(moviePlayerPlaybackStateChanged:) name:MPMoviePlayerPlaybackStateDidChangeNotification object:nil];
- }
- -(void)moviePlayerPlaybackStateChanged:(NSNotification *)notification {
- }
Add Comment
Please, Sign In to add comment