Kodi Community Forum

Full Version: Random Trailer Screensaver
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2 3 4
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.
I did some more digging and it appears I was right about XBMC killing the script. see https://github.com/xbmc/xbmc/commit/87f3...aa7c13d575 and it shows just this.
ah, i did only test with one video.

plus to be perfect XBMC would need to support looping videos.
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.
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
released screensaver addon see post http://forum.xbmc.org/showthread.php?tid=167276
Pages: 1 2 3 4