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.
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.