chorus2 icon indicating copy to clipboard operation
chorus2 copied to clipboard

Ability to manage volume with steps (plus/minus)

Open paulvt opened this issue 7 years ago • 2 comments

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.

paulvt avatar Apr 20 '17 18:04 paulvt

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

jez500 avatar May 06 '17 21:05 jez500

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.

paulvt avatar May 10 '17 18:05 paulvt