[PR #546] [MERGED] Add a preload event to warn about new track coming soon #965

Closed
opened 2026-02-27 20:00:38 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/librespot-org/librespot/pull/546
Author: @maxthiel
Created: 12/10/2020
Status: Merged
Merged: 12/13/2020
Merged by: @sashahilton00

Base: devHead: send-preload-event


📝 Commits (1)

  • 2f7bf54 Add a preload event to warn about new track coming soon

📊 Changes

2 files changed (+10 additions, -1 deletions)

View changed files

📝 playback/src/player.rs (+6 -1)
📝 src/player_event_handler.rs (+4 -0)

📄 Description

Hi,

I'm building a display for my sytsem running librespot and want to show the cover of the current track.
For this, I'm using the onevent option.

To minimize the delay between the track change and the cover being displayed, I need to preload the next cover picture.
I've added a new Preloading event that is triggered when librespot starts its own preload.

Please let me know if there's anything that needs to be fixed or improved.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/librespot-org/librespot/pull/546 **Author:** [@maxthiel](https://github.com/maxthiel) **Created:** 12/10/2020 **Status:** ✅ Merged **Merged:** 12/13/2020 **Merged by:** [@sashahilton00](https://github.com/sashahilton00) **Base:** `dev` ← **Head:** `send-preload-event` --- ### 📝 Commits (1) - [`2f7bf54`](https://github.com/librespot-org/librespot/commit/2f7bf54076aac614f33dff252b36f0cf280dc2aa) Add a preload event to warn about new track coming soon ### 📊 Changes **2 files changed** (+10 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `playback/src/player.rs` (+6 -1) 📝 `src/player_event_handler.rs` (+4 -0) </details> ### 📄 Description Hi, I'm building a display for my sytsem running librespot and want to show the cover of the current track. For this, I'm using the `onevent` option. To minimize the delay between the track change and the cover being displayed, I need to preload the next cover picture. I've added a new `Preloading` event that is triggered when librespot starts its own preload. Please let me know if there's anything that needs to be fixed or improved. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 20:00:38 +03:00
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/librespot#965
No description provided.