-
Notifications
You must be signed in to change notification settings - Fork 6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unhandled ArrayIndexOutOfBoundsException during live HLS playback when media sequence unexpectedly changes to zero #2249
Comments
I think you're confusing two separate topics. Use of the EXT-X-DISCONTINUITY tag allows various properties of the media segments to change (e.g. the encoding parameters). It does not make it OK to reset the media sequence number to zero, which is something that should never happen. The spec says this about the media sequence number:
Marking this as a bug, but only because the exception isn't handled and causes process death, which isn't desirable. We'll fix this to cause a playback failure instead. |
You are right, thank you for pointing out to this aspect.
It was the main intention. |
For the stack trace to occur as in this issue report, it looks like a required condition is:
And also that:
Else the method would have returned at this line. Are you still able to reproduce the issue? If so, can you take a look and see why |
End tag is appended to the new playlist also. I think appending end tag is the only reason why Just for clarification – due streaming service malfunction in some rare cases client is being redirected from live HLS stream to static HLS VOD. VOD playlist doesn't contain any segments from the preceding playlist. |
Our plan for handling this case is to create a new playlist consisting of the old playlist with the end tag appended (i.e. just treat the playback as though it's ended). |
Issue: #2249 ------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=143555467
Description
Unhandled ArrayIndexOutOfBoundsException during live HLS playback when media sequence unexpectedly changes to zero. First segment in new index file has no EXT-X-DISCONTINUITY tag added (according to HLS spec absence of tag may lead to playback error)
Reports gathered with Fabric show that negative index is close to value of last known media sequence.
Version
ExoPlayer v2.1.1
Stack trace
The text was updated successfully, but these errors were encountered: