question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

iOS 13+ fullscreen (using ShowControls)

See original GitHub issue

🔙 Regression

The iOS VideoView no longer displays the video full screen when the fullscreen button is pressed.

Old (and correct) behavior

The video opened in fullscreen and played without any issues (I’ve just tested this on iOS 12 and it still works).

Current behavior

The video continues to play; however not in fullscreen. It’s just an empty fullscreen view.

In the logging we find the following message:

*** Warning: <MediaManager_Platforms_Ios_Video_PlayerViewController: 0x7f930c93de00> is trying to enter full screen, but is not in its view's window's view controller hierarchy. This results in undefined behavior..

Reproduction steps

Sample repo can be found here: https://github.com/brminnick/AzureMediaServicesSampleApp (please do set ShowControls to true in the NativeVideoPlayerPage.cs file) After clicking on the fullscreen button; you will see the following screen:

Simulator Screen Shot - iPhone 11 - 2019-10-12 at 15 20 53

Configuration

Version: 0.8.12

Platform:

  • 📱 iOS 13
  • 🤖 Android
  • 🏁 WPF
  • 🌎 UWP
  • 🍎 MacOS
  • 📺 tvOS
  • 🐒 Xamarin.Forms

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:9
  • Comments:41 (17 by maintainers)

github_iconTop GitHub Comments

7reactions
SatyaRamprasadcommented, Mar 2, 2020

@OdetteP @martijn00 Any update on this issue?

1reaction
Jearomcommented, Jun 8, 2021

Hmm, the code you’ve submitted isn’t the same as the code detailed above.

Yes, as i said i change my observer to “contentOverlayView” so i could check parent view of the player is state of full screen or not. also i was checking the “Y” position of the player when portrait but now height property better control for it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Presenting modal in iOS 13 fullscreen - viewcontroller
In iOS 13 there is a new behaviour for modal view controller when being presented. Now it's not fullscreen by default and when...
Read more >
Set the Next View Controller to Show as Full Screen in iOS ...
With the new change in Xcode and iOS, a segue to a new view controller shows as card rather than full screen. So...
Read more >
iOS 13: Changes in the ViewController Presentation Style
With iOS 13, the presentation style of ViewControllers will be changed into a card mode. To enable full screen, set the property ...
Read more >
Hiding the iPad status bar in fullscreen? : r/apple
Try tapping the screen twice; once to show controls and once to hide them. This sometimes helps, especially in VLC. On my iPad,...
Read more >
Present View full screen | Apple Developer Forums
Select the viewController. In the attributes inspector (at the right): this is the down pointing arrow. look for Presentation. Replace automatic by Full...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found