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::AspectRatioWidget);
wid_videowidget->setScaleMode(Phonon::VideoWidget::FitInView);
aio_audioOutput->setVolume(50);
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::AspectRatioWidget);
wid_videowidget->setScaleMode(Phonon::VideoWidget::FitInView);
aio_audioOutput->setVolume(50);
To copy to clipboard, switch view to plain text mode
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);
VideoPlayer = new Phonon::VideoPlayer(this);
VideoPlayer->setGeometry(12,50,760,360);
VideoPlayer->setFixedSize(QSize(760,360));
VideoPlayer->setAutoFillBackground(true);
To copy to clipboard, switch view to plain text mode
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 ?
Bookmarks