[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [pygame] threads with mplayer



On Fri, 12 Sep 2003 mike@zcentric.com wrote:

>I'm looking into making a car app with pygame. I have it playing mp3's and
>mpegs just fine. I'd like to use mplayer for at least the video though. I
>have never worked with threads so don't flame me if this is the wrong way
>to go about this. I'd like to have a movie running in fullscreen mode but
>still have all the events going through python. Right now if my mouse is
>over the mplayer window mplayer takes all the events. I'm wondering if
>this is possible. Do I have to subclass threading or thread for this to
>work?

I've done that in a couple of apps and it works just fine. The slave
protocol coupled with some stuff from the popen module is a valid idea.
Threads can be used too to avoid polling, but I don't see that as a big
problem in a dedicated media box.

-- 
By reading this message, you may be causing Armageddon. Needless to say,
Armageddon will wipe out your hard drive and damage your computer.
                                -- Email hoax as seen on Hoaxbusters.com