title: AVPLayer + Fullscreen with custom player controls
body: <p>Design :</p>
  
  <p>ViewController : has a player view &amp; a container vew.</p>
  
  <p>Player View: loads the AVPlayer &amp; has a subview(PlayerControlView) at the bottom of the player view to load the player controls (play/pause/progress bar/fullscreen etc..)</p>
  
  <p>PlayerControlView: A custom UIView that has the player controls laid out.</p>
  
  <p>I'm able to load the AVPlayer and player controls in normal mode(i.e. not fullscreen). Playback is fine and all the controls are working.</p>
  
  <p>Problem:</p>
  
  <p>I want the AVPlayer to go fullscreen when the user taps the fullscreen icon on the player controls. I'm able to make AVPlayer go fullscreen by changing the frame of the Player view and setting the Zposition of the AVPlayerLayer to 100.</p>
  
  <p>Problem is the AVPlayer remains in fullscreen only when I do not make any updates to the playerControlView (i.e. progress bar/tapping play button etc). As soon as playback progress update is done on the slider, AVPlayer exits the fullscreen and comes back to normal mode.</p>
  
  <p>Player controls are not repositioning to the bottom of the player view. They remain in their previous position itself. In normal mode, player control lays out properly on orientation changes.</p>
  
  <p>Can someone please let me know if the approach I took is the right way to go? If not, please suggest the right design to take for implementing a fully functional player controls for AVPlayer.</p>
  
  <p>Thanks in advance,
  Naveen</p>