title: What does AVErrorMediaServicesWereReset mean?
body: <p>I'm currently writing a custom video player using AVPlayer. The video plays fine and works in 99% of cases. But when seeking, I occasionally run into an error. My AVPlayerItem's status changes to AVPlayerItemStatusFailed, and its "error" property is set to:</p>
  
  <blockquote>
    <p>Error Domain=AVFoundationErrorDomain
    Code=-11819 "Cannot Complete Action"
    UserInfo=0x541da00
    {NSLocalizedRecoverySuggestion=Try
    again later.,
    NSLocalizedDescription=Cannot Complete
    Action}</p>
  </blockquote>
  
  <p>The error occurs on iOS 4.0.1 when seeking forward in an HTTP Live Stream. It happens more often when the phone is on 3G or the bitrate of the stream is high. To reproduce, play an HTTP Live Stream with AVPlayer on iOS 4.0.1 and seek forward past the loaded buffer -- the error occurs ~50% of the time.</p>
  
  <p>I found in AVError.h that AVFoundation error code -11819 corresponds to <strong>AVErrorMediaServicesWereReset <em>("The operation could not be completed because media services became unavailable")</em></strong> .</p>
  
  <p><strong>Does anyone know what causes this error and how to fix it?</strong> I know a fix is possible because MPMoviePlayerViewController (which uses AVPlayer) does not exhibit the bug. Unfortunately, due to external constraints, I cannot use MPMoviePlayer in my code.</p>
  
  <p>Thanks!</p>