mirror of
https://github.com/owntone/owntone-server.git
synced 2025-11-22 02:35:32 -05:00
[web] Simplify player API calls
This commit is contained in:
@@ -48,7 +48,7 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
changeVolume() {
|
||||
player.volume(this.player.volume)
|
||||
player.setVolume(this.player.volume)
|
||||
},
|
||||
toggle() {
|
||||
this.player.volume = this.player.volume > 0 ? 0 : this.volume
|
||||
|
||||
@@ -64,7 +64,7 @@ export default {
|
||||
|
||||
methods: {
|
||||
changeVolume() {
|
||||
player.outputVolume(this.output.id, this.volume)
|
||||
player.setVolume(this.volume, this.output.id)
|
||||
},
|
||||
toggle() {
|
||||
outputs.update(this.output.id, { selected: !this.output.selected })
|
||||
|
||||
Reference in New Issue
Block a user