v0.56.0: Connect to AirPlay — stream to AirPlay speakers via pyatv

Every song is decoded by the ffmpeg CLI and streamed over RAOP, so ALAC
and AIFF play too (only FairPlay is refused). pyatv has no pause or seek
for RAOP, so both restart the stream at the heard position. The picker
lists every AirPlay device on the network, greyed with the reason when
LinTunes can't stream to it (video-only TVs, PIN pairing). Casting and
AirPlay are mutually exclusive; the visualizer tile shows the AirPlay glyph
and a click there stops it. Needs: pip install -e . (adds pyatv).
This commit is contained in:
2026-10-15 16:01:08 -07:00
parent 00aa5e7f2e
commit c1aee48b8b
16 changed files with 1647 additions and 34 deletions
+6 -2
View File
@@ -360,7 +360,8 @@ class TransportBar(QWidget):
play_clicked = pyqtSignal() # MainWindow decides what "play" means
def __init__(self, player, manager, prefs, cast=None, parent=None):
def __init__(self, player, manager, prefs, cast=None, airplay=None,
parent=None):
super().__init__(parent)
self._player = player
self._prefs = prefs
@@ -543,8 +544,11 @@ class TransportBar(QWidget):
if cast is not None:
# While casting, the visualizer panel *is* the cast indicator —
# there is no spectrum to show, so a click there stops casting.
# Only one of them is ever connected; the other's disconnect is
# a no-op.
self._visualizer.cast_stop_requested.connect(
lambda: cast.disconnect())
lambda: (cast.disconnect(),
airplay is not None and airplay.disconnect()))
# ---- the header row ----