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

Undocumented behavior on QMediaPlayer setPlaybackRate for higher values

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.11.0
    • 5.7.0
    • Multimedia
    • None
    • Windows 10 x64, with Qt 5.7.0, QtWidget application created in Qt Creator

    Description

      When setting the QMediaPlayer property to values greater than 4.0, the value is set to 1.0 instead, and an adequate playbackRateChanged signal is emitted.

      The [QMediaPlayer playbackRate](http://doc.qt.io/qt-5/qmediaplayer.html#playbackRate-prop) documentation does not state anything about potentially unexpected values being set / playbackRate being reset to 1.0.

      It documents:
      > It is framework defined as to the status and quality of audio and video while fast forwarding or rewinding.

      While I do not know what "framework defined" even means (Qt is the framework here, I guess not?), I would expect setting the playback speed to 5.0 would actually set it to 5.0, potentially leading to playback issues or at least setting it to the maximum of 4.0.

      I would expect the documentation to document this behavior, or if this is specific to an underlying library ("framework defined"?) to be pointed there and the potential of the value changing to other values be mentioned. If on the other hand this is a bug rather than incomplete documentation, other steps would be necessary I guess.

      Attachments

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

        Activity

          People

            valentyn.doroshchuk Valentyn Doroshchuk
            kissaki Jan Klass
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes