The operation couldn’t be completed error during live restart playback in native AV player

In our Apple TV application, we are using the native AVPlayer for live playback functionality. During live restart playback, we intermittently encounter an error when the playback timeline approaches the actual live event end time.

Error: The operation couldn’t be completed. (CoreMediaErrorDomain error -16839 - Unable to get playlist before long download timer) / Failure reason: <unknown>

Scenario:

  1. The live event is scheduled from 7:00 AM to 8:00 AM.
  2. Restart playback begins at 7:20 AM, allowing the user to watch the event from the start while the live stream continues in real-time.
  3. As the restart playback timeline approaches the actual event end time (8:00 AM), AVPlayer displays an error, and playback continues in the background.

Hello @Ganesh56, thank you for your post. This error means a playlist request has timed out. It could be caused by a slow network connection, or a HTTP server overload, for example. Does your content server add an EXT-X-ENDLIST tag to your live playlist when the event ends?

The operation couldn’t be completed error during live restart playback in native AV player
 
 
Q