 internal class PlayerView: UIView {
 
     // MARK: - properties
-    
+
     override class var layerClass: AnyClass {
         get {
             return AVPlayerLayer.self
         }
     }
 
+    var playerViewController: AVPlayerViewController?
+
     var playerLayer: AVPlayerLayer {
         get {
             return self.layer as! AVPlayerLayer

            }
        
        } else if context == &PlayerLayerObserverContext {
            if self._playerView.playerLayer.isReadyForDisplay {
                self.executeClosureOnMainQueueIfNecessary {
                    self.playerDelegate?.playerReady(self)
                }

                if let status = change?[NSKeyValueChangeKey.newKey] as? NSNumber {
                    switch status.intValue as AVPlayerStatus.RawValue {
                    case AVPlayerStatus.readyToPlay.rawValue:
                        self._playerView.player = self._avplayer
                        self._playerView.playerIsHidden = false
                    case AVPlayerStatus.failed.rawValue:
                        self.playbackState = PlaybackState.failed
                    default:
