Search Issue Tracker
[iOS] Using ReplayKit breaks screen auto-rotation
When starting a ReplayKit broadcast a UIViewController and UIWindow are created. These do not abide to the supported orientations chosen by the user and so weird rotation effects start to occur. There is a "rotate to portrait" animation and the status bar appears at the top of the screen, even though the application is meant to be locked to landscape only orientations. Also, as the UIViewController/UIWindow are not removed when stopping the broadcast the effect continues.
You need an iOS device with a third party broadcasting app (Mobcrush) installed in order to use the ReplayKit broadcasting functionality and repro this bug.
1) Open attached project
2) Build and run on iOS device (tested iPhone 7 Plus)
3) See game is locked to landscape (both left and right)
4) Start broadcasting (click gui button)
5) See now when rotating to portrait there is a rotation animation and the status bar appears at top
6) Stop broadcasting and see that this odd status bar screen rotating bug still occurs (only stops if you restart the app)
Repro'd on 5.4.5p2.
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
- SHADERPASS has incorrect value when using Shader Graph for Built-In target
- [VFX] Gizmo still incorrectly rendered for a hidden property
- Nested object label indentation is incorrect when using the UI Toolkit Inspector
- Crash on tlsf_free when UI Elements are moved to the side by scrolling
- Setting VideoPlayer.time and pausing results in incorrect player.frame values