fix howler instance unloading before playing
This commit is contained in:
parent
524cd875e1
commit
f69bbfb523
@ -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)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user