Thanks for the quick reply!

Re CLI, squeezebox json is using the same commands and gets the same
results, just that you get it returned in json format. I don't know any
python but tried looking at your code and it seems you're using the
"playlist" and "songinfo" command. In my php script I used the "status"
command which returned the strings necessary to show spotify cover art,
I'm not sure what those commands return but can compare them later.

Anyway, I did a simple skin


Code:
--------------------
    
  <window>
        <defaultcontrol>999</defaultcontrol>
        <allowoverlay>no</allowoverlay>
        <controls>
  <!-- HIDDEN BUTTON which calls the artist slideshow script -->
                <!--<control type="button" id="999">
        <posx>-10</posx>
        <posy>-10</posy>
        <width>1</width>
        <height>1</height>
        
<onfocus>RunScript(script.artistslideshow,artistfield=XSQUEEZE_TRACK_0_UNIARTIST&windowid=$INFO[Window.Property(XSQUEEZE_WINDOWID)])</onfocus>
  </control>
  -->
  
        <!-- (PSEUDO) VISUALIZATION -->
                <control type="visualisation">
                    <include>Dimensions_Fullscreen</include>
                    <posx>0</posx>
                    <posy>0</posy>
                    <visible>Player.HasAudio</visible>
                </control>
  
        <!-- ARTIST SLIDESHOW -->       
                <control type="multiimage" id ="105">
                <posx>0</posx>
                <posy>0</posy>
                <width>1280</width>
                <height>720</height>
                
<visible>SubString(Window.Property(XSQUEEZE_PLAYING_RADIO),false)</visible>
                <imagepath fallback="DefaultFanart.jpg" 
background="true">$INFO[Window.Property(ArtistSlideshow)]</imagepath>
                <aspectratio>scale</aspectratio>
                <timeperimage>5000</timeperimage>
                <fadetime>2000</fadetime>
                <randomize>true</randomize>
                <animation effect="fade" start="0" end="100" 
time="300">Visible</animation>
                <animation effect="fade" start="100" end="0" 
time="300">Hidden</animation>
                        <visible>!Player.HasVideo + !Player.HasAudio</visible>
            </control>
  
                <!-- VIDEO BACKGROUND -->
                <control type="videowindow" id="1">
                        <include>Dimensions_Fullscreen</include>
                        <description>Video Preview</description>
                        <posx>0</posx>
                        <posy>0</posy>
                        <visible>Player.HasVideo</visible>
                </control>
                <!-- COVER ART -->
            <control type="image">
                <posx>79</posx>
                    <posy>279</posy>
                    <width>362</width>
                    <height>361</height>
                    <texture>black.png</texture>
                        <colordiffuse>ff000000</colordiffuse>
            </control>
                <control type="image" id="100">
                    <description>Cover art for currently playing 
track</description>
                    <posx>80</posx>
                    <posy>280</posy>
                    <width>360</width>
                    <height>360</height>
                <!--<animation effect="slide" start="0,0" end="760,0" 
time="30000" loop="true" delay="1000">WindowOpen</animation>-->
                </control>
            <control type="image">
                <posx>0</posx>
                    <posy>639</posy>
                    <width>1280</width>
                    <height>1</height>
                    <texture>black.png</texture>
                        <colordiffuse>ff000000</colordiffuse>
            </control>
                <!-- LABEL BACKGROUND -->
            <control type="image">
                <posx>0</posx>
                    <posy>640</posy>
                    <width>1280</width>
                    <height>80</height>
                    <texture>black.png</texture>
                        <colordiffuse>aa000000</colordiffuse>
            </control>
  
                <!-- NOW PLAYING LABELS -->
                <control type="label" id="200">
        <description>Current Track Name Label</description>
                <posx>0</posx>
                <posy>670</posy>
            <width>520</width>
                        <height>20</height>
                
<visible>SubString(Window.Property(XSQUEEZE_TRACK_0_INPLAYLIST),true)</visible>
            <align>center</align>
        <aligny>center</aligny>
                <scroll>true</scroll>
                <label>$INFO[Window.Property(XSQUEEZE_TRACK_0_TITLE)]</label>
                <font>font24_title</font>
                <textcolor>ffffffff</textcolor>
                </control>
  <control type="label" id="201">
                <description>Current Artist Label</description>
                <posx>0</posx>
                <posy>650</posy>
                <width>520</width>
                        <height>20</height>
                <visible>true</visible>
                <align>center</align>
                <aligny>center</aligny>
                <scroll>true</scroll>
                <label>$INFO[Window.Property(XSQUEEZE_TRACK_0_ARTIST)]</label>
                <font>font11_title</font>
                <textcolor>ccffffff</textcolor>
  </control>
  <control type="label" id="202">
                <description>Current Album Label</description>
                <posx>0</posx>
                <posy>690</posy>
                <width>520</width>
                        <height>20</height>
                <visible>true</visible>
                <align>center</align>
                <aligny>center</aligny>
                <scroll>true</scroll>
                <label>$INFO[Window.Property(XSQUEEZE_TRACK_0_ALBUM)]</label>
                <font>font11_title</font>
                <textcolor>ccffffff</textcolor>
  </control>
  
  <!-- NEXT TRACK -->
  <control type="group">
  <visible>SubString(Window.Property(XSQUEEZE_PLAYING_RADIO),false)</visible>
  <description>Upcoming Tracks Thumbs</description>
  <posx>0</posx>
  <posy>0</posy>
  <control type="image" id="101">
  <description>Cover art for track + 1</description>
  <posx>970</posx>
  <posy>640</posy>
  <width>80</width>
  <height>80</height>
  </control>
  <control type="label" id="2001">
  <description>Coming Up Track1 Label</description>
  <posx>1060</posx>
  <posy>650</posy>
  <width>210</width>
          <height>20</height>
  
<visible>SubString(Window.Property(XSQUEEZE_TRACK_1_INPLAYLIST),true)</visible>
  <align>left</align>
  <aligny>center</aligny>
  <scroll>false</scroll>
  <label>$INFO[Window.Property(XSQUEEZE_TRACK_1_ARTIST)]</label>
  <font>font8</font>
  <textcolor>ccffffff</textcolor>
  </control>
  <control type="label" id="2002">
  <description>Coming Up Track1 Label</description>
  <posx>1060</posx>
  <posy>670</posy>
  <width>210</width>
          <height>20</height>
  
<visible>SubString(Window.Property(XSQUEEZE_TRACK_1_INPLAYLIST),true)</visible>
  <align>left</align>
  <aligny>center</aligny>
  <scroll>false</scroll>
  <label>$INFO[Window.Property(XSQUEEZE_TRACK_1_TITLE)]</label>
  <font>font8</font>
  <textcolor>ccffffff</textcolor>
  </control>
  <control type="label" id="2003">
  <description>Coming Up Track1 Label</description>
  <posx>1060</posx>
  <posy>690</posy>
  <width>210</width>
          <height>20</height>
  
<visible>SubString(Window.Property(XSQUEEZE_TRACK_1_INPLAYLIST),true)</visible>
  <align>left</align>
  <aligny>center</aligny>
  <scroll>false</scroll>
  <label>$INFO[Window.Property(XSQUEEZE_TRACK_1_ALBUM)]</label>
  <font>font8</font>
  <textcolor>ccffffff</textcolor>
  </control>
  
        <!-- NOT USING -->
  <control type="image" id="102">
  <description>Cover art for track + 2</description>
  <posx>-850</posx>
  <posy>0</posy>
  <width>75</width>
  <height>75</height>
  </control>
  <control type="image" id="103">
  <description>Cover art for track + 3</description>
  <posx>-850</posx>
  <posy>0</posy>
  <width>75</width>
  <height>75</height>
  </control>
  </control>
  <!-- TRACK PROGRESS BAR -->
  <control type="progress" id="203">
  <description>Track Playing Progress</description>
  <posx>0</posx>
  <posy>640</posy>
  <width>1280</width>
  <height>10</height>
                    <texture>black.png</texture>
                        <colordiffuse>aaffffff</colordiffuse>
  <visible>SubString(Window.Property(XSQUEEZE_PLAYING_RADIO),false)</visible>
  <reveal>false</reveal>
  <info/>
  </control>
  
  
  </controls>
  </window>
  
--------------------


I couldn't resist including a pseudo visualization. If you have XBMC
playing any sound it will show a visualization (if activated in xbmc
music settings), if you're playing video it will show that, otherwise it
will show the artist slideshow.


------------------------------------------------------------------------
tobiasfunke's Profile: http://forums.slimdevices.com/member.php?userid=50968
View this thread: http://forums.slimdevices.com/showthread.php?t=93544

_______________________________________________
plugins mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/plugins

Reply via email to