husudosu / mpv-remote-node

MPV Remote plugin
MIT License
49 stars 9 forks source link

Added max volume prop to playerData #1

Closed byter11 closed 2 years ago

byter11 commented 2 years ago

Allows the frontend to go above 100 volume when custom max volume is used. Can be implemented on the official android app by editing views/Player.vue


if (playerData.value.volume < playerData.value["volume-max"]) {
    const newVolume = Math.min(playerData.value["volume-max"], playerData.value.volume + 5);
    apiInstance.post(`controls/volume/${newVolume}`)
    ...
    ...
}```
husudosu commented 2 years ago

Thanks for your work, I've checked your PR and works fine. You can implement it into app if you want.