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

In QMediaPlayer, C++, using setPosition fails on MP3 files

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2: Important P2: Important
    • 6.5
    • 6.4.2
    • Multimedia
    • None
    • Linux/Other display system

      When playing MP3 files, using the QMediaPlayer::setPosition does  not work as expected and can cause playing to stutter or halt.  I wrote a simple test program which starts playing an MP3 file, and clicking a button generates a random position within the file and uses setPosition to move to that location.   Occasionally, setPosition works as intended, but it will always fail after a few tries .. causing audio to stop playing without generating any discernible error.

      Just wanted to bring this to your attention.  I've got several MP3 players on my system and none of them exhibit similar behavior.   On a similar note, using setPosition on video (MP4) files works better, but still can cause the audio to get screwed up on occasion.

       

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

            artemiy Artem Dyomin
            jerryv Jerry Velders
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes