Quantcast
Channel: Kodi Community Forum - Skinning
Viewing all articles
Browse latest Browse all 1803

Beta - TvTunes alternative for playing soundtracks when browsing

$
0
0
Hi, I have been long waiting for some alternative to play soundtracks when browsing movies and tvshows without TvTunes addon. I already had a theme.mp3 file in every movie/tvshow folder, so it was just a matter of playing them while browsing. I have devised a way without even using any addon, it consists on adding two little xml.files to your xml's skin folder, for instance:

customStartSoundtrack.xml

<window type="dialog" id="1355">
    <allowoverlay>no</allowoverlay>
    <onload>PlayMedia($INFO[ListItem.Path,,theme.mp3])</onload>
    <visible>System.IdleTime(3) + [Container.Content(movies) | Container.Content(tvshows)] + !ListItem.IsCollection</visible>
    <visible>Window.IsActive(videos)</visible>
    <controls>
    </controls>
</window>

...and...

customStopSoundtrack.xml

<window type="dialog" id="1255">
    <allowoverlay>no</allowoverlay>
    <onload condition="String.Contains(Player.Filenameandpath,theme.mp3)">PlayerControl(Stop)</onload>
    <visible>[System.IdleTime(1) | Container.OnNext | Container.OnPrevious | !Window.IsActive(videos)]</visible>
    <controls></controls>
</window>

I'm not an skinning expert, so I imagine someone else will be able to improve the code and let us know; this is only a humble beginning that at least works in every skin and can be tested without much hassle...

Viewing all articles
Browse latest Browse all 1803

Trending Articles