androidx / androidx/media

When loading some HLS videos, the value of duration or currentPosition is displayed/processed incorrectly.

Open
#338 1 comment 0 reactions 1 assignee View on GitHub

Nobody has claimed this yet.

bug needs triage
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
  1. Load HLS video: https://bitdash-a.akamaihd.net/content/sintel/hls/playlist.m3u8
  2. 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):
Снимок экрана (92)

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 bugreport to dev.exoplayer@gmail.com after filing this issue.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.