PDA

View Full Version : Phonon VideoWidget



prophet0
5th November 2011, 08:41
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
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* */


Any way i can get it to be the complete size ie 760 * 360

thanks

prophet0
7th November 2011, 11:43
bump?

Anyone Know a solution?