Posts: 1,388
Joined: Aug 2009
Reputation:
17
Hi,
Is there a visibility based on the volume level? Something like 'player.volume=50' for 50% volume, so it makes it possible to have different images for different volume levels? I can't find anything in the skinning manual for it.
Thanks
Posts: 15,261
Joined: Jan 2009
Reputation:
726
ronie
Team-Kodi Member
Posts: 15,261
yes, you can use player.volume, it'll return dB values.
so min volume = -60.0 dB
max volume = 0.0 dB
in T! i'm using three different images, with these visible conditions:
<visible>IntegerGreaterThan(player.volume,-41)</visible>
<visible>IntegerGreaterThan(player.volume,-21)</visible>
<visible>IntegerGreaterThan(player.volume,-1)</visible>
Posts: 1,388
Joined: Aug 2009
Reputation:
17
Cheers guys, much appreciated.
Posts: 1,388
Joined: Aug 2009
Reputation:
17
One other thing i can't find mention of... what does the visibility condition 'player.passthrough' relate to?
Thanks
Posts: 17,245
Joined: Aug 2007
Reputation:
566
Hitcher
Team-Kodi Member
Posts: 17,245
That's the condition to use when audio is passed through and XBMC has no control over it's volume.
Posts: 1,388
Joined: Aug 2009
Reputation:
17
Ok, like bitstreaming. Cheers Hitcher.