AVPlayer crash when resizing window during fullscreen while hotspotting : <p>I'm coding on an app where uses can watch a wide array of videos. I open the video in fullscreen on button tap and the user is able to use the playback controls to resize the window. The issue I'm having is that when the user is sharing his internet through hotspot there is a blue bar at the top of the app. When resizing the window at this point will cause a crash in the AVKit framework (I believe). Using Swift 2.3, Xcode 7.3.1. My phone, iPhone 6s, uses iOS 10 and I've also tried it on iOS 9 iPhone 6 Plus, same issue.</p>

<p>The crash:</p>

<pre><code>Terminating app due to uncaught exception 'UIViewControllerHierarchyInconsistency', reason: 'child view controller:&lt;AVFullScreenPlaybackControlsViewController: 0x102933000&gt; should have parent view controller:&lt;AVPlayerViewController: 0x10212d800&gt; but actual parent is:&lt;AVFullScreenViewController: 0x10884d900&gt;'
</code></pre>

<p>My code:</p>

<pre><code>private let playerController = AVPlayerViewController()
private var player: AVPlayer!

private func playVideo(media: Media) {

        player = AVPlayer(URL: NSURL(string: media.url)!)
        playerController.player = player

        presentViewController(playerController, animated: true, completion: {
            self.playerController.player?.play()
            self.playerController.delegate = self
        })

    }
</code></pre>

<p>If I don't share my internet on my phone (thus no blue bar) then it works fine, no issues whatsoever. Anyone managed to hide this blue bar, or experienced a similar issue?</p>
