PDA

View Full Version : Struggling qith Qt/Phonon



burlyjez
27th November 2010, 13:02
Hi Qt peeps,

I'm really struggling with video playback: Even the simplest usage of VidePlayer under Qt 4.7.1 fails (4.7.0 too).

Here's the code:


Phonon::MediaSource* videoSource = new Phonon::MediaSource("test.avi");
Phonon::VideoPlayer* videoPlayer = new Phonon::VideoPlayer(Phonon::VideoCategory, this);

this->setCentralWidget(videoPlayer);

videoPlayer->play(*videoSource);


On my (Vaio, XP, 32 bit machine) machine I get no video and get the debug message:



WARNING: Phonon::createPath: Cannot connect Phonon::MediaObject ( no objectName ) to Phonon::VideoWidget ( no objectName ).

when it creates the video player.

Is there anything obvious I should be looking for?