spotube/lib/services
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
..
audio_player chore: remove buffer size limit 2025-11-14 13:38:47 +06:00
audio_services fix: propagate player-discovered duration to OS media session 2026-07-18 19:35:47 +05:30
cli chore: remove old logger 2024-07-06 22:02:31 +06:00
device_info feat: LAN connect a.k.a control remote Spotube playback and local output device selection (#1355) 2024-04-04 22:22:00 +06:00
dio refactor: use replace http with dio and use it as the default 2024-06-01 12:31:20 +06:00
kv_store feat: implement yt-dlp for desktop and NewPipeExtractor for Android (#2316) 2025-02-11 21:36:07 +06:00
logger fix: youtube tracks keeps skipping despite being matched correctly 2025-02-05 00:36:23 +06:00
metadata chore: fix alternative sources not persisting 2025-11-14 16:17:37 +06:00
sourced_track chore: fix alternative sources not persisting 2025-11-14 16:17:37 +06:00
wikipedia feat(artist): modularize page and add wikipedia section 2023-11-22 20:23:12 +06:00
wm_tools chore: use shadcn in all places that's using material 2025-01-30 21:44:07 +06:00
youtube_engine Release 5.1.2+45 (#3049) 2026-06-05 10:49:09 +06:00
connectivity_adapter.dart fix: youtube video unplayable issue and use more ytClients 2025-01-21 10:15:06 +06:00