Video player UI is getting distorted when going to landscape mode

Originator:s.vijayvikram
Number:rdar://49957589 Date Originated:16th April 2019
Status:Open Resolved:
Product:iOS Product Version:iOS 11.x
Classification:Bug Reproducible:Always
 
Area:
AVKit

Summary:
In iOS 11.x open video player in landscape mode. Go in full screen . Rotate device to landscape mode. Close full screen. Go in full screen.  Again close full screen. See the distorted UI. In iOS 12.x it is working fine.

Steps to Reproduce:
1. Unzip the attached project TestMoviePlayer.zip. Open TestMoviePlayer.xcode project in Xcode 10.2. and run on simulator iPhone 6s having iOS 11.3.
2. Launch the app TestMoviePlayer in portrait mode.
3. Make the video player in full screen by clicking the expansion button in left top corner.
4. Rotate simulator in landscape mode.
5. Close full screen by clicking on cross button on left top corner.
6. Again made vide player in full screen by clicking expansion button in bottom left corner.
7. Again click on cross button in top left corner to close full screen.
8. See the video player distorted UI. It get resized to very small size in top right corner.

Expected Results:
After step 8 video player UI should not distort.

Actual Results:
Video player UI is distorted after step 8.

Version/Build:
Xcode 12.x, iOS 11.x

Configuration:
Device orientation should be in Portrait mode only in project setting(TestMoviePlayer->Target->Device Orientation)

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!