summaryrefslogtreecommitdiffstats
path: root/examples/multimedia/video/qmlvideo
diff options
context:
space:
mode:
authorLars Knoll <lars.knoll@qt.io>2021-07-01 09:00:55 +0200
committerLars Knoll <lars.knoll@qt.io>2021-07-08 15:16:25 +0200
commit0c1c6658f9e5719bd9e2321c683e3a33313a511b (patch)
treebadd6f3e5d77a103d7143c411e733376115b2a5e /examples/multimedia/video/qmlvideo
parent86f8db5856a0fde21e4cbe7620992e19affa751c (diff)
Fix volume property
The media player doesn't have a volume property anymore, it's the audio output that has it. Change-Id: I5dd1ca42a63ae6d1b5b3e550616b20be5aa146c3 Reviewed-by: Lars Knoll <lars.knoll@qt.io> Reviewed-by: Bartlomiej Moskal <bartlomiej.moskal@qt.io>
Diffstat (limited to 'examples/multimedia/video/qmlvideo')
-rw-r--r--examples/multimedia/video/qmlvideo/qml/qmlvideo/VideoItem.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/multimedia/video/qmlvideo/qml/qmlvideo/VideoItem.qml b/examples/multimedia/video/qmlvideo/qml/qmlvideo/VideoItem.qml
index c6159a9af..d34789c57 100644
--- a/examples/multimedia/video/qmlvideo/qml/qmlvideo/VideoItem.qml
+++ b/examples/multimedia/video/qmlvideo/qml/qmlvideo/VideoItem.qml
@@ -60,7 +60,7 @@ VideoOutput {
property alias metaData: mediaPlayer.metaData
property alias playbackRate: mediaPlayer.playbackRate
property alias position: mediaPlayer.position
- property alias volume: mediaPlayer.volume
+ property alias volume: audioOutput.volume
signal sizeChanged
signal fatalError
@@ -71,7 +71,7 @@ VideoOutput {
id: mediaPlayer
videoOutput: root;
audioOutput: AudioOutput {
-
+ id: audioOutput
}
onErrorOccurred: function(error, errorString) {