hello,
I am building a video application in my current project with phonon class of Qt. i have writen following code to play
my video file. I have compiled and every thing is running video. I am getting the same black screen of 200*200 ,as
some one before me getting. i have read others same question ,but there was no reply.
QString filename("path to the .mp3 or .avi file");
Phonon::MediaObject *mediaObject = new Phonon::MediaObject(mywidget);
MediaObject.setCurrentSource(filename);
Phonon::VideoWidget *videoWidget = new Phonon::VideoWidget(mywidget)
Phonon::createPath(mediaObject, videoWidget);
Phonon::AudioOutput *audioOutput = new Phonon::AudioOutput(Phonon::VideoCategory, mywidget);
Phonon::createPath(mediaObject, audioOutput);
videoWidget.setGeometry(0,0,200,200);
mediaObject->play();
can some one pls guide me what to do?
Bookmarks