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

QMediaPlayer does not allow negative playback rate hence no rewinding possible

    XMLWordPrintable

Details

    • 1c96be87c (dev), 428f7cc3e (6.6), 8f67f3141 (tqtc/lts-6.5)

    Description

      Our documentation says "Values less than zero can be set and indicate the media should rewind at the multiplier of the standard pace":
      https://doc.qt.io/qt-6/qmediaplayer.html#playbackRate-prop

      But it is not true after I test our Media Player Example. I add the following line to "PlayerControls::PlayerContorls":

      m_rateBox->addItem("-1.0x", QVariant(-1.0));
      

      in order to test play back. As soon as I select it, an assertion failed:

      ASSERT: "playbackRate > 0.f" in file C:\Users\qt\work\qt\qtmultimedia\src\plugins\multimedia\ffmpeg\playbackengine\qffmpegtimecontroller.cpp, line 30
      

      Attachments

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

        Activity

          People

            johanseg Jøger Hansegård
            luqiaochen Luqiao Chen
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes