v0.57.0: repeat button; AirPlay compatibility handshake for third-party speakers
- Transport: a repeat button (off / all / one) between shuffle and the visualizer. Repeat-all wraps the walk (a shuffled one is reshuffled per lap); repeat-one replays a song that finishes, Next/Previous still move. BPM button and the now-playing minimum shrink to make room. - Clicking the streaming tile to stop casting/AirPlay no longer also opens the big visualizer (the release after the stop counted as a click). - AirPlay: pyatv's AirPlay 2 session is silent on a WiiM, and its AirPlay 1 pairs then talks plaintext, which the WiiM hangs up on. Non-Apple speakers now get cliraop's handshake: auth-setup, no pairing, ALAC (uncompressed frames). airplay_protocol "2" keeps pyatv's AirPlay 2.
This commit is contained in:
@@ -120,7 +120,9 @@ def test_panel_fills_what_the_gaps_leave(qapp, tmp_path):
|
||||
window.resize(1280, 500)
|
||||
qapp.processEvents()
|
||||
assert wide - bar._now_playing.width() == 640
|
||||
window.resize(800, 500)
|
||||
# Just above the narrowest the row of boxes can be (it grows with each
|
||||
# control: 784 px before the repeat button, 858 after).
|
||||
window.resize(bar.minimumSizeHint().width() + 16, 500)
|
||||
qapp.processEvents()
|
||||
assert bar._now_playing.width() >= NOW_PLAYING_MIN
|
||||
bpm = bar._bpm_button.parentWidget()
|
||||
@@ -163,13 +165,13 @@ def test_row_is_knolled_with_equal_gaps_and_ends(qapp, tmp_path):
|
||||
window.resize(width, 500)
|
||||
qapp.processEvents()
|
||||
row = [bar._prev_btn.parentWidget(), bar._shuffle_btn.parentWidget(),
|
||||
bar._visualizer, bar._volume_slider, bar._now_playing,
|
||||
bar._repeat_btn.parentWidget(), bar._visualizer, bar._volume_slider, bar._now_playing,
|
||||
bar._bpm_button.parentWidget()]
|
||||
edges = [(w.geometry().left(), w.geometry().right()) for w in row]
|
||||
gaps = [b[0] - a[1] - 1 for a, b in zip(edges, edges[1:])]
|
||||
# The same GAP everywhere, ends included, at every width.
|
||||
left_end, right_end = edges[0][0], bar.width() - 1 - edges[-1][1]
|
||||
assert gaps + [left_end, right_end] == [GAP] * 7
|
||||
assert gaps + [left_end, right_end] == [GAP] * 8
|
||||
|
||||
|
||||
def test_gap_between_playlists_and_songs_matches_left_inset(qapp, tmp_path):
|
||||
|
||||
Reference in New Issue
Block a user