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 if (!videoMode.startRecording(fileNaming.videoFileName())) {
62 showError(qsTr("Failed to record video. Please restart the camera."));
63 policyMode = CameraResources.Video
69 visible: (videoMode.recording || videoMode.canCapture) && !cameraMode.animationRunning && !previewAnimationRunning && !standbyWidget.visible
73 target: platformWindow
75 if (!platformWindow.active && videoMode.recording) {
76 videoMode.stopRecording();
85 if (!standbyWidget.visible) {
86 page.setPreview(preview);
93 visible: controlsVisible
94 anchors.top: parent.top
95 anchors.left: parent.left
97 anchors.leftMargin: 20
103 visible: controlsVisible && !videoMode.recording
104 anchors.top: torch.bottom
105 anchors.left: parent.left
106 anchors.topMargin: 10
107 anchors.leftMargin: 20
112 visible: controlsVisible
113 anchors.top: scene.bottom
114 anchors.left: parent.left
115 anchors.topMargin: 10
116 anchors.leftMargin: 20
121 anchors.top: parent.top
122 anchors.right: parent.right
123 anchors.topMargin: 20
124 anchors.rightMargin: 20
129 iconSource: "image://theme/icon-m-camera-roll"
130 onClicked: openFile("PostCapturePage.qml");
131 visible: controlsVisible && !videoMode.recording