Phonon VideoPlayer does not render video in visible widgets

Jonathan Wong jhannwong at gmail.com
Tue May 12 03:44:48 BST 2009


Phonon's VideoPlayer does not show video in a widget if the widget had been setVisible(true) before.

The following works, but fails if we uncomment the 2nd line:

QWidget *videoView = new QWidget; videoView->resize(400, 400);
//videoView->setVisible(true);
Phonon::VideoPlayer *player =
     new Phonon::VideoPlayer(Phonon::VideoCategory, videoView);
player->play(Phonon::MediaSource("someVideo.mpg"));
videoView->setVisible(true);

Is it a bug? Where is it? In Phonon? In QWidget (or lower)?



More information about the kde-multimedia mailing list