Download

How to fix AVFoundationErrorDomain Code=-11853

Hi all
The AVPlayer notify AVPlayerItemFailedToPlayToEndTimeNotification when playing the stream . i use the below code and print the error details :
NSError *error = notification.userInfo[AVPlayerItemFailedToPlayToEndTimeErrorKey];
NSLog(@“itemFailedToPlayMPMovieFinishReasonPlaybackError111111 =%@” ,error);

Error details:
Error Domain=AVFoundationErrorDomain Code=-11853 “Stream has no valid alternates” UserInfo={NSLocalizedFailureReason=This data is damaged, incomplete, or incompatible., NSLocalizedDescription=Cannot Parse, NSDebugDescription=Stream has no valid alternates, NSUnderlyingError=0x155aa070 {Error Domain=CoreMediaErrorDomain Code=-12880 “Can not proceed after removing variant” UserInfo={NSDescription=Can not proceed after removing variant}}}

And Just only happen on the IOS10, for another version is not .
my question:
1> what’s meaning for the error , and what’ reanson ?
2>how to fix it ?