v18 How can I reuse the Kodi 'volumebar' dialog? - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32) +--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26) +--- Thread: v18 How can I reuse the Kodi 'volumebar' dialog? (/showthread.php?tid=334806) |
How can I reuse the Kodi 'volumebar' dialog? - sunblade - 2018-08-21 What I want to do is use the 'volumebar' to show the current volume of a separate volume channel (a networked pulseaudio stream) that is not related to Kodi's volume. I am currently using a mixture of python and bash scripts (initiated by remote button presses) to control the streaming volume and obtain the behavior I want. The piece that I am missing is an elegant way to inform the user of the current volume level. The default Kodi 'volumebar' would be the obvious solution except that I have not identified a way to control it. I am aware of the following methods: (This modifies Kodi's volume which is not what I want to do) (This doesn't allow me to set the volume level) I haven't touched addons yet and am hoping I don't need to for this last bit. Might someone know how to reuse the volumebar using python scripting? Or maybe there is an alternate approach I should take? RE: How can I reuse the Kodi 'volumebar' dialog? - ronie - 2018-08-21 it's not possible to re-use the built-in volume dialog for that. you'd need to create your own dialog through python. |