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:
- The live event is scheduled from 7:00 AM to 8:00 AM.
- 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.
- As the restart playback timeline approaches the actual event end time (8:00 AM), AVPlayer displays an error, and playback continues in the background.