[PR #1112] [CLOSED] Allow to fine-tune the requested stream formats #1236

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

📋 Pull Request Information

Original PR: https://github.com/librespot-org/librespot/pull/1112
Author: @ptesarik
Created: 1/27/2023
Status: Closed

Base: devHead: fmt_prio


📝 Commits (2)

  • 2550448 Store file format preference list in PlayerConfig
  • 0bb81dd Allow the user to fine-tune the requested stream formats

📊 Changes

9 files changed (+143 additions, -46 deletions)

View changed files

📝 Cargo.lock (+24 -0)
📝 Cargo.toml (+2 -0)
📝 playback/Cargo.toml (+4 -0)
📝 playback/src/config.rs (+38 -2)
📝 playback/src/lib.rs (+1 -0)
📝 playback/src/player.rs (+3 -34)
📝 protocol/Cargo.toml (+3 -0)
📝 protocol/build.rs (+15 -0)
📝 src/main.rs (+53 -10)

📄 Description

Requested file formats can be currently controlled only through the bitrate parameter, which translates to one of a few hard-coded priority lists.

Some users may want to specify a different preference list, e.g.:

  • request AAC and/or FLAC,
  • prefer MP3 over OGG,
  • give up on a low-bandwidth connection if a low-bitrate format is unavailable, rather than falling back to a higher bitrate.

🔄 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/1112 **Author:** [@ptesarik](https://github.com/ptesarik) **Created:** 1/27/2023 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `fmt_prio` --- ### 📝 Commits (2) - [`2550448`](https://github.com/librespot-org/librespot/commit/2550448625d0c24ff0983668f6cae80867d0fb09) Store file format preference list in PlayerConfig - [`0bb81dd`](https://github.com/librespot-org/librespot/commit/0bb81ddb58395c6bfe7119d250db3e6a2def7202) Allow the user to fine-tune the requested stream formats ### 📊 Changes **9 files changed** (+143 additions, -46 deletions) <details> <summary>View changed files</summary> 📝 `Cargo.lock` (+24 -0) 📝 `Cargo.toml` (+2 -0) 📝 `playback/Cargo.toml` (+4 -0) 📝 `playback/src/config.rs` (+38 -2) 📝 `playback/src/lib.rs` (+1 -0) 📝 `playback/src/player.rs` (+3 -34) 📝 `protocol/Cargo.toml` (+3 -0) 📝 `protocol/build.rs` (+15 -0) 📝 `src/main.rs` (+53 -10) </details> ### 📄 Description Requested file formats can be currently controlled only through the bitrate parameter, which translates to one of a few hard-coded priority lists. Some users may want to specify a different preference list, e.g.: - request AAC and/or FLAC, - prefer MP3 over OGG, - give up on a low-bandwidth connection if a low-bitrate format is unavailable, rather than falling back to a higher bitrate. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-02-27 20:01:41 +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#1236
No description provided.