Is the format of visable tag allowed?
#1
is the format of visable tag allowed? i have tried it and it obviously doesnt work. what i am doing is i got an image on the bg which is overlayed with the music and video osd when the player has control. now it works with one of the 2. however when i use the or neither work.

any ideas?

example:
<control>
<type>image</type>
<id>15</id>
<posx>30</posx>
<posy>300</posy>
<height>180</height>
<width>180</width>
<texture>home-music-icon.png</texture>
<visible>!player.hasaudio | !player.hasvideo</visible>
</control>
Reply
#2
the <visible> tag in it's current state means:

show the control if it's not playing music or it's not playing video.

thus, in it's current state, it is in fact equivalent to:

show the control if it's not playing music and video at the same time. this is because !a | !b = !(a + b). as it is impossible to play music + video at the same time, this will always be true. i.e.

<visible>true</visible>

the control will always be shown.

perhaps you could detail what you are trying to achieve?
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#3
thanks for definition.

what i am attempting to do is fill the void of where my overlays appear. when there is no music or videos playing and the overlays are off. i have logos in the bottom left corner.

however, when either overlay turns on it appears ontop on the logo.

what i want to achieve is to have the logo only visable when neither player's overlay is active. hence, the logo appears when the music or videos are not playing.
Reply
#4
isn't there a player.hasmedia?
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#5
if there is. that is what i would need. Smile
Reply
#6
so you only want it to appear when neither audio or video is playing.

thus, you'd do:

<visible>!(player.hasaudio | player.hasvideo)</visible>

which is the same as:

<visible>!player.hasaudio + !player.hasvideo</visible>

or:

<visible>!player.hasmedia</visible>

take your pick.
Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.


Image
Reply
#7
beautiful, thanks boss. i tried the !player.hasmedia and it worked like a charm.
Reply

Logout Mark Read Team Forum Stats Members Help
Is the format of visable tag allowed?0