2018-04-15, 13:37
(2018-04-15, 11:45)Karellen Wrote: Hello @manfeed
I created these two xml files and added them to Transparency! and restarted Kodi. They work great!!
I imagine you have no control over this, but do you have any idea why it will play mp3 themes, but not flac themes?
You have to change the onload condition if your theme files are flac:
Code:
<onload>PlayMedia($INFO[ListItem.Path,,theme.mp3])</onload>
Change to
Code:
<onload>PlayMedia($INFO[ListItem.Path,,theme.flac])</onload>
Unfortunately, there is no way to check whether a local file exits in the skinning engine, so you are stuck with choosing one particular file type.
I haven't tested, but you might be able to get away with stacking them together. Off the top of my head, I'm not sure if PlayMedia will stop playback even if the file doesn't exist.
e.g. You could try
Code:
<onload>PlayMedia($INFO[ListItem.Path,,theme.mp3])</onload>
<onload>PlayMedia($INFO[ListItem.Path,,theme.flac])</onload>