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

Re: [pygame] threads with mplayer



You won't have any sample code from either doing with another app or
mplayer. If not thanks for the info.. I'll take a look at popen. As for
the threads idea where you talking about my idea on making like a
mplayer_threads subclass to thread or threading?

Thanks
Mike

> 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