diff options
author | Ed Cooke <ed.cooke@qt.io> | 2024-01-03 14:11:55 +0100 |
---|---|---|
committer | Qt Cherry-pick Bot <cherrypick_bot@qt-project.org> | 2024-04-24 14:14:55 +0000 |
commit | fe5b411524d3406946a222bc3ee774d9cebdd424 (patch) | |
tree | 1fdb93c058d78e84448432aaac205afe777913af /examples/multimedia/video/mediaplayer/PlaybackRateControl.qml | |
parent | 778254951aadc45eaf447fdd5dfb9f3c33d7c679 (diff) |
Update QML Media Player
Rewrite the QML media player with a new UI. Changes include:
* Remove the menu bar and replace it with popups for file importing
and track selection.
* Replace the playback rate slider with +/- 10 second buttons and a
playback rate combo box.
* Add a timer to hide the playback controls when the mouse has been idle
for 3 seconds.
* Add a button to toggle between single play or infinite loop.
* Add a layout for mobile using responsive layouts.
Fixes: QTBUG-118474
Pick-to: 6.6
Change-Id: I0496766a79287e9eabd6f7aff8392a8ea0706920
Reviewed-by: Jøger Hansegård <joger.hansegard@qt.io>
(cherry picked from commit 5aa9f991c22f580d3d937b77cded6f6b2f3ffd08)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples/multimedia/video/mediaplayer/PlaybackRateControl.qml')
-rw-r--r-- | examples/multimedia/video/mediaplayer/PlaybackRateControl.qml | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/examples/multimedia/video/mediaplayer/PlaybackRateControl.qml b/examples/multimedia/video/mediaplayer/PlaybackRateControl.qml deleted file mode 100644 index 131ee17c4..000000000 --- a/examples/multimedia/video/mediaplayer/PlaybackRateControl.qml +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (C) 2021 The Qt Company Ltd. -// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR BSD-3-Clause - -import QtQuick -import QtQuick.Controls -import QtQuick.Layouts -import QtMultimedia - -Item { - id: root - - required property MediaPlayer mediaPlayer - - RowLayout { - anchors.fill: parent - - Slider { - id: slider - Layout.fillWidth: true - snapMode: Slider.SnapOnRelease - enabled: true - from: 0.5 - to: 2.5 - stepSize: 0.5 - value: 1.0 - - onMoved: { mediaPlayer.setPlaybackRate(value) } - } - Text { - text: "Rate " + mediaPlayer.playbackRate + "x" - } - } -} |