easyui / EZPlayer

基于AVPlayer封装的视频播放器,功能丰富,快速集成,可定制性强,支持react-native。
MIT License
489 stars 95 forks source link

关闭自动转屏点全屏按钮会崩溃 #5

Closed HuaZao closed 7 years ago

HuaZao commented 7 years ago

*** Terminating app due to uncaught exception 'UIApplicationInvalidInterfaceOrientation', reason: 'Supported orientations has no common orientation with the application, and [EZPlayer.EZPlayerFullScreenViewController shouldAutorotate] is returning YES'

这个方法return了ture之后依然崩溃

HuaZao commented 7 years ago

` extension EZPlayerFullScreenViewController{

open override var shouldAutorotate : Bool { return true }

open override var supportedInterfaceOrientations : UIInterfaceOrientationMask { return .all }

open override var preferredInterfaceOrientationForPresentation: UIInterfaceOrientation{ return .landscapeRight } } `

解决问题

CodeRabbitYu commented 5 years ago

请问怎么解决的?