From a0560f020f9547158537090ee3e1c724038eb1b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcos=20Pe=C3=B1a?= Date: Tue, 9 Nov 2021 18:03:49 +0000 Subject: [PATCH] Reverts player changes introduced in MR!1291 breaking background playback (#1509) MR !1397 --- changes/changelog.d/1509.bugfix | 1 + front/src/components/audio/Player.vue | 5 +---- 2 files changed, 2 insertions(+), 4 deletions(-) create mode 100644 changes/changelog.d/1509.bugfix diff --git a/changes/changelog.d/1509.bugfix b/changes/changelog.d/1509.bugfix new file mode 100644 index 000000000..74c3d7d84 --- /dev/null +++ b/changes/changelog.d/1509.bugfix @@ -0,0 +1 @@ +Reverts changes that break mobile browser playback (#1509) diff --git a/front/src/components/audio/Player.vue b/front/src/components/audio/Player.vue index 633ec13e3..fce05c8d7 100644 --- a/front/src/components/audio/Player.vue +++ b/front/src/components/audio/Player.vue @@ -604,11 +604,8 @@ export default { async loadSound (newValue, oldValue) { let trackData = newValue const oldSound = this.currentSound - // stop all other sounds! - // we do this here (before the track has loaded) to get a predictable - // song order. - Howler.stop() if (oldSound && trackData !== oldValue) { + oldSound.stop(this.soundId) this.soundId = null } if (!trackData) {