Stop video playback when we lose policy resources
[harmattan/cameraplus] / qml / PostCaptureItem.qml
index 0cd065f..5e5b79e 100644 (file)
@@ -41,6 +41,12 @@ Item {
         }
     }
 
+    function stopPlayback() {
+        if (loader.item) {
+            loader.item.stop()
+        }
+    }
+
     Loader {
         id: loader
         anchors.fill: parent