IOS app crashes during video playback
When I play a video containing audio with < amr
' format in iphone[version=8.3]
, the application exits immediately with this stack:
Application termination due to uncaught exception "UIApplicationInvalidInterfaceOrientation", reason: "Supported orientations do not have a common orientation with the application, and [_UIAlertShimPresentingViewController shouldAutorotate] returns YES '*** First throw call stack: libC ++ abi.dylib: terminate with excluded exception of type NSException (lldb)
How to deal with this behavior?
Instead of exiting the application, I need to tell the user the message " Unsupported audio format" or "video can't be played
".
source to share
No one has answered this question yet
Check out similar questions: