-
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
Audio out of sync when seeking in HLS source #9411
Comments
The root cause is similar to that of #2233, although it manifests differently in recent ExoPlayer versions (we are now in The segment durations listed in the audio media playlists are rounded to integer precision. When the player seeks, it picks a segment based on the playlist information however the timestamps of the downloaded audio segments are behind the expected timestamp. In As of The HLS spec does allow durations to be rounded up, however Apple's HLS Authoring Specification, section 8.1 says
My recommendation is to update the playlist with accurate segment durations. The player should address the case of inaccurate segment durations but this is likely going to be a low priority. I'll mark this as a duplicate and close it in favor of #2233. |
Thanks for the detailed feedback, I will have a closer look and take according actions. 👍 |
Description
When playing back an HLS stream and seeking directly to the end of the stream, audio is out of sync and continues playing for severals seconds.
This started happening after updating from ExoPlayer
2.12.3
to2.13.3
and is also reproducible in the latest2.15.0
.Steps to reproduce
https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8
into the demo app15:05
of14:48
When playing back the content from e.g.
13:50
and not seeking very close to the end, this does not occur.Thanks in advance!
Edit: forgot to mention that the audio track has additional segments in it. I.e. video has 443 segments with 2sec each while audio has 452 segments with the same length.
The text was updated successfully, but these errors were encountered: