summaryrefslogtreecommitdiffstats
path: root/src/com
diff options
context:
space:
mode:
authorWu-cheng Li <wuchengli@google.com>2011-08-02 13:57:08 +0800
committerWu-cheng Li <wuchengli@google.com>2011-08-02 17:01:14 +0800
commit3ab4f0912da83f7f5f8266a57a606d521c1649e3 (patch)
treed14a7dab939b185076590d574a97ad9095e44329 /src/com
parentd835c675ae8c971df835f086467401853f2ec41f (diff)
downloadLegacyCamera-3ab4f0912da83f7f5f8266a57a606d521c1649e3.zip
LegacyCamera-3ab4f0912da83f7f5f8266a57a606d521c1649e3.tar.gz
LegacyCamera-3ab4f0912da83f7f5f8266a57a606d521c1649e3.tar.bz2
Set recording hint to true in camcorder mode.
bug:4266229 Change-Id: Ic8cf3ea9e16adb62dbe30df7baf9528807c9ea56
Diffstat (limited to 'src/com')
-rw-r--r--src/com/android/camera/Camera.java2
-rw-r--r--src/com/android/camera/VideoCamera.java3
-rw-r--r--src/com/android/camera/panorama/PanoramaActivity.java3
3 files changed, 8 insertions, 0 deletions
diff --git a/src/com/android/camera/Camera.java b/src/com/android/camera/Camera.java
index ed168df..da114b5 100644
--- a/src/com/android/camera/Camera.java
+++ b/src/com/android/camera/Camera.java
@@ -1940,6 +1940,8 @@ public class Camera extends ActivityBase implements View.OnClickListener,
mParameters.setPreviewFrameRate(max);
}
+ // TODO: use camera API after it is published.
+ mParameters.set("recording-hint", "false");
}
private void updateCameraParametersZoom() {
diff --git a/src/com/android/camera/VideoCamera.java b/src/com/android/camera/VideoCamera.java
index fe61e42..7de8553 100644
--- a/src/com/android/camera/VideoCamera.java
+++ b/src/com/android/camera/VideoCamera.java
@@ -1779,6 +1779,9 @@ public class VideoCamera extends ActivityBase
mParameters.setFocusMode(Parameters.FOCUS_MODE_CONTINUOUS_VIDEO);
}
+ // TODO: use camera API after it is published.
+ mParameters.set("recording-hint", "true");
+
mCameraDevice.setParameters(mParameters);
// Keep preview size up to date.
mParameters = mCameraDevice.getParameters();
diff --git a/src/com/android/camera/panorama/PanoramaActivity.java b/src/com/android/camera/panorama/PanoramaActivity.java
index 4a1e270..770ba51 100644
--- a/src/com/android/camera/panorama/PanoramaActivity.java
+++ b/src/com/android/camera/panorama/PanoramaActivity.java
@@ -181,6 +181,9 @@ public class PanoramaActivity extends Activity implements ModePicker.OnModeChang
int maxFps = (frameRates.get(last))[Parameters.PREVIEW_FPS_MAX_INDEX];
parameters.setPreviewFpsRange(minFps, maxFps);
Log.v(TAG, "preview fps: " + minFps + ", " + maxFps);
+
+ // TODO: use camera API after it is published.
+ parameters.set("recording-hint", "false");
}
public int getPreviewBufSize() {