SHARE
TWEET

Untitled

a guest Jan 18th, 2019 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top