public class

CameraPhotoTimeLapseParam

extends Object
java.lang.Object
   ↳ dji.common.camera.CameraPhotoTimeLapseParam

Class Overview

The TimeLapse parameters including interval, duration and file format when saving.
Precondition:
Camera should be in TimeLapse mode of CameraPhotoShootMode.

Summary

Public Constructors
CameraPhotoTimeLapseParam()
Public Methods
int getDuration()
DJICameraSettingsDef.CameraPhotoTimeLapseFileFormat getFileFormat()
int getInterval()
void setDuration(int duration)
The time for the whole action.
void setFileFormat(DJICameraSettingsDef.CameraPhotoTimeLapseFileFormat fileFormat)
An enum type of the file format to be used.
void setInterval(int interval)
The time between image captures.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public CameraPhotoTimeLapseParam ()

Public Methods

public int getDuration ()

Returns
  • The time for the whole action.

public DJICameraSettingsDef.CameraPhotoTimeLapseFileFormat getFileFormat ()

Returns
  • The enum type of the file format being used.

public int getInterval ()

Returns
  • The time between image captures.

public void setDuration (int duration)

The time for the whole action.

Parameters
duration An integer falls in the range, [0, 2^31-1] seconds. If the value is set to be 0, it means that it shoots forever until invoking stopShootPhoto method.

public void setFileFormat (DJICameraSettingsDef.CameraPhotoTimeLapseFileFormat fileFormat)

An enum type of the file format to be used.

Parameters
fileFormat Please refer to CameraPhotoTimeLapseFileFormat in DJICameraSettingsDef.

public void setInterval (int interval)

The time between image captures.

Parameters
interval An integer falls in the range, [10, 1000]. The unit is 100ms. Please note that when the format is JPEG+Video, the minimum interval is 20(2 seconds).