diff options
author | Jøger Hansegård <joger.hansegard@qt.io> | 2023-11-06 21:59:39 +0100 |
---|---|---|
committer | Jøger Hansegård <joger.hansegard@qt.io> | 2023-11-08 15:51:16 +0100 |
commit | 1c96be87cbafd78a9b509607cd65735cd8b533d4 (patch) | |
tree | 21076ca1370457df3c229ed71552053399e45a4b /src/multimedia/playback | |
parent | 563d645d9d7aa54403e16dac952a6acf07cf00bb (diff) |
Doc update on negative playback rates, and hardened FFmpeg handling
The FFmpeg media player does not support negative playback rates, even
if the documentation stated that negative rates can be used.
This is fixed by updating the documentation to state that negative rates
are not supported (independently of backend). Note: Negative playback
rates may still work with some backends, but it is not considered
supported (or maintained).
In addition, the FFmpeg backend has been changed to clamp negative
playback rates to 0, instead of asserting.
This patch also fixes an issue where playbackRateChanged signals were
not emitted by the FFmpeg backend. The mediaplayer example is updated
to make this issue easier to spot in the future.
Task-number: QTBUG-118654
Pick-to: 6.6 6.5
Change-Id: Iaaffa9fa39bdd462ad5b5a838390325d78d64e85
Reviewed-by: Artem Dyomin <artem.dyomin@qt.io>
Diffstat (limited to 'src/multimedia/playback')
-rw-r--r-- | src/multimedia/playback/qmediaplayer.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/multimedia/playback/qmediaplayer.cpp b/src/multimedia/playback/qmediaplayer.cpp index 57c3c3114..6457ca513 100644 --- a/src/multimedia/playback/qmediaplayer.cpp +++ b/src/multimedia/playback/qmediaplayer.cpp @@ -1301,11 +1301,11 @@ QMediaMetaData QMediaPlayer::metaData() const \property QMediaPlayer::playbackRate \brief the playback rate of the current media. - This value is a multiplier applied to the media's standard play rate. By - default this value is 1.0, indicating that the media is playing at the - standard pace. Values higher than 1.0 will increase the rate of play. - Values less than zero can be set and indicate the media should rewind at the - multiplier of the standard pace. + This value is a multiplier applied to the media's standard playback + rate. By default this value is 1.0, indicating that the media is + playing at the standard speed. Values higher than 1.0 will increase + the playback speed, while values between 0.0 and 1.0 results in + slower playback. Negative playback rates are not supported. Not all playback services support change of the playback rate. It is framework defined as to the status and quality of audio and video |