Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-6933

Issues using MediaObject created with QIODevice

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Not Evaluated
    • None
    • 4.4.3, 4.5.2
    • (Inactive) mmfphonon
    • None
    • Windows XP, Visual Studio 2005

    Description

      I'm having problems using phonon to play large files.

      Using the mediaPlayer example (in demos/mediaplayer), I added a QFile instance in the header file, and modified MediaPlayer::setFile to say:

      m_file.setFileName (fileName);

      m_MediaObject.setCurrentSource (Phonon::MediaSource (&file));

      (instead of m_MediaObject.setCurrentSource (Phonon::MediaSource (fileName))

      Because m_file is a class variable, it won't go out of scope.

      All files open, but when I use the slider to jump around to different positions in the file, the player hangs. However, with the original source code (where the fileName is passed in to the MediaSource), everything works as expected.

      I have experienced problems with the DivX Decoder Filter (video) with the MPEG Layer-3 Decoder (audio), 821 meg, 2 hours 24 minutes of footage, and same combination with 716 meg, 1 hour 33 minutes of footage. I have had success with the MPEG Video Decoder (video) and MPEG Audio Decoder (Audio), 714 meg, 1 hour 9 minutes of footage.

      Visual Studio 2005, Qt 4.4.3 (also tested with 4.5.2), Windows XP.

      Do you have any explanation for this? As I ultimately need to pass a subclass of QFile into the MediaSource, this is a critical issue for me.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vfm Thierry Bastian (closed Nokia identity) (Inactive)
            darryl Darryl Hunter
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes