PDA

View Full Version : camera qml qt5.1 recording



dspelt
19th August 2013, 20:12
I am trying to get the qml camera elements to change video recording state. When I call camera.record() it doesn't change state camera.videorecorder.Recorderstate

onClicked:{
console.debug("BEFORE stop/record: " + camera.videoRecorder.recorderState)
if (camera.videoRecorder.recorderState === camera.videoRecorder.RecordingState) {
camera.videoRecorder.stop()
text = "Start Recording"
console.debug("Stopped")
}
else {
camera.videoRecorder.record()
text = "Stop Recording"
console.debug("Recording...")
}
console.debug("AFTER stop/record: " + camera.videoRecorder.recorderState)
}
}
}



Can anyone help me? Am I missing some logic?