OxygenCobalt / Auxio

A simple, rational music player for android
GNU General Public License v3.0
2.01k stars 132 forks source link

Use ExoPlayer for duration parsing #661

Open nemesis-vampy opened 8 months ago

nemesis-vampy commented 8 months ago

Describe the Bug/Crash

some songs in my library show a duration of --:--, and the albums they are in show a duration of 0:00: image

Describe the intended behavior

should display the true duration of the songs and their albums. vlc, for example, correctly displays the duration: image

What android version do you use?

Android 14

What device model do you use?

samsung galaxy s22

Bug report

n/a?

Duplicates

OxygenCobalt commented 8 months ago

Can you provide sample files @nemesis-vampy? I cannot tell if this is a consequence of poor format support or your device's MediaStore database being broken (VLC uses it's own custom parser for durations, for now I still rely on MediaStore which is much flakier). Just make sure to strip the audio out if its copyrighted, I only need the tags anyway.

nemesis-vampy commented 8 months ago

of course. examples.zip

OxygenCobalt commented 8 months ago

I can't seem to reproduce this. This implies this is largely device-specific. I'll convert this issue into a related enhancement about effectively using ExoPlayer for duration parsing as a fallback (Currently the maintainers don't support it, so it would have to be a manual patch).

zalnaRs commented 2 months ago

Clear data of Auxio and com.android.providers.media.