Integrate shared playback coordination and release 0.10.7
Build and Publish / Build and Publish Docker Image (push) Successful in 5m30s

This commit is contained in:
ab
2026-09-10 17:08:34 +03:00
parent 3641b073e5
commit ba1c565bdc
7 changed files with 601 additions and 117 deletions
+2 -3
View File
@@ -1688,7 +1688,7 @@ document.addEventListener('alpine:init', () => {
}
const player = Alpine.store('player');
if (player && Array.isArray(data.commands)) {
if (player && (this.isActive() || this.shouldPlayJamLocally()) && Array.isArray(data.commands)) {
data.commands.forEach(command => player._executeRemoteCommand(command));
}
if (player && !this.isActive()) {
@@ -1706,7 +1706,6 @@ document.addEventListener('alpine:init', () => {
},
_apply(data) {
const wasActive = this.isActive();
const previousJamId = this.currentJamId;
this.activeDeviceId = data.active_device_id || null;
this.devices = Array.isArray(data.devices) ? data.devices : [];
@@ -1722,7 +1721,7 @@ document.addEventListener('alpine:init', () => {
if (previousJamId !== this.currentJamId || !this.canPlayJamLocally()) {
this._setJamLocalPlayback(false, { pauseLocal: true });
}
if (wasActive && !this.isActive()) {
if (!this.isActive() && !this.shouldPlayJamLocally()) {
Alpine.store('player')?._pauseLocal();
}
this._maybeShowRemoteHint();