Results 1 to 1 of 1

Thread: Phonon enqueue items missing video

  1. #1
    Join Date
    Sep 2010
    Posts
    4
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Phonon enqueue items missing video

    Short version:

    • Open qt\demos\qmediaplayer\qmediaplayer.pro
    • Build and run
    • Select "Open File..." and select multiple video files (adds files to queue)
    • Watch as some en-queued files play back without video (yet they play back opened in isolation)


    I logged http://bugreports.qt.nokia.com/browse/QTBUG-13489 for this.

    Long version:

    I'm trying to implement Phonon::MediaObject's enqueue and it's mostly working, except some queued videos don't play back video. i.e.

    Qt Code:
    1. m_mediaobject->setCurrentSource(Phonon::MediaSource("C:/testA.mpg")); <- plays fine
    2. m_mediaobject->enqueue(Phonon::MediaSource("C:/testA.mpg")); <- repeat, plays but without video
    To copy to clipboard, switch view to plain text mode 

    Changing videos...

    Qt Code:
    1. m_mediaobject->setCurrentSource(Phonon::MediaSource("C:/testA.mpg")); <- plays fine
    2. m_mediaobject->enqueue(Phonon::MediaSource("C:/testB.mpg")); <- new video, plays fine
    To copy to clipboard, switch view to plain text mode 

    It seems to be something to do with the Video format? Although, both A and B above are mpeg-1/2 (according to VLC).

    Also, when I reload the file...

    Qt Code:
    1. void PreviewWidget::reloadFile()
    2. {
    3. m_mediaobject->clearQueue();
    4. m_mediaobject->setCurrentSource(Phonon::MediaSource("C:/testA.mpg"));
    5. }
    To copy to clipboard, switch view to plain text mode 

    The video will play normally, but if I have called enqueue previously I get no video!

    As long as don't enqueue, video A and others like it play fine when loaded. But if I try to enqueue, half of my video's won't playback (audio still does) and they don't playback even if I stop enqueue'ing them and just reload. The other half enqueue fine.

    Would appreciate some help Thanks.
    Last edited by serio; 8th September 2010 at 11:08.

Similar Threads

  1. video fade in/out in phonon
    By panpanpandas in forum Qt Programming
    Replies: 2
    Last Post: 31st July 2011, 08:40
  2. Playing video using Phonon video widget
    By Leolander in forum Newbie
    Replies: 0
    Last Post: 26th February 2010, 06:15
  3. Phonon Video Player + XML
    By igor.schkrab in forum Qt Programming
    Replies: 0
    Last Post: 24th November 2009, 23:49
  4. Replies: 3
    Last Post: 5th July 2009, 17:22
  5. Video freezes during mpeg video playback using Phonon
    By davejames in forum Qt Programming
    Replies: 2
    Last Post: 12th January 2009, 08:45

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
  •  
Qt is a trademark of The Qt Company.