Random Trailer Screensaver
#46
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.
-ken Z-
Reply
#47
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.
-ken Z-
Reply
#48
ah, i did only test with one video.

plus to be perfect XBMC would need to support looping videos.
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#49
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.
-ken Z-
Reply
#50
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
For python coding questions first see http://mirrors.xbmc.org/docs/python-docs/
Reply
#51
released screensaver addon see post http://forum.xbmc.org/showthread.php?tid=167276
-ken Z-
Reply



Logout Mark Read Team Forum Stats Members Help
Random Trailer Screensaver0
This forum uses Lukasz Tkacz MyBB addons.