                 return
             }
             
+            #if os(iOS)
+                if #available(iOS 9.0, *), isViewLoaded {
+                    if pictureInPictureController == nil,
+                        let layer = videoView?.playerLayer,
+                        let pipController = AVPictureInPictureController(playerLayer: layer) {
+                        pipController.delegate = self
+                        pictureInPictureController = pipController
+                    }
+                }
+                
+            #endif
+            
             let currentPlayer: AVPlayer
             
             if

                    player: currentPlayer)
                player = currentPlayer
                seekerController = SeekerController(with: currentPlayer)
            }
            
            guard currentPlayer.currentItem?.status == .readyToPlay else { return }

            }
            
            #if os(iOS)
                if #available(iOS 9.0, *),
                    let pipController = pictureInPictureController as? AVPictureInPictureController {
                    
                    if props.pictureInPictureActive, !pipController.isPictureInPictureActive {
                        pipController.startPictureInPicture()
                    }
                    
                    if !props.pictureInPictureActive, pipController.isPictureInPictureActive {
                        pipController.stopPictureInPicture()
                    }
                }
            #endif
        }
