- January 11, 2008
- 263
- 15
- Home Country
- Germany
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:
Here is the Code-Snip of mymusicplayingnow.xlm:
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...
Code:
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.
bei System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath)
bei System.IO.Directory.InternalGetFileDirectoryNames(String path, String userPathOriginal, String searchPattern, Boolean includeFiles, Boolean includeDirs, SearchOption searchOption)
bei System.IO.Directory.GetFiles(String path, String searchPattern, SearchOption searchOption)
bei System.IO.Directory.GetFiles(String path)
bei MediaPortal.GUI.Library.GUIMultiImage.LoadDirectory()
bei MediaPortal.GUI.Library.GUIMultiImage.AllocResources()
bei MediaPortal.GUI.Library.GUIMultiImage.Render(Single timePassed)
bei MediaPortal.GUI.Library.GUIControl.DoRender(Single timePassed, UInt32 currentTime)
bei MediaPortal.GUI.Library.GUIWindow.Render(Single timePassed)
Here is the Code-Snip of mymusicplayingnow.xlm:
Code:
<control>
<description>slideshow control</description>
<type>multiimage</type>
<id>1000</id>
<posx>0</posx>
<posy>0</posy>
<width>1366</width>
<height>768</height>
<visible>true</visible>
<imagepath>Music\#Play.Current.Artist</imagepath>
<colordiffuse>66ffffff</colordiffuse>
<timeperimage>10000</timeperimage>
<fadetime>2000</fadetime>
<pauseatend>30000</pauseatend>
<randomize>true</randomize>
<loop>yes</loop>
</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...