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

".

+3
ios objective-c iphone


source to share


No one has answered this question yet

Check out similar questions:

320
Assertion error in dequeueReusableCellWithIdentifier: forIndexPath:
161
NSInvalidUnarchiveOperationException: Failed to instantiate NSLayoutConstraint class
7
iOS 8.3 supported orientations
4
SKStoreProductViewController breaks down to iPhone iOS 7 app
1
Supported orientations do not share orientation with application and [RotatingNavController shouldAutorotate] returns YES
1
Application crashed due to InterfaceOrientation
0
Change device orientation, speed, iOS,
0
Braintree Drop to Apple Pay crash
0
My app only works on iPad in landscape mode, but the image picker is throwing the following error
-five
Application error with unrecognized selector posted to instance



All Articles
Loading...
X
Show
Funny
Dev
Pics