Jump to content

Not auto-playing next episode


Recommended Posts

Blueskies278
Posted (edited)

@LukeI'd like to kindly follow up on a bug that has been persisting for quite some time.  I'm a bit disappointed that a permanent fix hasn't been implemented yet. I hope this can be prioritised and resolved as soon as possible.

Thanks.

Here's the technical explanation of why it breaks auto-next-episode:


When Emby streams video via HLS (HTTP Live Streaming), it splits the video into small segments (.ts files) and creates a playlist (.m3u8 file) that tells the client where all the segments are.

When subtitles are present, Emby also generates separate WebVTT subtitle segments alongside the video segments. The problem is that these subtitle segments are generated asynchronously — they don't always finish at the same time as the video segments.

When the video reaches the end, the HLS playlist should contain an #EXT-X-ENDLIST tag to tell the client "the stream is finished, move on". But because the subtitle segment generation is still running or hasn't closed cleanly, the playlist never gets that clean end signal.

The iOS/Android Emby app is waiting for the stream to properly end before triggering auto-next-episode — but it never gets that signal, so it just freezes at the last frame waiting forever.

When I enable Disable HLS Subtitles, Emby stops generating those WebVTT subtitle segments entirely, so the video-only HLS playlist terminates cleanly with #EXT-X-ENDLIST, the app receives the end signal, and auto-next-episode triggers correctly.


In short: subtitle segments race against video segments at the end of a stream, and the subtitle segments win — preventing the stream from ever cleanly ending.

 

Edited by Blueskies278
  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...