Version
Media3 1.9.2
More version details
No response
Devices that reproduce the issue
Any device
Devices that do not reproduce the issue
None
Reproducible in the demo app?
Yes
Reproduction steps
- Play the attached MP3 file in the demo session app.
- The seeking and the duration is very inaccurate (about 25 seconds off)
- Setting the setMediaSourceFactory with FLAG_ENABLE_INDEX_SEEKING has no effect (Version 1.8.0 works well / accurate with this flag enabled)
Seems to be that this commit changes the behaviour:
cef3c8f / Prioritize CBR seeking over index seeking for MP3s
Expected result
Accurate duration and seeking.
Maybe a new flag like FLAG_ENABLE_INDEX_SEEKING_ALWAYS could be a workaround / solution to force index seeking.
This MP3 works fine with other players like VLC e.g.
Actual result
Very inaccurate (about 25 sec off)
Media
tenstories-vbr.mp3
or forked repo (MP3 already integrated as asset in demo app)
https://github.com/DavidEdwardsBL/media3/tree/bug/vbr-duration
Bug Report
Version
Media3 1.9.2
More version details
No response
Devices that reproduce the issue
Any device
Devices that do not reproduce the issue
None
Reproducible in the demo app?
Yes
Reproduction steps
Seems to be that this commit changes the behaviour:
cef3c8f / Prioritize CBR seeking over index seeking for MP3s
Expected result
Accurate duration and seeking.
Maybe a new flag like FLAG_ENABLE_INDEX_SEEKING_ALWAYS could be a workaround / solution to force index seeking.
This MP3 works fine with other players like VLC e.g.
Actual result
Very inaccurate (about 25 sec off)
Media
tenstories-vbr.mp3
or forked repo (MP3 already integrated as asset in demo app)
https://github.com/DavidEdwardsBL/media3/tree/bug/vbr-duration
Bug Report
adb bugreportto android-media-github@google.com after filing this issue.