Problem with keeping a plugin running after paying a video...
#1
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
Code:
while (y==1):
    xbmc.sleep( 1000 )
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
Always read the XBMC online-manual, FAQ and search and search the forum before posting.
For troubleshooting and bug reporting please read how to submit a proper bug report.

If you're interested in writing addons for xbmc, read docs and how-to for plugins and scripts ||| http://code.google.com/p/xbmc-addons/
Reply
#2
Hey Rw i just tested it out on linux with 9/4/08 svn and you are correct. Just plays one vid and stops.
Reply

Logout Mark Read Team Forum Stats Members Help
Problem with keeping a plugin running after paying a video...0