vfsfitvnm / ViMusic

An Android application for streaming music from YouTube Music.
GNU General Public License v3.0
8.53k stars 753 forks source link

Song length in the player is different from the length in the queue #750

Open habnixzutun opened 1 year ago

habnixzutun commented 1 year ago

Steps to reproduce the bug

  1. Start a song where the bug occurs
  2. Look at the length in the song queue
  3. Compare it to the length in the player

Expected behavior

The displayed song length is the same everywhere it's shown

Actual behavior

The song length is the same in the song queue and the playlist but for about 30% of the songs in my playlist the length displayed in the player is one second less

Screenshots/Screen recordings

Playlist IMG_20221203_164235

Song Queue IMG_20221203_164259

Player IMG_20221203_164324

Logs

No response

ViMusic version

0.5.4

Android version

Android 13

Additional information

Other songs with that bug:

vfsfitvnm commented 1 year ago

That happens because I display the duration reported by exoplayer in the player screen, whilst I show the one reported by youtube (which is wrong sometimes) in every other place. This is not a bug.

habnixzutun commented 1 year ago

Okay, thanks. Didn't know that. Would it be possible to use the same information source for both?