Posted By

yoyoasakura302 on 10/02/12


Tagged


Versions (?)

Test snippet


 / Published in: Objective C
 

  1. [self.player pause];
  2. self.playerItem = [AVPlayerItem playerItemWithURL:url];
  3. [self.player replaceCurrentItemWithPlayerItem:self.playerItem];
  4.  
  5. [self.player play];
  6.  
  7. [self.playerItem addObserver:self forKeyPath:@"status" options:0 context:nil];

Report this snippet  

You need to login to post a comment.