- Thread starter
- #11
Thanks.
It's frustating at some times but whenever you see the result, you'll be satisfied.. at least that goes for me.
Anyhow, just one more problem: There are 4 images: playbutton, pausebutton, fastforward-button and rewindbutton. However, here the display of that button doesn't work. For example, when I play it should show playbutton, when I pause the pausebutton etc but it always displays RW-button. If I remove that <control> it'll go to always FF-button, etc till I remove them all and there is no button-image left.
I think I know the reason but don't know how to fix it. For example, the Playbutton-control:
The problem is simple: <visible>Player.HasVideo+!Player.HasAudio+control.isvisible(3336)</visible>
(Note: I divided HasMedia into HasAudio and HasVideo to increase the range of possibilities for the script, but this shouldn't affect my problem)
The problem here is the last part, +control.isvisible(3336) which basically means it will always display that button (well actually image) if that condition is met. Anyway, I don't know how I can script it in such a way that it still has +control.isvisible(3336) in it but kinda keeping in line with what should be displayed. Like another requirement such as +Player.Playing for Playbutton, +Player.Paused for Pausebutton etc. But I don't know how to script this..
Update: Also ran into another much bigger problem. As said above I've made two groups: Audio and Video. To make this work I created two new <control> (dummy's, like 3337), that looks like this:
Corresponding with that, I editted the <visible> rules in the video and audio <controls> as well, this looks like the following:
Video: <visible>Player.HasVideo+!Player.HasAudio+control.isvisible(3336)</visible>
Audio: <visible>player.hasAudio+control.isvisible(3335)</visible>
As you can see I've add !Player.HasAudio to the Video-control. This was nessecary, otherwise I would see the Video-things (such as the bigger 'screen', the Year/Genre information which I don't want to see at music etc) when playing back audio. Anyway, with this Video-rule, nothing of Video is being displayed. The <controls> (such as the video miniature but also title, etc) is only being displayed when using the following rule:
<visible>Player.HasVideo</visible>
So both !Player.HasAudio and +control.isvisible(3336) prevent any video or related information being displayed. I really can't make sense of it.. it has to work somehow, right?
Anyhow, just one more problem: There are 4 images: playbutton, pausebutton, fastforward-button and rewindbutton. However, here the display of that button doesn't work. For example, when I play it should show playbutton, when I pause the pausebutton etc but it always displays RW-button. If I remove that <control> it'll go to always FF-button, etc till I remove them all and there is no button-image left.
- <control>
<description>play logo</description>
<type>image</type>
<id>9993</id>
<posX>685</posX>
<posY>20</posY>
<texture>logo_play.png</texture>
<visible>Player.HasVideo+!Player.HasAudio+control.isvisible(3336)</visible>
</control>
The problem is simple: <visible>Player.HasVideo+!Player.HasAudio+control.isvisible(3336)</visible>
(Note: I divided HasMedia into HasAudio and HasVideo to increase the range of possibilities for the script, but this shouldn't affect my problem)
The problem here is the last part, +control.isvisible(3336) which basically means it will always display that button (well actually image) if that condition is met. Anyway, I don't know how I can script it in such a way that it still has +control.isvisible(3336) in it but kinda keeping in line with what should be displayed. Like another requirement such as +Player.Playing for Playbutton, +Player.Paused for Pausebutton etc. But I don't know how to script this..
Update: Also ran into another much bigger problem. As said above I've made two groups: Audio and Video. To make this work I created two new <control> (dummy's, like 3337), that looks like this:
<control>
<description>dummy (audio only)</description>
<type>label</type>
<id>3335</id>
<posX>2000</posX>
<label>#Play.Current.Album</label>
<visible>player.hasAudio+control.hastext(3335)</visible>
</control>
<control>
<description>dummy (video only)</description>
<type>label</type>
<id>3336</id>
<posX>2000</posX>
<label>#Play.Current.Album</label>
<visible>player.hasVideo+control.hastext(3336)</visible>
</control>
Corresponding with that, I editted the <visible> rules in the video and audio <controls> as well, this looks like the following:
Video: <visible>Player.HasVideo+!Player.HasAudio+control.isvisible(3336)</visible>
Audio: <visible>player.hasAudio+control.isvisible(3335)</visible>
As you can see I've add !Player.HasAudio to the Video-control. This was nessecary, otherwise I would see the Video-things (such as the bigger 'screen', the Year/Genre information which I don't want to see at music etc) when playing back audio. Anyway, with this Video-rule, nothing of Video is being displayed. The <controls> (such as the video miniature but also title, etc) is only being displayed when using the following rule:
<visible>Player.HasVideo</visible>
So both !Player.HasAudio and +control.isvisible(3336) prevent any video or related information being displayed. I really can't make sense of it.. it has to work somehow, right?
Netherlands