2008-08-28, 19:02
My LastTube plugin requires that it continue to run in the background after it plays the first video, so that it can continue to seamlessly add videos to the queue, creating that personalized MTV feel.
I used to be able to achieve this by putting it in an infinite loop
Changing y to zero when the user manually stopped a video would kill the loop & the plugin. It worked nice...
Now this doesn't seem to work in Atlantis Alpha4. I haven't used the plugin in a while, but I'm 99% sure it did work on Atlantis Alpha3.
Scripts can be made to run in the background pretty easily I think, but since plugins were meant to only be virtual folders, I'm not really sure how to do it. (And NO I do not want to make it a script. Plugins look & feel soooo much nicer with the automatic skin integration)
What changed? Is there something I can do to work around it?
The full code is here:
http://code.google.com/p/xbmc-addons/sou...default.py
I used to be able to achieve this by putting it in an infinite loop
Code:
while (y==1):
xbmc.sleep( 1000 )
Now this doesn't seem to work in Atlantis Alpha4. I haven't used the plugin in a while, but I'm 99% sure it did work on Atlantis Alpha3.
Scripts can be made to run in the background pretty easily I think, but since plugins were meant to only be virtual folders, I'm not really sure how to do it. (And NO I do not want to make it a script. Plugins look & feel soooo much nicer with the automatic skin integration)
What changed? Is there something I can do to work around it?
The full code is here:
http://code.google.com/p/xbmc-addons/sou...default.py