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 Navigation from './Navigation'
|
||||||
import Table from './Table'
|
import Table from './Table'
|
||||||
|
|
||||||
import { Howl } from 'howler'
|
import { Howl, Howler } from 'howler'
|
||||||
|
|
||||||
let audioPlayer = null
|
let audioPlayer = null
|
||||||
|
|
||||||
@ -171,6 +171,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
stationSrc = station.url_resolved
|
stationSrc = station.url_resolved
|
||||||
}
|
}
|
||||||
|
Howler.unload()
|
||||||
audioPlayer = new Howl({
|
audioPlayer = new Howl({
|
||||||
src: stationSrc,
|
src: stationSrc,
|
||||||
volume: vm.player.volume,
|
volume: vm.player.volume,
|
||||||
@ -196,7 +197,6 @@ export default {
|
|||||||
vm.$store.dispatch('isBuffering', false)
|
vm.$store.dispatch('isBuffering', false)
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
audioPlayer.unload()
|
|
||||||
audioPlayer.play()
|
audioPlayer.play()
|
||||||
audioPlayer.fade(0, vm.player.volume, 500)
|
audioPlayer.fade(0, vm.player.volume, 500)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user