Loading media/java/android/media/MediaRecorder.java +2 −3 Original line number Original line Diff line number Diff line Loading @@ -351,12 +351,11 @@ public class MediaRecorder */ */ public void setCaptureRate(double fps) { public void setCaptureRate(double fps) { // Make sure that time lapse is enabled when this method is called. // Make sure that time lapse is enabled when this method is called. setParameter(String.format("time-lapse-enable=1")); setParameter("time-lapse-enable=1"); double timeBetweenFrameCapture = 1 / fps; double timeBetweenFrameCapture = 1 / fps; int timeBetweenFrameCaptureMs = (int) (1000 * timeBetweenFrameCapture); int timeBetweenFrameCaptureMs = (int) (1000 * timeBetweenFrameCapture); setParameter(String.format("time-between-time-lapse-frame-capture=%d", setParameter("time-between-time-lapse-frame-capture=" + timeBetweenFrameCaptureMs); timeBetweenFrameCaptureMs)); } } /** /** Loading Loading
media/java/android/media/MediaRecorder.java +2 −3 Original line number Original line Diff line number Diff line Loading @@ -351,12 +351,11 @@ public class MediaRecorder */ */ public void setCaptureRate(double fps) { public void setCaptureRate(double fps) { // Make sure that time lapse is enabled when this method is called. // Make sure that time lapse is enabled when this method is called. setParameter(String.format("time-lapse-enable=1")); setParameter("time-lapse-enable=1"); double timeBetweenFrameCapture = 1 / fps; double timeBetweenFrameCapture = 1 / fps; int timeBetweenFrameCaptureMs = (int) (1000 * timeBetweenFrameCapture); int timeBetweenFrameCaptureMs = (int) (1000 * timeBetweenFrameCapture); setParameter(String.format("time-between-time-lapse-frame-capture=%d", setParameter("time-between-time-lapse-frame-capture=" + timeBetweenFrameCaptureMs); timeBetweenFrameCaptureMs)); } } /** /** Loading