Reverts player changes introduced in MR!1291 breaking background playback (#1509)

MR !1397
environments/review-front-1376-hzf3ru/deployments/8423
Marcos Peña 2021-11-09 18:03:49 +00:00 zatwierdzone przez JuniorJPDJ
rodzic 2e4354717f
commit a0560f020f
2 zmienionych plików z 2 dodań i 4 usunięć

Wyświetl plik

@ -0,0 +1 @@
Reverts changes that break mobile browser playback (#1509)

Wyświetl plik

@ -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) {