EVENT_POSITION_DISCONTINUITY is replayed after reconnecting to MediaSession
Open
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
- Play audio from playlist
- Optional: Seek to random position to get the first EVENT_POSITION_DISCONTINUITY called
- Close the app by back pressing
- Return to player screen by taping on playback notification
- 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 bugreportto android-media-github@google.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.