video player with qt phonon (using python)

Posted by cppb on Stack Overflow See other posts from Stack Overflow or by cppb
Published on 2010-03-16T13:16:43Z Indexed on 2010/03/16 16:01 UTC
Read the original article Hit count: 1046

Filed under:
|
|
|

hi,

I am working on Windows xp and am trying to get a simple video player running.

I am trying to use Phonon::VideoPlayer module for this. I am connecting the signal as

connect(self.player,SIGNAL("finished()"),self.player.deleteLater)

and then , when the Play button is pressed, it makes the following call:

self.player.play(Phonon.MediaSource("C:\vid.mp4"))

But, this doesn't display the video in the video player widget. Neither can I hear audio. Can anyone help??

I tried using different video file formats but no luck.

© Stack Overflow or respective owner

Related posts about phonon

Related posts about qt