summaryrefslogtreecommitdiffstats
path: root/examples/multimedia/declarative-camera/VideoCaptureControls.qml
diff options
context:
space:
mode:
authorPekka Gehör <pekka.gehor@qt.io>2021-12-14 10:31:01 +0200
committerQt Cherry-pick Bot <cherrypick_bot@qt-project.org>2021-12-14 17:50:23 +0000
commit33350f29efffb1306097518ba17fa85ccb5385b9 (patch)
treeaa518b5e67ae26b59e7c3ec3c3b130a303465a84 /examples/multimedia/declarative-camera/VideoCaptureControls.qml
parentb84dc890f542ca38e10c613b8b51c00506fce5e4 (diff)
Fix Declarative Camera issues on video side
After the fix, the buttons on video side will behave as they should and preview plays the video. Fixes: QTBUG-99134 Change-Id: I593aad3f37b93b3699781c6b143e7e0c9a157ec3 Reviewed-by: Lars Knoll <lars.knoll@qt.io> (cherry picked from commit 452caffc791e4be614ffc46ae6dc34e3da8be90d) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
Diffstat (limited to 'examples/multimedia/declarative-camera/VideoCaptureControls.qml')
-rw-r--r--examples/multimedia/declarative-camera/VideoCaptureControls.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/multimedia/declarative-camera/VideoCaptureControls.qml b/examples/multimedia/declarative-camera/VideoCaptureControls.qml
index 53682f88b..b2dbe3bd3 100644
--- a/examples/multimedia/declarative-camera/VideoCaptureControls.qml
+++ b/examples/multimedia/declarative-camera/VideoCaptureControls.qml
@@ -80,7 +80,7 @@ FocusScope {
CameraButton {
text: "Record"
anchors.fill: parent
- visible: captureSession.recorder.status !== MediaRecorder.RecordingStatus
+ visible: captureSession.recorder.recorderState !== MediaRecorder.RecordingState
onClicked: captureSession.recorder.record()
}
}
@@ -92,7 +92,7 @@ FocusScope {
id: stopButton
text: "Stop"
anchors.fill: parent
- visible: captureSession.recorder.status === MediaRecorder.RecordingStatus
+ visible: captureSession.recorder.recorderState === MediaRecorder.RecordingState
onClicked: captureSession.recorder.stop()
}
}