[GH-ISSUE #35] Feature request: edit queue or add consume mode #29

Closed
opened 2026-02-28 14:24:48 +03:00 by kerem · 4 comments
Owner

Originally created by @volumio on GitHub (May 4, 2024).
Original GitHub issue: https://github.com/devgianlu/go-librespot/issues/35

To make gapeless playback work, we use this strategy:

  • track 1 and track 2 are part of the same album
  • we start playing track 1
  • about 5 seconds before track 1 ends, we add track 2 to queue
  • this way the daemon shall play them in gapless mode
  • after track 1 has finished playing, we remove it from the queue

To achieve this we would need one of the 2:

  • Either a consume mode trigger (once a track is played is removed from queue (best option)
  • A way to manage the queue from the API
Originally created by @volumio on GitHub (May 4, 2024). Original GitHub issue: https://github.com/devgianlu/go-librespot/issues/35 To make gapeless playback work, we use this strategy: - track 1 and track 2 are part of the same album - we start playing track 1 - about 5 seconds before track 1 ends, we add track 2 to queue - this way the daemon shall play them in gapless mode - after track 1 has finished playing, we remove it from the queue To achieve this we would need one of the 2: - Either a consume mode trigger (once a track is played is removed from queue (best option) - A way to manage the queue from the API
kerem closed this issue 2026-02-28 14:24:48 +03:00
Author
Owner

@devgianlu commented on GitHub (May 6, 2024):

You should be able to use just the add_to_queue endpoint as there's no need to remove previous tracks from the queue. Or am I missing something?

<!-- gh-comment-id:2096055219 --> @devgianlu commented on GitHub (May 6, 2024): You should be able to use just the [`add_to_queue`](https://github.com/devgianlu/go-librespot/blob/ef364dbf339ba3bf0b78034f11e51e1a7f34fcf0/api-spec.yml#L240) endpoint as there's no need to remove previous tracks from the queue. Or am I missing something?
Author
Owner

@volumio commented on GitHub (May 6, 2024):

@devgianlu leaving the track in the spotify queue may provide conflicts and wrong track playback, especially if repeat is enabled on spotify's side

<!-- gh-comment-id:2096063206 --> @volumio commented on GitHub (May 6, 2024): @devgianlu leaving the track in the spotify queue may provide conflicts and wrong track playback, especially if repeat is enabled on spotify's side
Author
Owner

@devgianlu commented on GitHub (May 6, 2024):

@volumio Tracks in the queue are evicted automatically once played so it should not be necessary.

<!-- gh-comment-id:2096113622 --> @devgianlu commented on GitHub (May 6, 2024): @volumio Tracks in the queue are evicted automatically once played so it should not be necessary.
Author
Owner

@volumio commented on GitHub (May 6, 2024):

@devgianlu if tracks are automatically evicted, then there's no need. thanks for confirming

<!-- gh-comment-id:2096137500 --> @volumio commented on GitHub (May 6, 2024): @devgianlu if tracks are automatically evicted, then there's no need. thanks for confirming
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/go-librespot#29
No description provided.