diff options
author | James Dong <jdong@google.com> | 2010-02-23 18:05:39 -0800 |
---|---|---|
committer | James Dong <jdong@google.com> | 2010-02-25 15:13:12 -0800 |
commit | 02627adfa3d240d817e34af69be8d07e9c66c136 (patch) | |
tree | 3e990279b13e1477b1448f4933c7e71e480826a1 /src/com/android/camera/CameraSettings.java | |
parent | e7a53d0c5c3b8434e7ee8b92072ec8c47fe12cdb (diff) | |
download | LegacyCamera-02627adfa3d240d817e34af69be8d07e9c66c136.zip LegacyCamera-02627adfa3d240d817e34af69be8d07e9c66c136.tar.gz LegacyCamera-02627adfa3d240d817e34af69be8d07e9c66c136.tar.bz2 |
Set duration and still image encoding quality using Java API
- rebased
bug - 2375978
Diffstat (limited to 'src/com/android/camera/CameraSettings.java')
-rw-r--r-- | src/com/android/camera/CameraSettings.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/com/android/camera/CameraSettings.java b/src/com/android/camera/CameraSettings.java index db82a75..6df7803 100644 --- a/src/com/android/camera/CameraSettings.java +++ b/src/com/android/camera/CameraSettings.java @@ -20,6 +20,8 @@ import android.app.Activity; import android.content.Context; import android.content.SharedPreferences; import android.graphics.drawable.Drawable; +import android.media.CamcorderProfile; +import android.media.CamcorderProfile.Quality; import android.hardware.Camera.Parameters; import android.hardware.Camera.Size; import android.os.SystemProperties; @@ -60,8 +62,7 @@ public class CameraSettings { public static final int CURRENT_VERSION = 3; // max mms video duration in seconds. - public static final int MMS_VIDEO_DURATION = - SystemProperties.getInt("ro.media.enc.lprof.duration", 60); + public static final int MMS_VIDEO_DURATION = CamcorderProfile.getMmsRecordingDurationInSeconds(); public static final boolean DEFAULT_VIDEO_QUALITY_VALUE = true; |