diff --git a/16x9/Components_Viewtypes.xml b/16x9/Components_Viewtypes.xml index 2faededa..8dc59fa8 100644 --- a/16x9/Components_Viewtypes.xml +++ b/16x9/Components_Viewtypes.xml @@ -59,6 +59,8 @@ SetProperty(Multiart_0,$ESCINFO[Container.ListItem.Art(tvshow.fanart)],home) SetProperty(Multiart_0,$ESCINFO[Container.ListItem.Art(tvshow.square)],home) + Skin.TimerStop(trailer_autoplay) + Skin.TimerStop(trailer_autoplay_home) PlayerControl(Stop) ClearProperty(Trailer_Autoplay,home) diff --git a/16x9/Custom_1102_Window_IsVideos.xml b/16x9/Custom_1102_Window_IsVideos.xml deleted file mode 100644 index 2e20c0d0..00000000 --- a/16x9/Custom_1102_Window_IsVideos.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - !Window.IsVisible(videos) - WindowClose - 0 - - diff --git a/16x9/Home.xml b/16x9/Home.xml index dc168ac0..2f845eec 100644 --- a/16x9/Home.xml +++ b/16x9/Home.xml @@ -82,5 +82,12 @@ + + views/white_100.png + 0 + 90 + 90 + [[!Skin.HasSetting(Widget1_Trailer_Autoplay) + Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(widget_spotlight),8) + System.IdleTime(8)] | [Skin.HasSetting(Widget1_Trailer_Autoplay) + Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(widget_spotlight),2) + Skin.TimerIsRunning(trailer_autoplay_home) + Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(trailer_autoplay_home),2)]] + !Player.HasVideo + !Window.IsVisible(movieinformation) + !Window.IsVisible(shutdownmenu) + !Window.IsVisible(busydialog) + \ No newline at end of file diff --git a/16x9/Timers.xml b/16x9/Timers.xml index fe7b91f8..08d0640b 100644 --- a/16x9/Timers.xml +++ b/16x9/Timers.xml @@ -39,8 +39,9 @@ trailer_autoplay - 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) - String.IsEmpty(Window(home).Property(Trailer_Autoplay)) + !Player.HasVideo + 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(tvshows)]] + Window.IsVisible(1160) + !Player.HasMedia + Player.HasVideo | Window.IsVisible(movieinformation) | Window.IsVisible(shutdownmenu) | Window.IsVisible(busydialog) + !String.IsEmpty(ListItem.Trailer) + String.IsEmpty(Window(home).Property(Trailer_Autoplay)) + !Player.HasVideo SetProperty(Trailer_Autoplay,true,home) PlayMedia($ESCINFO[ListItem.Trailer],1,noresume) SetProperty(Trailer_Autoplay,true,home) @@ -49,39 +50,97 @@ trailer_autoplay_home Window.Is(home) + Skin.HasSetting(Trailer_Autoplay) + !String.IsEmpty(window(home).property(Home_Widget)) + Window.IsVisible(1160) + !Player.HasMedia + Player.HasVideo | Window.IsVisible(movieinformation) | Window.IsVisible(shutdownmenu) | Window.IsVisible(busydialog) !String.IsEmpty(ListItem.Trailer) + String.IsEmpty(Window(home).Property(Trailer_Autoplay)) + !Player.HasVideo - SetProperty(Trailer_Autoplay,true,home) - PlayMedia($ESCINFO[ListItem.Trailer],1,noresume) - SetProperty(Trailer_Autoplay,true,home) - PlayMedia($ESCINFO[ListItem.Trailer],1,noresume) - SetProperty(Trailer_Autoplay,true,home) - PlayMedia($ESCINFO[ListItem.Trailer],1,noresume) - SetProperty(Trailer_Autoplay,true,home) - PlayMedia($ESCINFO[ListItem.Trailer],1,noresume) - SetProperty(Trailer_Autoplay,true,home) - PlayMedia($ESCINFO[ListItem.Trailer],1,noresume) - SetProperty(Trailer_Autoplay,true,home) - PlayMedia($ESCINFO[ListItem.Trailer],1,noresume) - SetProperty(Trailer_Autoplay,true,home) - PlayMedia($ESCINFO[ListItem.Trailer],1,noresume) - SetProperty(Trailer_Autoplay,true,home) - PlayMedia($ESCINFO[ListItem.Trailer],1,noresume) - SetProperty(Trailer_Autoplay,true,home) - PlayMedia($ESCINFO[ListItem.Trailer],1,noresume) - - - widget_spotlight - [Skin.HasSetting(Widget1_AutoScroll) + Control.HasFocus(3201)] | [Skin.HasSetting(Widget2_AutoScroll) + Control.HasFocus(3202)] | [Skin.HasSetting(Widget3_AutoScroll) + Control.HasFocus(3203)] | [Skin.HasSetting(Widget4_AutoScroll) + Control.HasFocus(3204)] | [Skin.HasSetting(Widget5_AutoScroll) + Control.HasFocus(3205)] | [Skin.HasSetting(Widget6_AutoScroll) + Control.HasFocus(3206)] | [Skin.HasSetting(Widget7_AutoScroll) + Control.HasFocus(3207)] | [Skin.HasSetting(Widget8_AutoScroll) + Control.HasFocus(3208)] | [Skin.HasSetting(Widget9_AutoScroll) + Control.HasFocus(3209)] + SetProperty(Trailer_Autoplay,true,home) + PlayMedia($ESCINFO[ListItem.Trailer],1,noresume) + SetProperty(Trailer_Autoplay,true,home) + PlayMedia($ESCINFO[ListItem.Trailer],1,noresume) + SetProperty(Trailer_Autoplay,true,home) + PlayMedia($ESCINFO[ListItem.Trailer],1,noresume) + SetProperty(Trailer_Autoplay,true,home) + PlayMedia($ESCINFO[ListItem.Trailer],1,noresume) + SetProperty(Trailer_Autoplay,true,home) + PlayMedia($ESCINFO[ListItem.Trailer],1,noresume) + SetProperty(Trailer_Autoplay,true,home) + PlayMedia($ESCINFO[ListItem.Trailer],1,noresume) + SetProperty(Trailer_Autoplay,true,home) + PlayMedia($ESCINFO[ListItem.Trailer],1,noresume) + SetProperty(Trailer_Autoplay,true,home) + PlayMedia($ESCINFO[ListItem.Trailer],1,noresume) + SetProperty(Trailer_Autoplay,true,home) + PlayMedia($ESCINFO[ListItem.Trailer],1,noresume) + + + widget_spotlight_3201 + Window.Is(home) + Skin.HasSetting(Widget1_AutoScroll) + Control.HasFocus(3201) Player.HasVideo | Window.IsVisible(movieinformation) | Window.IsVisible(shutdownmenu) | Window.IsVisible(busydialog) - [[!Skin.HasSetting(Widget1_Trailer_Autoplay) + Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(widget_spotlight),8) + System.IdleTime(8)] | [Skin.HasSetting(Widget1_Trailer_Autoplay) + Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(widget_spotlight),2) + System.IdleTime(2) + Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(trailer_autoplay_home),2)]] + !Window.IsVisible(movieinformation) + !Player.HasVideo + !Window.IsVisible(shutdownmenu) + !Window.IsVisible(busydialog) + [[!Skin.HasSetting(Widget1_Trailer_Autoplay) + Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(widget_spotlight_3201),8) + System.IdleTime(8)] | [Skin.HasSetting(Widget1_Trailer_Autoplay) + Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(widget_spotlight_3201),2) + Skin.TimerIsRunning(trailer_autoplay_home) + Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(trailer_autoplay_home),2)]] + !Player.HasVideo + !Window.IsVisible(movieinformation) + !Window.IsVisible(shutdownmenu) + !Window.IsVisible(busydialog) ClearProperty(Trailer_Autoplay,home) - Control.Move(3201,1) - Control.Move(3202,1) - Control.Move(3203,1) - Control.Move(3204,1) - Control.Move(3205,1) - Control.Move(3206,1) - Control.Move(3207,1) - Control.Move(3208,1) + Control.Move(3201,1) + + + widget_spotlight_3202 + Window.Is(home) + Skin.HasSetting(Widget2_AutoScroll) + Control.HasFocus(3202) + Player.HasVideo | Window.IsVisible(movieinformation) | Window.IsVisible(shutdownmenu) | Window.IsVisible(busydialog) + [[!Skin.HasSetting(Widget2_Trailer_Autoplay) + Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(widget_spotlight_3202),8) + System.IdleTime(8)] | [Skin.HasSetting(Widget2_Trailer_Autoplay) + Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(widget_spotlight_3202),2) + Skin.TimerIsRunning(trailer_autoplay_home) + Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(trailer_autoplay_home),2)]] + !Player.HasVideo + !Window.IsVisible(movieinformation) + !Window.IsVisible(shutdownmenu) + !Window.IsVisible(busydialog) + ClearProperty(Trailer_Autoplay,home) + Control.Move(3202,1) + + + widget_spotlight_3203 + Window.Is(home) + Skin.HasSetting(Widget3_AutoScroll) + Control.HasFocus(3203) + Player.HasVideo | Window.IsVisible(movieinformation) | Window.IsVisible(shutdownmenu) | Window.IsVisible(busydialog) + [[!Skin.HasSetting(Widget3_Trailer_Autoplay) + Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(widget_spotlight_3203),8) + System.IdleTime(8)] | [Skin.HasSetting(Widget3_Trailer_Autoplay) + Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(widget_spotlight_3203),2) + Skin.TimerIsRunning(trailer_autoplay_home) + Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(trailer_autoplay_home),2)]] + !Player.HasVideo + !Window.IsVisible(movieinformation) + !Window.IsVisible(shutdownmenu) + !Window.IsVisible(busydialog) + ClearProperty(Trailer_Autoplay,home) + Control.Move(3203,1) + + + widget_spotlight_3204 + Window.Is(home) + Skin.HasSetting(Widget4_AutoScroll) + Control.HasFocus(3204) + Player.HasVideo | Window.IsVisible(movieinformation) | Window.IsVisible(shutdownmenu) | Window.IsVisible(busydialog) + [[!Skin.HasSetting(Widget4_Trailer_Autoplay) + Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(widget_spotlight_3204),8) + System.IdleTime(8)] | [Skin.HasSetting(Widget4_Trailer_Autoplay) + Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(widget_spotlight_3204),2) + Skin.TimerIsRunning(trailer_autoplay_home) + Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(trailer_autoplay_home),2)]] + !Player.HasVideo + !Window.IsVisible(movieinformation) + !Window.IsVisible(shutdownmenu) + !Window.IsVisible(busydialog) + ClearProperty(Trailer_Autoplay,home) + Control.Move(3204,1) + + + widget_spotlight_3205 + Window.Is(home) + Skin.HasSetting(Widget5_AutoScroll) + Control.HasFocus(3205) + Player.HasVideo | Window.IsVisible(movieinformation) | Window.IsVisible(shutdownmenu) | Window.IsVisible(busydialog) + [[!Skin.HasSetting(Widget5_Trailer_Autoplay) + Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(widget_spotlight_3205),8) + System.IdleTime(8)] | [Skin.HasSetting(Widget5_Trailer_Autoplay) + Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(widget_spotlight_3205),2) + Skin.TimerIsRunning(trailer_autoplay_home) + Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(trailer_autoplay_home),2)]] + !Player.HasVideo + !Window.IsVisible(movieinformation) + !Window.IsVisible(shutdownmenu) + !Window.IsVisible(busydialog) + ClearProperty(Trailer_Autoplay,home) + Control.Move(3205,1) + + + widget_spotlight_3206 + Window.Is(home) + Skin.HasSetting(Widget6_AutoScroll) + Control.HasFocus(3206) + Player.HasVideo | Window.IsVisible(movieinformation) | Window.IsVisible(shutdownmenu) | Window.IsVisible(busydialog) + [[!Skin.HasSetting(Widget6_Trailer_Autoplay) + Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(widget_spotlight_3206),8) + System.IdleTime(8)] | [Skin.HasSetting(Widget6_Trailer_Autoplay) + Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(widget_spotlight_3206),2) + Skin.TimerIsRunning(trailer_autoplay_home) + Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(trailer_autoplay_home),2)]] + !Player.HasVideo + !Window.IsVisible(movieinformation) + !Window.IsVisible(shutdownmenu) + !Window.IsVisible(busydialog) + ClearProperty(Trailer_Autoplay,home) + Control.Move(3206,1) + + + widget_spotlight_3207 + Window.Is(home) + Skin.HasSetting(Widget7_AutoScroll) + Control.HasFocus(3207) + Player.HasVideo | Window.IsVisible(movieinformation) | Window.IsVisible(shutdownmenu) | Window.IsVisible(busydialog) + [[!Skin.HasSetting(Widget7_Trailer_Autoplay) + Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(widget_spotlight_3207),8) + System.IdleTime(8)] | [Skin.HasSetting(Widget7_Trailer_Autoplay) + Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(widget_spotlight_3207),2) + Skin.TimerIsRunning(trailer_autoplay_home) + Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(trailer_autoplay_home),2)]] + !Player.HasVideo + !Window.IsVisible(movieinformation) + !Window.IsVisible(shutdownmenu) + !Window.IsVisible(busydialog) + ClearProperty(Trailer_Autoplay,home) + Control.Move(3207,1) + + + widget_spotlight_3208 + Window.Is(home) + Skin.HasSetting(Widget8_AutoScroll) + Control.HasFocus(3208) + Player.HasVideo | Window.IsVisible(movieinformation) | Window.IsVisible(shutdownmenu) | Window.IsVisible(busydialog) + [[!Skin.HasSetting(Widget8_Trailer_Autoplay) + Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(widget_spotlight_3208),8) + System.IdleTime(8)] | [Skin.HasSetting(Widget8_Trailer_Autoplay) + Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(widget_spotlight_3208),2) + Skin.TimerIsRunning(trailer_autoplay_home) + Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(trailer_autoplay_home),2)]] + !Player.HasVideo + !Window.IsVisible(movieinformation) + !Window.IsVisible(shutdownmenu) + !Window.IsVisible(busydialog) + ClearProperty(Trailer_Autoplay,home) + Control.Move(3208,1) + + + widget_spotlight_3209 + Window.Is(home) + Skin.HasSetting(Widget9_AutoScroll) + Control.HasFocus(3209) + Player.HasVideo | Window.IsVisible(movieinformation) | Window.IsVisible(shutdownmenu) | Window.IsVisible(busydialog) + [[!Skin.HasSetting(Widget9_Trailer_Autoplay) + Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(widget_spotlight_3209),8) + System.IdleTime(8)] | [Skin.HasSetting(Widget9_Trailer_Autoplay) + Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(widget_spotlight_3209),2) + Skin.TimerIsRunning(trailer_autoplay_home) + Integer.IsGreaterOrEqual(Skin.TimerElapsedSecs(trailer_autoplay_home),2)]] + !Player.HasVideo + !Window.IsVisible(movieinformation) + !Window.IsVisible(shutdownmenu) + !Window.IsVisible(busydialog) + ClearProperty(Trailer_Autoplay,home) + Control.Move(3209,1) diff --git a/README.md b/README.md index a8ce5b27..5abdab81 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,9 @@ or send a letter to Creative Commons, 171 Second Street, Suite 300, San Francisc ### Changelog --- +**1.3.7** +- Further refinement of auto scroll/play timers + **1.3.6** - Fix for preventing widgets from auto-playing trailers when auto-scroll also enabled diff --git a/addon.xml b/addon.xml index 652a25ba..34fa727d 100644 --- a/addon.xml +++ b/addon.xml @@ -1,5 +1,5 @@ - +