import QtCamera 1.0
import QtCameraExtras 1.0
-// TODO: error reporting
-
Item {
id: page
anchors.fill: parent
cameraConfig: cam.cameraConfig
+ onError: showError(qsTr("Error playing video. Please try again or restart the application"))
+
function toggle() {
if (!video.paused) {
video.pause()