// TODO: stop recording when battery low
// TODO: stop recording when disk is low
-// TODO: stop recording after 1 hour
CameraPage {
id: page
height: 75
opacity: 0.5
- onClicked: {
+ onClicked: buttonClicked();
+
+ function buttonClicked() {
if (!fileSystem.available) {
showError(qsTr("Camera cannot record videos in mass storage mode."));
return;
onTriggered: {
duration = duration + 1;
+ if (duration == 3600) {
+ videoMode.stopRecording();
+ showError(qsTr("Maximum recording time reached."));
+ }
}
onRunningChanged: {