fix howler instance unloading before playing

This commit is contained in:
Jonas Heinrich 2020-11-15 23:45:43 +01:00
parent 524cd875e1
commit f69bbfb523

View File

@ -48,7 +48,7 @@ import axios from '@nextcloud/axios'
import Navigation from './Navigation'
import Table from './Table'
import { Howl } from 'howler'
import { Howl, Howler } from 'howler'
let audioPlayer = null
@ -171,6 +171,7 @@ export default {
} else {
stationSrc = station.url_resolved
}
Howler.unload()
audioPlayer = new Howl({
src: stationSrc,
volume: vm.player.volume,
@ -196,7 +197,6 @@ export default {
vm.$store.dispatch('isBuffering', false)
},
})
audioPlayer.unload()
audioPlayer.play()
audioPlayer.fade(0, vm.player.volume, 500)