summaryrefslogtreecommitdiffstats
path: root/examples/multimedia/video/mediaplayer/PlaybackControl.qml
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2021-06-25 15:17:25 +0200
committerPiotr Srebrny <piotr.srebrny@qt.io>2021-06-28 10:20:39 +0200
commit2b804546a8ee5a16aca50242778d8f8e607e5bbe (patch)
tree1031b0a60bc39885d95afaab66be277458295099 /examples/multimedia/video/mediaplayer/PlaybackControl.qml
parent72656351ecaf2932b39ff5bac7173b3f73d721ad (diff)
Fix audio handling in the media player example
Adapt to recent API changes that broke that volume/muted handling in this example. Change-Id: I7a3d151fe0ffcc6f937418703bf815b2f75323a5 Reviewed-by: Piotr Srebrny <piotr.srebrny@qt.io> Reviewed-by: André de la Rocha <andre.rocha@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'examples/multimedia/video/mediaplayer/PlaybackControl.qml')
-rw-r--r--examples/multimedia/video/mediaplayer/PlaybackControl.qml3
1 files changed, 3 insertions, 0 deletions
diff --git a/examples/multimedia/video/mediaplayer/PlaybackControl.qml b/examples/multimedia/video/mediaplayer/PlaybackControl.qml
index 51e4e794d..8809bff57 100644
--- a/examples/multimedia/video/mediaplayer/PlaybackControl.qml
+++ b/examples/multimedia/video/mediaplayer/PlaybackControl.qml
@@ -58,6 +58,8 @@ Item {
required property MediaPlayer mediaPlayer
property int mediaPlayerState: mediaPlayer.playbackState
+ property alias muted: audio.muted
+ property alias volume: audio.volume
implicitHeight: 80
opacity: 1
@@ -139,6 +141,7 @@ Item {
}
AudioControl {
+ id: audio
anchors.right: parent.right
anchors.top: parent.top
anchors.bottom: parent.bottom