androidx / androidx/media

EVENT_POSITION_DISCONTINUITY is replayed after reconnecting to MediaSession

Open
#1,229 3 comments 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

Version

Media3 1.3.0

More version details

No response

Devices that reproduce the issue

Samsung S20 Fe Android 13, Pixel 7 Emulator Android 14

Devices that do not reproduce the issue

No response

Reproducible in the demo app?

Yes

Reproduction steps
  1. Play audio from playlist
  2. Optional: Seek to random position to get the first EVENT_POSITION_DISCONTINUITY called
  3. Close the app by back pressing
  4. Return to player screen by taping on playback notification
  5. Pause the playback
Expected result

No EVENT_POSITION_DISCONTINUITY handled

Actual result

When onPositionDiscontinuity() is called, it is incorrectly receiving the same arguments as in the last call, or it's being called with these arguments when it never was before: oldPosition.positionMs=0, newPosition.positionMs=0, newPosition.mediaItem=0, reason=0.

Media

Reproducible with both audio and video

Bug Report
  • You will email the zip file produced by adb bugreport to android-media-github@google.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.