Hi
The AVPlayer notify AVPlayerItemFailedToPlayToEndTimeNotification when playing the stream . i use the below code and print the error details :
NSError *error = notification.userInfo[AVPlayerItemFailedToPlayToEndTimeErrorKey];
NSLog(@"itemFailedToPlayMPMovieFinishReasonPlaybackError=%@" ,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 the Error just only happen on the IOS10 . And i did not find Code=-11853 in https://developer.apple.com/library/ios/documentation/AVFoundation/Reference/AVFoundation_ErrorConstants/index.html#//ap…
my question:
1>What is the cause of this error?
2>how to fix it ?
Thanks