diff options
author | Lars Knoll <lars.knoll@qt.io> | 2021-06-30 14:22:58 +0200 |
---|---|---|
committer | Lars Knoll <lars.knoll@qt.io> | 2021-07-08 15:16:25 +0200 |
commit | 1b479a78945070932acc11f5ded533586563943a (patch) | |
tree | f544029b8e179a05f05a9c14d07dbdfd0698f8bf /examples/multimedia/declarative-camera/VideoCaptureControls.qml | |
parent | b4e6892b64cce803d52f0e898e746bd9810501cc (diff) |
Rename QMediaCaptureSession::encoder to recorder
As the class is called QMediaRecorder this is required
for API consistency. Also cleaned up the front end code
and examples where they used encoder instead of recorder.
Cleanup of the backend will have to come in a separate change.
Change-Id: I6e63e607473e68f628b1f89ffa3edcbc5bf5c2c8
Reviewed-by: Doris Verria <doris.verria@qt.io>
Reviewed-by: Bartlomiej Moskal <bartlomiej.moskal@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'examples/multimedia/declarative-camera/VideoCaptureControls.qml')
-rw-r--r-- | examples/multimedia/declarative-camera/VideoCaptureControls.qml | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/examples/multimedia/declarative-camera/VideoCaptureControls.qml b/examples/multimedia/declarative-camera/VideoCaptureControls.qml index 3fc787d30..fa1819f6e 100644 --- a/examples/multimedia/declarative-camera/VideoCaptureControls.qml +++ b/examples/multimedia/declarative-camera/VideoCaptureControls.qml @@ -81,22 +81,22 @@ FocusScope { CameraButton { text: "Record" - visible: captureSession.encoder.status !== MediaEncoder.RecordingStatus - onClicked: captureSession.encoder.record() + visible: captureSession.recorder.status !== MediaRecorder.RecordingStatus + onClicked: captureSession.recorder.record() } CameraButton { id: stopButton text: "Stop" - visible: captureSession.encoder.status === MediaEncoder.RecordingStatus - onClicked: captureSession.encoder.stop() + visible: captureSession.recorder.status === MediaRecorder.RecordingStatus + onClicked: captureSession.recorder.stop() } CameraButton { text: "View" onClicked: captureControls.previewSelected() //don't show View button during recording - visible: captureSession.encoder.actualLocation && !stopButton.visible + visible: captureSession.recorder.actualLocation && !stopButton.visible } } |