I implemented AVPlayerViewControllerDelegate to know when the Player enters or exits full screen mode. This delegate got introduced in iOS 12 and it works fine with iOS 12 and iOS 13.
I added two workarounds for older versions.
#1: Check whether viewcontroller is presenting any controller in viewWillLayOutSubViews
#2: Check the AVPlayer overlay view frame in viewWillLayOutSubVies/viewDidLayOutSubViews.
Those two workaround works fine in some versions but not in all the OS versions prior to 12.
Did anyone have any solution to handle this issue?