AVPlayer throwing : “Internal error: restarting too far ahead”

I am observing KVO AVPlayerItemNewErrorLogEntryNotification of the AVPlayer and I find the following error:

errorStatusCode:-12645 errorDomain :CoreMediaErrorDomain errorComment:Internal error: restarting too far ahead (-1.4084s)

I am unable to understand what the below line really means.

"Internal error: restarting too far ahead"

Can anyone help me to find the root cause of this issue.

Replies

The player is complaining that it was trying to restart a live stream, but only had 1.4 seconds of material available.

How many segments are in your live playlist?

These days we recommend that you always have at least six segments in the playlist.

I believe the only effect is to delay palyback until it has enough data.

Could these types of errors be generated if the playerItem playhead's position is at the very edge of the buffer and new media segments are not made available fast enough on the server?


If this is true, could they be prevented client side by manually setting the live buffer's edge back in time a few seconds?