Release TvTunes alternative for playing soundtracks when browsing
#15
@Karellen for your special case only I can think of is to add another window, if would be this way (total 4 xml files)...

customStartSoundtrack.xml
xml:

<window type="dialog" id="1355">
    <allowoverlay>no</allowoverlay>
    <onload>Stop</onload>
    <onload>PlayMedia($ESCINFO[ListItem.Path,,theme.mp3])</onload>
    <onload>SetProperty(OST,$INFO[ListItem.Path],home)</onload>
    <visible>System.IdleTime(2) + [!String.IsEqual(ListItem.Path,Window(home).Property(OST)) | !Player.Playing]</visible>
    <visible>!ListItem.IsCollection</visible>
    <visible>Container.Content(movies) | [Container.Content(tvshows) + !Player.Playing] | [Container.Content(seasons) + !Player.Playing]</visible>
    <visible>!Window.IsActive(movieinformation)</visible>
    <controls>
    </controls>
</window>

customStartSoundtrackFlac.xml
xml:

<window type="dialog" id="1356">
    <allowoverlay>no</allowoverlay>
    <onload>Stop</onload>
    <onload>PlayMedia($ESCINFO[ListItem.Path,,theme.flac])</onload>
    <onload>SetProperty(OST,$INFO[ListItem.Path],home)</onload>
    <visible>System.IdleTime(3) + [!String.IsEqual(ListItem.Path,Window(home).Property(OST)) | !Player.Playing]</visible>
    <visible>!ListItem.IsCollection</visible>
    <visible>Container.Content(movies) | [Container.Content(tvshows) + !Player.Playing] | [Container.Content(seasons) + !Player.Playing]</visible>
    <visible>!Window.IsActive(movieinformation)</visible>
    <visible>!String.Contains(Player.Filenameandpath,theme.mp3)</visible>
    <controls>
    </controls>
</window>

customStopSoundtrack.xml
xml:

<window type="dialog" id="1255">
    <allowoverlay>no</allowoverlay>
    <onload>Pause</onload>
    <visible>!String.IsEqual(ListItem.Path,Window(home).Property(OST))</visible>
    <visible>Container.Content(movies) | Container.Content(tvshows)</visible>
    <visible>!Window.IsActive(movieinformation)</visible>
    <controls></controls>
</window>

customRidSoundtrack.xml
xml:

<window type="dialog" id="1305">
    <allowoverlay>no</allowoverlay>
    <onload>Stop</onload>
    <visible>[String.Contains(Player.Filenameandpath,theme.mp3) | String.Contains(Player.Filenameandpath,theme.flac)] + [!Window.IsActive(videos) | String.IsEmpty(ListItem.Path)]</visible>
    <controls>
    </controls>
</window>
If I have helped you or increased your knowledge, please click the 'thumbs up' button to give thanks :)
Reply


Messages In This Thread
RE: TvTunes alternative for playing soundtracks when browsing - by manfeed - 2018-04-16, 01:21
Logout Mark Read Team Forum Stats Members Help
TvTunes alternative for playing soundtracks when browsing2