chorus2
chorus2 copied to clipboard
Ability to manage volume with steps (plus/minus)
Currently, Chorus2 allows for changing the volume by clicking somewhere on a 0–100% scale. Changing this, triggeres a Kodi software volume change.
I have a Kodi remote app (i.e. Kodimote) that allows for setting the way volume is managed to "relative mode", i.e. by sending volume down/up commands. This has the main benefit that if Kodi is connected via CEC to a AVR, the volume on the receiver is controlled instead. It would be great to have this feature in Chorus2 so that it is not the only interface of Kodi that just changes the software volume.
So this appears to be possible via the api using http://kodi.wiki/view/JSON-RPC_API/v6#Input.Action and sending volampup
and volampdown
. You can test this using the "Api browser" in chorus.
If it does work, still not 100% how to implement it into the app, maybe an option to add custom InputAction mappings to keys or make a custom control, I would prefer not to replace the current method that uses http://kodi.wiki/view/JSON-RPC_API/v6#Application.SetVolume
I could only find Input.ExecuteAction
in the API browser. Passing ["volumeup"]
works as suggested!
About the UI, I agree. It's unfortunate that it doesn't seem to be possible to detect that KODI is connected to a receiver/AVR via CEC. So a setting is probably necessary.
In Kodimote, if relative volume/steps are enabled, the volume bar in the UI is replaced by a bar with a -
and +
button with the same width and blackness in between to indicate that absolute volume setting is not possible.