0.2.0: play through Spotify Soloist
All checks were successful
release / release (push) Successful in 10m37s

Spotify refuses librespot the audio keys ("error audio key 0 1",
librespot #1649), so nothing played. Playback now goes through Spotify
Soloist, Spotify's own headless Linux player:

- The TV downloads it from Spotify (redistribution is not allowed), keeps
  it fresh (builds expire after 90 days), runs and restarts it, and drives
  it over its local WebSocket API; its events feed Most szól.
- It needs the user's own Soloist API key: the key screen shows a QR code
  to a small page on the TV where the phone pastes it (or type it on the
  TV); asked once after sign-in, also in Settings. Then the TV is picked
  once in the phone's Spotify app (pairing); home shows that step.
- Soloist is the Connect device; librespot only signs in (pairing code)
  and browses. Its player, Connect and zeroconf are gone, and with them
  GStreamer.
- A track from a list plays and the next ones are queued (Soloist's play
  takes one URI). The queue panel is back (Soloist reports the queue).
- Settings: the player's state and key instead of quality/normalisation/
  autoplay (Soloist decides those).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Tamas Csikel
2026-11-03 21:50:44 +01:00
parent 5a76e56fe1
commit 7fd7e242a7
24 changed files with 1274 additions and 1268 deletions

View File

@@ -66,19 +66,6 @@ export component ConnectScreen inherits Rectangle {
font-size: 26 * Tv.u;
color: Tv.text;
}
Rectangle { height: 10 * Tv.u; }
Text {
text: "A SPOTIFY APPBÓL";
font-size: 20 * Tv.u;
font-weight: 700;
letter-spacing: 3 * Tv.u;
color: #1ed760;
}
Body {
text: "Ha a telefon ugyanazon a Wi-Fin van: indíts el egy számot, koppints az eszközök ikonjára, és válaszd: „" + root.device + "”.";
font-size: 26 * Tv.u;
color: Tv.text;
}
Rectangle { }
HorizontalLayout {
spacing: 16 * Tv.u;
@@ -242,3 +229,121 @@ export component MessageScreen inherits Rectangle {
}
}
}
// The Soloist API key: a QR code to a page on this TV where the phone pastes
// the key (src/keyserver.rs). OK types it on the TV, Back: later.
export component KeyScreen inherits Rectangle {
in property <float> alpha: 1;
in property <image> qr;
in property <string> url;
pane := GlassPane {
x: (root.width - self.width) / 2;
y: (root.height - self.height) / 2 - 20 * Tv.u;
width: 1640 * Tv.u;
height: 760 * Tv.u;
radius: 56 * Tv.u;
frost: 3.6;
tint: Tv.smoke.with-alpha(0.46);
glow: #1ed760;
alpha: root.alpha;
VerticalLayout {
x: 80 * Tv.u;
y: 72 * Tv.u;
width: 860 * Tv.u;
height: parent.height - 144 * Tv.u;
spacing: 18 * Tv.u;
opacity: root.alpha;
HorizontalLayout {
spacing: 24 * Tv.u;
alignment: start;
Rectangle {
width: 80 * Tv.u;
height: 80 * Tv.u;
border-radius: self.width / 2;
background: #1ed760;
SpIcon {
name: "audio";
size: 44 * Tv.u;
ink: #121317;
}
}
VerticalLayout {
alignment: center;
Title { text: "Még egy lépés: a lejátszó"; }
Caption { text: "A Spotify Soloist saját kulccsal indul"; }
}
}
Rectangle { height: 14 * Tv.u; }
Body {
text: "A zenét a Spotify saját TV-s lejátszója, a Soloist játssza. Ehhez kell egy kulcs a Spotify-fiókodból (Premium).";
font-size: 26 * Tv.u;
color: Tv.text;
}
Text {
text: "1. A TELEFONON";
font-size: 20 * Tv.u;
font-weight: 700;
letter-spacing: 3 * Tv.u;
color: #1ed760;
}
Body {
text: "Nyisd meg: developer.spotify.com/dashboard/soloist, és hozz létre egy kulcsot.";
font-size: 26 * Tv.u;
color: Tv.text;
}
Text {
text: "2. QR-KÓDDAL A TV-RE";
font-size: 20 * Tv.u;
font-weight: 700;
letter-spacing: 3 * Tv.u;
color: #1ed760;
}
Body {
text: "Olvasd be a kódot, és illeszd be a kulcsot. A telefon ugyanazon a Wi-Fin legyen, mint a TV.";
font-size: 26 * Tv.u;
color: Tv.text;
}
Rectangle { }
Caption { text: "OK: beírás a TV-n · Vissza: később (a Beállításokban is megadhatod)"; }
}
qr-box := Rectangle {
x: parent.width - self.width - 96 * Tv.u;
y: 80 * Tv.u;
width: 440 * Tv.u;
height: 440 * Tv.u;
border-radius: 28 * Tv.u;
background: #ffffff;
opacity: root.alpha;
clip: true;
if root.qr.width > 0: Image {
x: 20 * Tv.u;
y: 20 * Tv.u;
width: parent.width - 40 * Tv.u;
height: parent.height - 40 * Tv.u;
source: root.qr;
image-rendering: pixelated;
}
if root.qr.width == 0: Text {
text: "Nincs hálózat";
color: #121317;
font-size: 26 * Tv.u;
}
}
Text {
x: qr-box.x;
y: qr-box.y + qr-box.height + 28 * Tv.u;
width: qr-box.width;
horizontal-alignment: center;
text: root.url;
font-size: 26 * Tv.u;
font-weight: 600;
color: Tv.text-secondary;
opacity: root.alpha;
}
}
out property <[GlassRect]> glass: [pane.glass];
}