Multiimage with variable path

Discussion in 'Skins and Plugins Installer (MPEI)' started by Bussiebaer, October 28, 2008.

  1. Bussiebaer

    Bussiebaer Portal Pro

    January 11, 2008
    Likes Received:
    +15 / 0
    Home Country:
    Germany Germany
    Show System Specs
    I've tried to use Multiimage, to get at Mymusicplayingnow.xlm a slideshow of the current playing artist. For this I tried as imagepath Music\#Play.Current.Artist. But with that the Screen turns black. A look at the Mediaportal.log shows, that he don't change #Play.Current.Artist to the current Artist, he keeps it in the path:
    Code (Text):
    1. 2008-10-28 18:07:15.402000 [Info.][MPMain]: render exception:System.IO.DirectoryNotFoundException: Ein Teil des Pfades C:\Program Files\Team MediaPortal\MediaPortal\Skin\Indigo\media\animations\Music\#Play.Current.Artist\1 konnte nicht gefunden werden.
    2.    bei System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
    3.    bei System.IO.Directory.InternalGetFileDirectoryNames(String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption)
    4.    bei System.IO.Directory.GetFiles(String path, String searchPattern, SearchOption searchOption)
    5.    bei System.IO.Directory.GetFiles(String path)
    6.    bei MediaPortal.GUI.Library.GUIMultiImage.LoadDirectory()
    7.    bei MediaPortal.GUI.Library.GUIMultiImage.AllocResources()
    8.    bei MediaPortal.GUI.Library.GUIMultiImage.Render(Single timePassed)
    9.    bei MediaPortal.GUI.Library.GUIControl.DoRender(Single timePassed, UInt32 currentTime)
    10.    bei MediaPortal.GUI.Library.GUIWindow.Render(Single timePassed)
    Here is the Code-Snip of mymusicplayingnow.xlm:
    Code (Text):
    1. <control>
    2. <description>slideshow control</description>
    3. <type>multiimage</type>
    4. <id>1000</id>
    5. <posx>0</posx>
    6. <posy>0</posy>
    7. <width>1366</width>
    8. <height>768</height>
    9. <visible>true</visible>
    10. <imagepath>Music\#Play.Current.Artist</imagepath>
    11. <colordiffuse>66ffffff</colordiffuse>
    12. <timeperimage>10000</timeperimage>
    13. <fadetime>2000</fadetime>
    14. <pauseatend>30000</pauseatend>
    15. <randomize>true</randomize>
    16. <loop>yes</loop>
    17. </control>
    With hardcoded path it works, but is not Artist-related anymore. Also the colordiffuse-Option works only for the first picture.

    So, multiimage shows three issus for this kind of use:
    1. No change of imagepath via variable possible
    2. Black screen if path don't exist
    3. colordiffuse only on the first picture

    Is there an other way to get this to work? Or will multiimage be overworked in future SVN, so it can be used that way?

    Sorry, if this is the wrong forum...

Users Viewing Thread (Users: 0, Guests: 0)

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice
  • About The Project

    The vision of the MediaPortal project is to create a free open source media centre application, which supports all advanced media centre functions, and is accessible to all Windows users.

    In reaching this goal we are working every day to make sure our software is one of the best.


  • Support MediaPortal!

    The team works very hard to make sure the community is running the best HTPC-software. We give away MediaPortal for free but hosting and software is not for us.

    Care to support our work with a few bucks? We'd really appreciate it!