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

QMediaPlayer with ffmpeg backend reports LoadedMedia while playing

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 6.7
    • Multimedia
    • None

    Description

      As title suggests, QMediaPlayer can (easily) be brought in a state where mediaStatus = QMediaPlayer::LoadedMedia while in the QMediaPlayer::PlayingState.  According to the documentation this is a combination which is not allowed.

      So far I've only confirmed this with qt 6.7 on linux with the ffmpeg backend.  But I'm seeing the same symptoms in my app on android built with qt 6.6.

      The behaviour can be reproduced by:

      1. Loading an mp3 file with QMediaPlayer
      2. Start playback --> mediaStatus will correctly be BufferedMedia after playback starts
      3. Seek to a different position in the audio file --> mediaStatus will now reproducibly change to LoadedMedia while playback continues at the new position

      See attached qml file which allows to reproduce the issue: load an mp3 file, press play, skip to other position, watch how mediaStatus changes from "4" to "2" = LoadedMedia

      Attachments

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

        Activity

          People

            qtmultimediateam Qt Multimedia Team
            mogwai_ Bart De Vries
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes