So when i play a video it only shows in the middle of the screen and not full size of the widget
/* Video View: *START* */
// Set up objects
Phonon::MediaObject *obj_mediaobject = new Phonon::MediaObject(this);
Phonon::VideoWidget *wid_videowidget = new Phonon::VideoWidget(this);
Phonon::AudioOutput *aio_audioOutput = new Phonon::AudioOutput(Phonon::VideoCategory, this);
// Clear the Queue
obj_mediaobject->clearQueue();
// Put Video in the Queue
vidpath = "/home/development/videos/";
filepath = ("yrt-video.avi");
obj_mediaobject->enqueue(Phonon::MediaSource(vidpath + filepath));
// Make our Connections
Phonon::createPath(obj_mediaobject, wid_videowidget); // to link the mediaobject withvideo widget
Phonon::createPath(obj_mediaobject, aio_audioOutput); // to link the mediaobject with audo output
// Add our display settings
wid_videowidget->setGeometry(12, 2, 760, 360);
// play the video
obj_mediaobject->play();
/* Video View: *END* */
/* Video View: *START* */
// Set up objects
Phonon::MediaObject *obj_mediaobject = new Phonon::MediaObject(this);
Phonon::VideoWidget *wid_videowidget = new Phonon::VideoWidget(this);
Phonon::AudioOutput *aio_audioOutput = new Phonon::AudioOutput(Phonon::VideoCategory, this);
// Clear the Queue
obj_mediaobject->clearQueue();
// Put Video in the Queue
QString vidpath = QApplication::applicationDirPath();
vidpath = "/home/development/videos/";
QString filepath = QApplication::applicationFilePath();
filepath = ("yrt-video.avi");
obj_mediaobject->enqueue(Phonon::MediaSource(vidpath + filepath));
// Make our Connections
Phonon::createPath(obj_mediaobject, wid_videowidget); // to link the mediaobject withvideo widget
Phonon::createPath(obj_mediaobject, aio_audioOutput); // to link the mediaobject with audo output
// Add our display settings
wid_videowidget->setGeometry(12, 2, 760, 360);
// play the video
obj_mediaobject->play();
/* Video View: *END* */
To copy to clipboard, switch view to plain text mode
Any way i can get it to be the complete size ie 760 * 360
thanks
Bookmarks