Guest User

Untitled

a guest
Jan 18th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. -(void)awakeFromNib
  2. {
  3.  
  4. NSURL *url2 = [NSURL fileURLWithPath:[[NSBundle mainBundle] pathForResource:@"tecnolitevideo_1" ofType:@"mov"]];
  5.  
  6. moviePlayer = [[MPMoviePlayerViewController alloc]
  7. initWithContentURL:url2];
  8. [moviePlayer presentMoviePlayerViewControllerAnimated:moviePlayer];
  9. [moviePlayer.moviePlayer play];
  10.  
  11. [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(moviePlayerPlaybackStateChanged:) name:MPMoviePlayerPlaybackStateDidChangeNotification object:nil];
  12.  
  13. }
  14.  
  15.  
  16. -(void)moviePlayerPlaybackStateChanged:(NSNotification *)notification {
  17. }
Add Comment
Please, Sign In to add comment