title: AVPlayer layer inside a view does not resize when UIView frame changes
body: <p>I have a <code>UIView</code> which contains an <code>AVPlayer</code> to show a video.  When changing orientation, I need to change the size and location of the video.</p>
  
  <p>I'm not very experienced with resizing layers, so I'm having problems making the video resize.</p>
  
  <p>I start by creating the <code>AVPlayer</code> and adding its player to my videoHolderView's layer:</p>
  
  <pre><code>NSURL *videoURL = [NSURL fileURLWithPath:videoPath];
  self.avPlayer = [AVPlayer playerWithURL:videoURL];
  
  AVPlayerLayer* playerLayer = [AVPlayerLayer playerLayerWithPlayer:self.avPlayer];
  playerLayer.frame = videoHolderView.bounds;
  playerLayer.videoGravity = AVLayerVideoGravityResizeAspect;
  playerLayer.needsDisplayOnBoundsChange = YES;
  
  [videoHolderView.layer addSublayer:playerLayer];
  videoHolderView.layer.needsDisplayOnBoundsChange = YES;
  </code></pre>
  
  <p>Then, at a later point, I change the size and location of the videoHolderView's frame:</p>
  
  <pre><code>[videoHolderView setFrame:CGRectMake(0, 0, 768, 502)];
  </code></pre>
  
  <p>At this point, I need the avPlayer to resize to these same dimension.  This doesn't happen automatically - the avPlayer stays at it's small size within the videoHolderView.</p>
  
  <p>If anyone can help, I'd really appreciate any advice.</p>
  
  <p>Thanks guys.</p>