Kodi Community Forum
Random Trailer Screensaver - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Add-ons (https://forum.kodi.tv/forumdisplay.php?fid=26)
+---- Forum: Screensavers and visualisations (https://forum.kodi.tv/forumdisplay.php?fid=38)
+---- Thread: Random Trailer Screensaver (/showthread.php?tid=82115)

Pages: 1 2 3 4


RE: Random Trailer Screensaver - kzeleny - 2013-06-16

this is how originally implement this and I could not get it to play more than one video. In the XBMC log it shows that my script is running for over 5 seconds and kills it. I am not sure but t appears that XBMC is detecting that a video is running and the screen saver should not be and kills my screen saver.

I would be happy to implement as a standard screensaver is someone has any ideas how to get around this issue.


RE: Random Trailer Screensaver - kzeleny - 2013-06-16

I did some more digging and it appears I was right about XBMC killing the script. see https://github.com/xbmc/xbmc/commit/87f3facf6d450393824a3d0bfa564eaa7c13d575 and it shows just this.


RE: Random Trailer Screensaver - Nuka1195 - 2013-06-16

ah, i did only test with one video.

plus to be perfect XBMC would need to support looping videos.


RE: Random Trailer Screensaver - kzeleny - 2013-06-16

The reason I did not add in looping was to save bandwidth for those who don't have trailers downloaded. I can change the options so that if the user enters 0 for the number of trailers it will play continuously.


I have this addon as a manually running script as well. I have been testing creating a service that monitors when the screensaver is activated and starts my addon which will cancel the screensaver when the first video starts playing. Currently I just using the black screensaver, but I can create a simple screensaver the is basically a shell and would notify the service to launch the addon. I could bundle them all up so that the service, screensaver and script would all install at once.


The effect for the end user would be a seamless experience of a screensaver. The user could then launch the trailers on demand should they want to.


RE: Random Trailer Screensaver - Nuka1195 - 2013-06-16

I started a PR for enhancing python SS and want to fix a couple oddities, if you have any comments.

https://github.com/xbmc/xbmc/pull/2877


RE: Random Trailer Screensaver - kzeleny - 2013-06-16

released screensaver addon see post http://forum.xbmc.org/showthread.php?tid=167276