Fixed VideoPlayerPage.qml failure to set cameraConfig
authorMohammed Sameer <msameer@foolab.org>
Sat, 27 Jul 2013 22:04:34 +0000 (01:04 +0300)
committerMohammed Sameer <msameer@foolab.org>
Sat, 27 Jul 2013 22:04:34 +0000 (01:04 +0300)
qml/PostCaptureItem.qml
qml/PostCaptureView.qml
qml/VideoPlayerPage.qml
qml/main.qml

index 824f851..4cc51d1 100644 (file)
@@ -25,6 +25,7 @@ import CameraPlus 1.0
 
 Item {
     id: postCaptureItem
 
 Item {
     id: postCaptureItem
+
     property bool isVideo: itemData.type.search("nmm#Video") > 0
     property alias error: image.error
     property variant itemData: item
     property bool isVideo: itemData.type.search("nmm#Video") > 0
     property alias error: image.error
     property variant itemData: item
index 75f4371..d979a49 100644 (file)
@@ -25,6 +25,7 @@ import CameraPlus 1.0
 import QtCamera 1.0
 
 Item {
 import QtCamera 1.0
 
 Item {
+    property Camera camera: null
     property bool pressed: view.currentItem ? view.currentItem.playing : false
     property int policyMode: view.currentItem && view.currentItem.playing ?
         CameraResources.Player : settings.mode == Camera.VideoMode ? CameraResources.Video :
     property bool pressed: view.currentItem ? view.currentItem.playing : false
     property int policyMode: view.currentItem && view.currentItem.playing ?
         CameraResources.Player : settings.mode == Camera.VideoMode ? CameraResources.Video :
index 535510e..9b6ec4f 100644 (file)
@@ -58,7 +58,7 @@ Item {
     VideoPlayer {
         id: video
         anchors.fill: parent
     VideoPlayer {
         id: video
         anchors.fill: parent
-        cameraConfig: cam.cameraConfig
+        cameraConfig: camera.cameraConfig
 
         onError: showError(qsTr("Error playing video. Please try again or restart the application"))
 
 
         onError: showError(qsTr("Error playing video. Please try again or restart the application"))
 
index a01489b..748ff83 100644 (file)
@@ -46,6 +46,7 @@ CameraWindow {
         }
 
         PostCaptureView {
         }
 
         PostCaptureView {
+            camera: viewfinder.camera
             width: mainView.width
             height: mainView.height
         }
             width: mainView.width
             height: mainView.height
         }