PDA

View Full Version : QThread for Movie Player...



jiapei100
29th September 2009, 20:06
Hi, all:

I seriously don't want to use Phonon to realize my media player. Actually, it's done already.

I'm now trying to use QGraphicsView to realize my own media player.

Can anybody give me a hint where I can find a demo or open source ?

I found something here
http://cartan.cas.suffolk.edu/oopdocbook/opensource/moviethread.html

But, there seems to be missing some header files.

What's more, where can I find something about all the following thread control functionalities for media broadcasting??

pause
backward
forward
speedy backward
speedy forward
stop

etc...


Best Regards
JIA Pei

luf
29th September 2009, 20:55
Hi

Have a look at qmmp, and how they solved audio decoding using threads.
This is based on mq3 (a qt mp3 player)

It would be a matter of doing something similar, but then handling the streams (video + audio on two different buffers, putting them out on two different outputs).

Good luck with it :)

Also you can have a look at vlc media player, as the last front end they use is written in QT4.

If you're doing a GPL program, you can probably use most of how they solved integrating libVLC.

cheers,
leif