PDA

View Full Version : Phonon::VideoWidget/VideoPlayer issues



prophet0
2nd April 2012, 23:21
With my video Widget



mediaObject = new Phonon::MediaObject(this);
metaInformationResolver = new Phonon::MediaObject(this);
wid_videowidget = new Phonon::VideoWidget(this);
aio_audioOutput = new Phonon::AudioOutput(Phonon::VideoCategory, this);
//--------------------------------------------------------------------------------------------------------
Phonon::createPath(mediaObject, wid_videowidget); // to link the mediaobject withvideo widget
Phonon::createPath(mediaObject, aio_audioOutput); // to link the mediaobject with audio output
//--------------------------------------------------------------------------------------------------------
wid_videowidget->setGeometry(12,50,760,360);
wid_videowidget->setAspectRatio(Phonon::VideoWidget::AspectRatioWid get);
wid_videowidget->setScaleMode(Phonon::VideoWidget::FitInView);
aio_audioOutput->setVolume(50);


the above works perfect but as the video is played it is choppy like black boxes or lines will appear and block most of the video



VideoPlayer = new Phonon::VideoPlayer(this);
VideoPlayer->setGeometry(12,50,760,360);
VideoPlayer->setFixedSize(QSize(760,360));
VideoPlayer->setAutoFillBackground(true);


the above i am unable to get the video to scale to the player (760, 360) and also once the application is moved the video gets a black box as well but is long and skinny

both play video but both have issues

how would i resolve one of the solutions ?

majenangnet
3rd April 2012, 23:23
the same question with me