Added error reporting
[harmattan/cameraplus] / qml / VideoPlayerPage.qml
index 5fb702a..c87e507 100644 (file)
@@ -26,8 +26,6 @@ import CameraPlus 1.0
 import QtCamera 1.0
 import QtCameraExtras 1.0
 
-// TODO: error reporting
-
 Item {
     id: page
 
@@ -59,6 +57,8 @@ Item {
         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()