<?xml version="1.0" encoding="UTF-8"?>
<timers>
  <timer>
    <name>home_screensaver</name>
    <start reset="true">Skin.HasSetting(Home_Screensaver_Enabled) + Window.Is(home) + Control.HasFocus(3000)</start>
    <reset>!Control.HasFocus(3000)</reset>
    <stop>Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(home_screensaver),15) + System.IdleTime(15)</stop>
    <onstop>SetFocus(4300)</onstop>
  </timer>
  <timer>
    <name>video_playback</name>
    <description>timer that starts whenever video has fullscreen playback</description>
    <start reset="true">VideoPlayer.IsFullscreen</start>
    <stop>!VideoPlayer.IsFullscreen</stop>
  </timer>
  <timer>
    <name>video_playback_label_interruptor</name>
    <description>timer started when videoosd or fullscreeninfo are loaded for the first time</description>
    <stop>!Player.HasVideo</stop>
  </timer>
  <timer>
    <name>music_playback</name>
    <description>timer that starts whenever music is playing</description>
    <start reset="true">Player.HasAudio + Player.Playing</start>
    <stop>!Player.Playing</stop>
  </timer>
  <timer>
    <name>music_visualisation</name>
    <description>timer that starts whenever music visualisation is showing</description>
  </timer>
  <timer>
    <name>season_info_monitor</name>
    <description>Properties set as soon as navigation stops on a listitem</description>
    <start reset="true">Container.Content(seasons)</start>
    <stop>Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(season_info_monitor),0) + !Window.IsVisible(movieinformation)</stop>
    <onstop>SetProperty(Season_Number,$INFO[ListItem.Season],home)</onstop>
    <onstop>SetProperty(Season_Year,$INFO[ListItem.Year],home)</onstop>
    <onstop>SetProperty(Season_Fanart,$ESCINFO[ListItem.Art(fanart)],home)</onstop>
  </timer>
  <timer>
    <name>trailer_autoplay</name>
    <start reset="true">Window.Is(videos) + Skin.HasSetting(Trailer_Autoplay) + [[Skin.String(Trailer_Autoplay_Movies_Enabled,true) + Container.Content(movies)] | [Skin.String(Trailer_Autoplay_TVShows_Enabled,true) + !Container.Content(movies)]]  + !Window.IsVisible(1102) + String.IsEmpty(Window(home).Property(Trailer_Autoplay)) + !Player.HasMedia + Window.IsVisible(1160)</start>
    <stop>String.IsEmpty(Window(home).Property(Trailer_Autoplay)) + !Player.HasVideo</stop>
    <onstart condition="[Control.HasFocus(50) | Control.HasFocus(501) | Control.HasFocus(502) | Control.HasFocus(504)] + !String.IsEmpty(ListItem.Trailer)">SetProperty(Trailer_Autoplay,true,home)</onstart>
    <onstart condition="[Control.HasFocus(50) | Control.HasFocus(501) | Control.HasFocus(502) | Control.HasFocus(504)] + !String.IsEmpty(ListItem.Trailer)">PlayMedia($ESCINFO[ListItem.Trailer],1,noresume)</onstart>
    <onstart condition="Control.HasFocus(3100) + !String.IsEmpty(Container(3100).ListItem.Trailer)">SetProperty(Trailer_Autoplay,true,home)</onstart>
    <onstart condition="Control.HasFocus(3100) + !String.IsEmpty(Container(3100).ListItem.Trailer)">PlayMedia($ESCINFO[Container(3100).ListItem.Trailer],1,noresume)</onstart>
  </timer>
  <timer>
    <name>trailer_autoplay_home</name>
    <start reset="true">Window.Is(home) + !Window.IsVisible(1101) + Skin.HasSetting(Trailer_Autoplay) + Skin.String(Trailer_Autoplay_Home_Enabled,true) + String.IsEmpty(Window(home).Property(Trailer_Autoplay)) + !Player.HasMedia + !String.IsEmpty(window(home).property(Home_Widget)) + Window.IsVisible(1160)</start>
    <stop>String.IsEmpty(Window(home).Property(Trailer_Autoplay)) + !Player.HasVideo</stop>
    <onstart condition="![[Control.HasFocus(3201) + Window.IsVisible(1131)] | [Control.HasFocus(3202) + Window.IsVisible(1132)] | [Control.HasFocus(3203) + Window.IsVisible(1133)] | [Control.HasFocus(3204) + Window.IsVisible(1134)] | [Control.HasFocus(3205) + Window.IsVisible(1135)] | [Control.HasFocus(3206) + Window.IsVisible(1136)] | [Control.HasFocus(3207) + Window.IsVisible(1137)] | [Control.HasFocus(3208) + Window.IsVisible(1138)] | [Control.HasFocus(3209) + Window.IsVisible(1139)]] + !String.IsEmpty(ListItem.Trailer)">SetProperty(Trailer_Autoplay,true,home)</onstart>
    <onstart condition="![[Control.HasFocus(3201) + Window.IsVisible(1131)] | [Control.HasFocus(3202) + Window.IsVisible(1132)] | [Control.HasFocus(3203) + Window.IsVisible(1133)] | [Control.HasFocus(3204) + Window.IsVisible(1134)] | [Control.HasFocus(3205) + Window.IsVisible(1135)] | [Control.HasFocus(3206) + Window.IsVisible(1136)] | [Control.HasFocus(3207) + Window.IsVisible(1137)] | [Control.HasFocus(3208) + Window.IsVisible(1138)] | [Control.HasFocus(3209) + Window.IsVisible(1139)]] + !String.IsEmpty(ListItem.Trailer)">PlayMedia($ESCINFO[ListItem.Trailer],1,noresume)</onstart>
  </timer>
</timers>
