Calling Player#prepare in STATE_IDLE ignores targetLiveOffset
Open
@marcbaechinger is already working on this.
Since Jul 15, 2025.
closed-by-bot
- Dominant language
- Java
- Stars
- 3k
- Forks
- 955
- Avg merge
- 12d 14h
- Merged PRs (30d)
- 2
Description
Version
Media3 1.6.1
More version details
Also reproducible in 1.5.x - did not test any other version though
Devices that reproduce the issue
All devices
Devices that do not reproduce the issue
No response
Reproducible in the demo app?
Yes
Reproduction steps
- Play a DASH Live Manifest (a real Live Stream)
- Create a
MediaItem.LiveConfiguration.Builder()and callsetTargetOffsetMswith 30_000 - Apply via
setLiveConfigurationonMediaItem.Builder - Observe live offset by polling
Player#getCurrentLiveOffset - Run into an error (e.g. by disconnecting the device from the internet)
- Re-establish connection
- Hit Play button in sample app (which calls
Player#prepare) - Observe live offset by polling
Player#getCurrentLiveOffset
Expected result
- In Step 4, the live offset is around 30_000
- In Step 8, the live offset is around 8_000
Actual result
- In Step 4, the live offset is around 30_000
- In Step 8, the live offset is around 30_000 so it stays the same
In other words: The LiveConfiguration that was set when starting the player, should remain active, even after a "retry". From my observation it's still set but somehow ignored by the player.
Media
I'll sent a URI via mail that can be used in the demo app by adding it to media.exolist.json
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.