Plex connect: Improve queue loading performance (#2735)
authorAnatosun <33899455+anatosun@users.noreply.github.com>
Tue, 20 Jan 2026 17:09:14 +0000 (18:09 +0100)
committerGitHub <noreply@github.com>
Tue, 20 Jan 2026 17:09:14 +0000 (18:09 +0100)
commit16c7fd970063a85d5f2c88a7ab6c142e6d9be739
tree8fedbbca6bd08aeb77c2cc3d1843e34bd1be1609
parentbb6609c1b009de2daf70f78a45c94a2ac2003ae6
Plex connect: Improve queue loading performance (#2735)

* Plex connect: Improve queue loading performance

Start playback immediately with first track while loading remaining tracks
in background. This reduces perceived latency when playing queues from Plex.

Changes:
- Load and play first track immediately when queue is requested
- Fetch remaining tracks concurrently in background task
- Broadcast timeline update after first track starts

* Plex connect: applied copilot suggestion

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Plex connect: fixed task creation

* Plex Connect: added await clause on line 715

---------

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Marvin Schenkel <marvinschenkel@gmail.com>
music_assistant/providers/plex_connect/player_remote.py