When loading some HLS videos, the value of duration or currentPosition is displayed/processed incorrectly.
Nobody has claimed this yet.
- Dominant language
- Java
- Stars
- 3k
- Forks
- 955
- Avg merge
- 12d 14h
- Merged PRs (30d)
- 2
Description
Media3 Version
ExoPlayer 2.18.6
Devices that reproduce the issue
Pixel 4 XL API 33
Pixel 6 API 32
Pixel 4 XL API 31
Pixel 4 XL API 29
Devices that do not reproduce the issue
No response
Reproducible in the demo app?
Not tested
Reproduction steps
- Load HLS video: https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8
- Rewind to the end of the video
Expected result
The values of Player.currentPosition and Player.duration are equal:
Player.currentPosition = 14:48
Player.duration = 14:48
Actual result
Player.currentPosition exceeds Player.duration and continues to increase until 15:05
On playback finished:
Player.currentPosition = 15:05
Player.duration = 14:48
Bug visualization(currentPosition > duration):

Media
Test URL = https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8
My demo app using ExoPlayer2 on Google Drive: https://drive.google.com/file/d/1ilhc0UhFpuyEBj5_fu5i9Y4YFqVQBiBx/view?usp=share_link
Bug Report
- You will email the zip file produced by
adb bugreportto dev.exoplayer@gmail.com after filing this issue.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.