summaryrefslogtreecommitdiffstats
path: root/examples/multimedia/video/mediaplayer/PlaybackSeekControl.qml
Commit message (Collapse)AuthorAgeFilesLines
* Use SPDX license identifiersLucie Gérard2022-06-281-49/+2
| | | | | | | | | | | | Replace the current license disclaimer in files by a SPDX-License-Identifier. License files are organized under LICENSES directory. Task-number: QTBUG-67283 Change-Id: Ida08dfe6c84778656e942178c3d39042c9ef1ed2 Reviewed-by: Jörg Bornemann <joerg.bornemann@qt.io> (cherry picked from commit e9abd242abfbc368478f7be3e2923e7b100a9386) Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
* Fix media player position handling after seeking on gstreamerLars Knoll2021-07-301-20/+6
| | | | | | | | | | | | | | | | After calling setPosition() while being paused, gst_element_query_position() can return false while the pipeline is still prerolling the new position. So simply return the last position in that case instead of 0. Also moved some methods that are only used on the pipeline from QGstElement to QGstPipeline so that we can cache the position there without having to add data to every element. Fixes: QTBUG-95251 Change-Id: Ice56975fcf7d519f0dd54db75103b97b025cd085 Reviewed-by: André de la Rocha <andre.rocha@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Fix QMediaPlayer::isSeekable() on gstreamerLars Knoll2021-07-301-6/+1
| | | | | | | | | | Properly determine whether seeking is allowed on the given source. Add an auto test. Fixes: QTBUG-95246 Change-Id: I6a81a4690c6f9d53ef1ef9c217a3077fa63c05d0 Reviewed-by: André de la Rocha <andre.rocha@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
* Add an example media player written in QMLPiotr Srebrny2021-06-031-0/+108
Change-Id: I98c35b3888701f94efaf58b3ab6c08c39943bdf8 Reviewed-by: Lars Knoll <lars.knoll@qt.io>