3 import com.nokia.meego 1.1
10 policyMode: CameraResources.Video
12 controlsVisible: recording.visible && cam.running && !standbyWidget.visible
14 orientationLock: PageOrientation.LockLandscape
17 inhibitDim: videoMode.recording
22 anchors.right: parent.right
23 anchors.rightMargin: 20
24 anchors.verticalCenter: parent.verticalCenter
25 iconSource: "image://theme/icon-m-camera-video-record"
31 if (!fileSystem.available) {
32 showError(qsTr("Camera cannot record videos in mass storage mode."));
36 // We only toggle the mode to video recording so
37 // policy can acquire the needed resources
39 if (policyMode == CameraResources.Video) {
40 policyMode = CameraResources.Recording;
42 else if (videoMode.recording) {
43 // We just ask to stop video.
44 videoMode.stopRecording();
51 if (!videoMode.recording) {
52 policyMode = CameraResources.Video;
58 target: resourcePolicy
60 if (resourcePolicy.acquired && policyMode == CameraResources.Recording) {
61 metaData.setMetaData();
62 if (!videoMode.startRecording(fileNaming.videoFileName())) {
63 showError(qsTr("Failed to record video. Please restart the camera."));
64 policyMode = CameraResources.Video
70 visible: (videoMode.recording || videoMode.canCapture) && !cameraMode.animationRunning && !previewAnimationRunning && !standbyWidget.visible
74 target: Qt.application
76 if (!Qt.application.active && videoMode.recording) {
77 videoMode.stopRecording();
86 if (!standbyWidget.visible) {
87 page.setPreview(preview);
94 visible: controlsVisible
95 anchors.top: parent.top
96 anchors.left: parent.left
98 anchors.leftMargin: 20
104 visible: controlsVisible && !videoMode.recording
105 anchors.top: torch.bottom
106 anchors.left: parent.left
107 anchors.topMargin: 10
108 anchors.leftMargin: 20
113 visible: controlsVisible
114 anchors.top: scene.bottom
115 anchors.left: parent.left
116 anchors.topMargin: 10
117 anchors.leftMargin: 20
122 anchors.top: parent.top
123 anchors.right: parent.right
124 anchors.topMargin: 20
125 anchors.rightMargin: 20
130 iconSource: "image://theme/icon-m-camera-roll"
131 onClicked: openFile("PostCapturePage.qml");
132 visible: controlsVisible && !videoMode.recording