HLS troubleshooting
An HLS feed stops updating after the last segment
Compare two snapshots of an authorized HLS media playlist to tell an ended stream from a live playlist that stopped refreshing.
Find the media playlist before deciding it is stale
An HLS multivariant playlist can stay the same throughout a live programme. It points to rendition playlists. Inspect the media playlist for the rendition that is actually playing. The media playlist contains segment entries. RFC 8216 defines EXT-X-ENDLIST as the signal that no more segments will be added.
An ENDLIST in an archived presentation is expected. If it appears in a media playlist that should remain live, the publishing or routing team can check why a completed or wrong presentation is being served. If there is no ENDLIST, look at whether the media window advances over multiple refreshes.
What two snapshots can show
| First snapshot | Later snapshot | Interpretation |
|---|---|---|
| Sequence 120, last segment 124 | Sequence 121, last segment 125 | The sliding window is moving forward. |
| Sequence 120, last segment 124 | Same sequence but a later segment is present | An event-style window may append without removing earlier items. |
| Same sequence and last segment | Still unchanged after the expected refresh window | Investigate stale delivery or a stopped encoder or packager. |
| Final playlist with ENDLIST | Unchanged playlist with ENDLIST | The playlist declares a finished presentation. |
Avoid changing the wrong layer
For an authorized operator test, record retrieval time, media sequence, final segment reference without private tokens, target duration and ENDLIST presence. Compare at a reasonable interval for the feed rather than requesting repeatedly in a tight loop. Check whether a second authorized player receives the same current playlist.
If both clients see an advancing playlist but the newest segment fails to arrive, investigate segment delivery separately. If the playlist ends and only one app tries to wait indefinitely, share the app version and final marker with the publisher. A screen that freezes on its last frame can look similar in both cases.
Sources and further reading
- HLS format reference
- IETF HTTP Live Streaming specification · Playlist, segment and variant rules
- Apple HLS authoring specification · Multivariant playlists, renditions and content delivery