Results 1 to 2 of 2

Thread: Phonon::VideoWidget/VideoPlayer issues

  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

    Default Phonon::VideoWidget/VideoPlayer issues

    With my video Widget

    Qt Code:
    1. mediaObject = new Phonon::MediaObject(this);
    2. metaInformationResolver = new Phonon::MediaObject(this);
    3. wid_videowidget = new Phonon::VideoWidget(this);
    4. aio_audioOutput = new Phonon::AudioOutput(Phonon::VideoCategory, this);
    5. //--------------------------------------------------------------------------------------------------------
    6. Phonon::createPath(mediaObject, wid_videowidget); // to link the mediaobject withvideo widget
    7. Phonon::createPath(mediaObject, aio_audioOutput); // to link the mediaobject with audio output
    8. //--------------------------------------------------------------------------------------------------------
    9. wid_videowidget->setGeometry(12,50,760,360);
    10. wid_videowidget->setAspectRatio(Phonon::VideoWidget::AspectRatioWidget);
    11. wid_videowidget->setScaleMode(Phonon::VideoWidget::FitInView);
    12. 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

    Qt Code:
    1. VideoPlayer = new Phonon::VideoPlayer(this);
    2. VideoPlayer->setGeometry(12,50,760,360);
    3. VideoPlayer->setFixedSize(QSize(760,360));
    4. 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 ?

  2. #2

    Default Re: Phonon::VideoWidget/VideoPlayer issues

    the same question with me

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. Phonon VideoWidget
    By prophet0 in forum Qt Programming
    Replies: 1
    Last Post: 7th November 2011, 11:43
  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.