- Moderator
- #11
You have to load a dummy control to print something off-screen from the music only info that isn't used in the video info. Make sure it is placed earlier than any music or video stuff. (Taken from common.home.overlays.xml in the Streamed MP skin)
Then when setting visibility, use the id of the dummy control as a switch to show or not show a later control if music is, or is not playing.
from my basichome.xml:
or
Chuck
<control>
<description>dummy (visible when music is playing)</description>
<type>label</type>
<id>3337</id>
<posX>2000</posX>
<label>#Play.Current.Album</label>
<visible>player.hasmedia+control.hastext(3337)</visible>
</control>
Then when setting visibility, use the id of the dummy control as a switch to show or not show a later control if music is, or is not playing.
from my basichome.xml:
for when music is playing and you don't want the videoframe to show the CD cover.<control>
<description>Video logo</description>
<type>videowindow</type>
<id>987</id>
<posX>500</posX>
<posY>350</posY>
<width>100</width>
<height>70</height>
<centered>yes</centered>
<keepaspectratio>yes</keepaspectratio>
<visible>Player.HasMedia+!control.isvisible(3337)</visible>
<textureFocus>-</textureFocus>
</control>
or
for when you have video playing and don't want Video info printing where your music info is placed<control>
<id>1</id>
<type>fadelabel</type>
<posX>580</posX>
<posY>350</posY>
<width>180</width>
<visible>Player.HasMedia+control.isvisible(3337)</visible>
<label>#Play.Current.Title</label>
<align>left</align>
<font>font12</font>
<textcolor>ffffffff</textcolor>
</control>
Chuck
United States of America