Kodi Community Forum
Slider for Volume control (eden-pre) - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Skinning (https://forum.kodi.tv/forumdisplay.php?fid=12)
+--- Thread: Slider for Volume control (eden-pre) (/showthread.php?tid=105155)



Slider for Volume control (eden-pre) - Hitcher - 2011-07-09

I've got the slider control working for seeking but can't get it to work for volume control.

Am I correct in assuming the action is volume?

ie <action>volume</action>

Thanks.


- ronie - 2011-07-09

that's correct.
here's what i'm using:
Code:
<control type="slider" id="888">
    <description>Volume Slider</description>
    <posx>1065</posx>
    <posy>66</posy>
    <width>130</width>
    <height>15</height>
    <action>volume</action>
    <visible>Player.Playing</visible>
</control>

in which window/dialog are you trying to add it?
afaik it won't work in any of the modeless dialogs, like DialogVolumeBar.xml


- Hitcher - 2011-07-09

That's what I was trying to use it in and surely that's where it's most likely to go?

I've added a global Volume button that opens DialogVolume when focused/clicked and from there want to add the ability to use a mouse/touch screen to adjust it.


- Jezz_X - 2011-07-09

I always find that when you manually open it that dialog auto closes too quick


- Hitcher - 2011-07-09

Well I've got it working using a global include with all literally all the code from DialogVolume.xml - which seems wasteful seeing as it's the volume I'm controlling but there you go.


- jmarshall - 2011-07-11

You can always dump it in a different dialog.