spotube/lib
Rahul Agarwal 9c92e2529e fix: propagate player-discovered duration to OS media session
Tracks opened from Home/Album/Liked Album pages can carry an unknown
(zero) durationMs from the metadata source, which was forwarded verbatim
to audio_service as Duration.zero. Android's media notification then
rendered 0:00 / 0:00 with no working seek bar, and macOS Now Playing
showed --:-- (issue #3077), even though the in-app player UI showed the
correct duration via the player's durationStream.

WindowsAudioService already forwards audioPlayer.durationStream to SMTC
(setEndTime), but MobileAudioService (Android/macOS/Linux) never updated
the active MediaItem after the player discovered the real duration.

- Report an unknown (zero) model duration as null instead of
  Duration.zero so the OS treats it as unknown rather than 0:00.
- Update the active MediaItem from audioPlayer.durationStream once the
  real duration is known, mirroring the existing Windows behaviour.

Fixes #3077

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-07-18 19:35:47 +05:30
..
collections fix: downloaded tracks are not tagged with metadata 2025-11-08 15:49:37 +06:00
components fix: download not working in different devices and slow 2025-11-11 10:39:13 +06:00
extensions fix: download not working in different devices and slow 2025-11-11 10:39:13 +06:00
hooks chore: re-enable endless playback 2025-07-19 11:56:51 +06:00
l10n chore: bump version and generate CHANGELOG 2025-11-14 13:36:20 +06:00
models Release 5.1.2+45 (#3049) 2026-06-05 10:49:09 +06:00
modules chore: fix alternative sources not persisting 2025-11-14 16:17:37 +06:00
pages Release 5.1.2+45 (#3049) 2026-06-05 10:49:09 +06:00
provider fix: lyrics not working 2026-02-24 18:36:29 +06:00
services fix: propagate player-discovered duration to OS media session 2026-07-18 19:35:47 +05:30
utils feat: move away from track source query and preferences audio quality and codec 2025-11-03 19:33:47 +06:00
generated_plugin_registrant.dart Playlist info editing (#708) 2023-09-10 16:39:21 +06:00
main.dart feat: add NewPipe support for desktop platforms 2025-11-07 18:48:18 +06:00