Results 1 to 2 of 2

Thread: Phonon VideoWidget

  1. #1
    Join Date
    Oct 2011
    Location
    Toronto Canada
    Posts
    97
    Thanks
    7
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Exclamation Phonon VideoWidget

    So when i play a video it only shows in the middle of the screen and not full size of the widget

    Qt Code:
    1. /* Video View: *START* */
    2.  
    3. // Set up objects
    4. Phonon::MediaObject *obj_mediaobject = new Phonon::MediaObject(this);
    5. Phonon::VideoWidget *wid_videowidget = new Phonon::VideoWidget(this);
    6. Phonon::AudioOutput *aio_audioOutput = new Phonon::AudioOutput(Phonon::VideoCategory, this);
    7.  
    8. // Clear the Queue
    9. obj_mediaobject->clearQueue();
    10.  
    11. // Put Video in the Queue
    12. QString vidpath = QApplication::applicationDirPath();
    13. vidpath = "/home/development/videos/";
    14. QString filepath = QApplication::applicationFilePath();
    15. filepath = ("yrt-video.avi");
    16. obj_mediaobject->enqueue(Phonon::MediaSource(vidpath + filepath));
    17.  
    18. // Make our Connections
    19. Phonon::createPath(obj_mediaobject, wid_videowidget); // to link the mediaobject withvideo widget
    20. Phonon::createPath(obj_mediaobject, aio_audioOutput); // to link the mediaobject with audo output
    21.  
    22. // Add our display settings
    23. wid_videowidget->setGeometry(12, 2, 760, 360);
    24.  
    25. // play the video
    26. obj_mediaobject->play();
    27.  
    28. /* 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

  2. #2
    Join Date
    Oct 2011
    Location
    Toronto Canada
    Posts
    97
    Thanks
    7
    Thanked 1 Time in 1 Post
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Phonon VideoWidget

    bump?

    Anyone Know a solution?

Similar Threads

  1. Phonon VideoWidget does not show video on Vista SP2
    By maxchan in forum Qt Programming
    Replies: 3
    Last Post: 16th December 2011, 19:49
  2. QPixmap::grabWidget on a scaled Phonon::VideoWidget?
    By linus in forum Qt Programming
    Replies: 0
    Last Post: 6th April 2010, 13:19
  3. Zoom in a Phonon::VideoWidget
    By linus in forum Qt Programming
    Replies: 1
    Last Post: 26th March 2010, 21:13
  4. Replies: 0
    Last Post: 23rd January 2010, 05:55
  5. Phonon::VideoWidget Problem with AspectRatio
    By tituslup in forum Qt Programming
    Replies: 1
    Last Post: 27th July 2008, 17:04

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.