jellyfin / jellyfin-web

Web Client for Jellyfin
https://jellyfin.org
GNU General Public License v2.0
2.19k stars 1.17k forks source link

Remote control player node `positionTime` switching between `NaN:NaN` and `--:--` when nothing is playing #4522

Closed hasezoey closed 1 year ago

hasezoey commented 1 year ago

Describe The Bug i have noticed that the player in /web/#!/queue when connecting to a device that is not playing anything, it still gets nowplaying event: statechange and switching between displaying NaN:NaN and --:-- in the player position

Steps To Reproduce

  1. open 2 separate instances of jellyin (device 1 and remote control)
  2. connect remote control to device 1
  3. open remote control (to end up at /web/#!/queue
  4. observe switching between NaN:NaN and --:--

Expected Behavior to only display --:-- when nothing is playing

Logs

Screenshots dash nan

System (please complete the following information):

Additional Context for most of the time it is staying NaN:NaN and only temporarily switching to --:--

hadicharara commented 1 year ago

I can investigate and provide a fix. I think it might be my fault anyway:)