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);
Phonon::MediaSource* videoSource = new Phonon::MediaSource("test.avi");
Phonon::VideoPlayer* videoPlayer = new Phonon::VideoPlayer(Phonon::VideoCategory, this);
this->setCentralWidget(videoPlayer);
videoPlayer->play(*videoSource);
To copy to clipboard, switch view to plain text mode
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?
Bookmarks