Search code examples
fullscreenstatusbarnavigationbaravplayerviewcontrolleruimodalpresentationstyle

Cannot dismiss modally presented AVPlayerViewController while hotspot is active


My app presents an AVPlayerViewController full screen, using modalPresentationStyle = UIModalPresentationOverFullScreen. Normally, everything works fine, and the AVPlayerViewController can be dismissed by the Done (here: Fertig) button in the top status bar of the AVPlayerViewController:

enter image description here

However, when I have an active hotspot connection, the hotspot status bar hides the top status bar of the AVPlayerViewController including the Done button, and the AVPlayerViewController can no longer be dismissed while the hotspot is active:

enter image description here

How do I have to configure the AVPlayerViewController correctly?


Solution

  • The bottom bar has an exit full-screen mode button at the lower right corner.

    enter image description here

    So the user can simply use that to exit the full-screen mode when the hotspot is active.