Fix AVR playing state
Deploy HEOS panel / deploy (push) Successful in 25s

This commit is contained in:
2026-09-16 20:39:53 +02:00
parent 532b48ad37
commit 51dff45b54
4 changed files with 16 additions and 9 deletions
+5 -5
View File
@@ -263,11 +263,11 @@ function paintGrouping() {
ui.joined.hidden = inside.length === 0;
// Grouped rooms share the host's transport, so one of them playing means
// the whole group is -- and the tint goes on the group's card.
const groupPlaying = inside.some((node) => node.classList.contains('playing'));
ui.source.classList.toggle('playing', groupPlaying);
// A film on the Zidoo also moves the AVR up. The Zidoo does not say whether
// it is paused, so a loaded film counts, and it gets no tint.
ui.source.classList.toggle('on-top', groupPlaying || Boolean(avrNowPlaying));
// A film running on the Zidoo counts as the AVR playing too, grouped rooms or not.
const playing = inside.some((node) => node.classList.contains('playing'))
|| avrNowPlaying?.play_state === 'play';
ui.source.classList.toggle('playing', playing);
ui.source.classList.toggle('on-top', playing);
}
/* Press and hold to keep moving, accelerating as you hold. */