Post

Replies

Boosts

Views

Activity

How to fix AVPlayer orientation in IPAD?
HiI have wrote following Swift class code to fix AVPlayer orientation to the landscape right, to override native AVPlayerVirewController. It works fine to iPhone but does not work for iPad. Do I need something more specific to iPad in order to fix AVPlayer orientation?# Both iOS 13.2.3 and using Xcode11.2.1Thank you for your suggestion.Junclass CustomAVPlayerViewController: AVPlayerViewController { // orientation fixed to landscapeRight override var supportedInterfaceOrientations: UIInterfaceOrientationMask { return .landscapeRight }}
0
0
976
Nov ’19