Is there any proper solution for error = "Error Domain=MediaPlayerErrorDomain Code=-11800 and -11819 with MPMoviePlayerViewController?

I am using MPMoviePlayerViewController to play video files in my iOS App. When I played video from server URL

then I am getting error :

"Error Domain=MediaPlayerErrorDomain Code=-11800"

and when i am playing video from Local Storage Then i am getting error :

"Error Domain=MediaPlayerErrorDomain Code=-11819"

One specific scenario about this problem is that first time I got that error and second time it played successfully and this problem I can reproduce everytime. Can you guys please provide me proper solution?

Replies

I believe these errors are

AVErrorUnknown
and
AVErrorMediaServicesWereReset
, respectively. I don't know much about AV Foundation so I moved your thread to Media > AV Foundation (Video and Camera) where you're more like to connect with folks who know stuff about this stuff (-:

Share and Enjoy

Quinn "The Eskimo!"
Apple Developer Relations, Developer Technical Support, Core OS/Hardware

let myEmail = "eskimo" + "1" + "@apple.com"

Hello Eskimo,


The error AVErrorMediaServicesWereReset is kind of generic, this causes too much trouble for us to debug. I've been working with live streaming content and having a ton of -11819 with unknown reason.


Apple please does everyone a favor by providing more insight about this kind of error. That would be great.


Best regards.