We use AVPlayer
in order to play live stream in our iOS
app. We've recently added low-latency feature.
Only when low-latency is enabled: Sometimes player stalls / is frozen.
The following waring is logged:
Warning: PART-HOLD-BACK SHOULD be at least three times the Part Target Duration
What can we do in order to fix the issue?
PS: We use Mux in Server-side.
The below link will give more clear information for the error/warning observed. https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis
"The client SHALL choose which Media Segment to play first from the Media Playlist when playback starts. If the EXT-X-ENDLIST tag is not present and the client intends to play the media normally, the client SHOULD NOT choose a segment closer to the end of the Playlist than described by the HOLD-BACK and PART-HOLD-BACK attributes. Doing so can trigger playback stalls." As mentioned here if EXT-X-ENDLIST tag exist for LL, AVPlayer will stall or freeze.