player: support toggle pause again
This commit is contained in:
parent
44e2d39252
commit
7d963e18fd
@ -77,9 +77,11 @@ export default ({
|
||||
if (state.isPlaying) {
|
||||
state.isPlaying = false
|
||||
state.isPaused = true
|
||||
player.doPause()
|
||||
} else {
|
||||
state.isPlaying = true
|
||||
state.isPaused = false
|
||||
player.doResume()
|
||||
}
|
||||
},
|
||||
setTitle(state, title) {
|
||||
@ -109,7 +111,7 @@ export default ({
|
||||
context.commit('setBuffering', true)
|
||||
context.commit('setTitle', station.name)
|
||||
context.commit('setPausing', false)
|
||||
player.doPlay(station.url_resolved)
|
||||
player.doPlay(station.url_resolved || station.urlresolved)
|
||||
},
|
||||
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user