DJI Mobile SDK Documentation

      class ResolutionAndFrameRate

      @EXClassNullAway
      class ResolutionAndFrameRate implements Comparable<ResolutionAndFrameRate>
      Package:dji.common.camera
      Description:

      This class contains current values for camera parameters related to video resolution and video frame rate.

      Class Members:
      Resolution
      method
      method getResolution
      VideoResolution getResolution()
      Package:dji.common.camera
      Description:

      Returns the camera's current video resolution.

      Return:
      VideoResolutionReturns resolution
      Frame Rate
      method
      method getFrameRate
      SettingsDefinitions.VideoFrameRate getFrameRate()
      Package:dji.common.camera
      Description:

      Returns the camera's current video frame rate.

      Return:
      SettingsDefinitions.VideoFrameRateReturns framerate
      method
      method getFov
      SettingsDefinitions.VideoFov getFov()
      Package:dji.common.camera
      Description:

      The FOV for recording videos.

      Return:
      SettingsDefinitions.VideoFovReturns framerate
      Initialize
      method
      method ResolutionAndFrameRate
      ResolutionAndFrameRate(@NonNull VideoResolution resolution,
      @NonNull VideoFrameRate frameRate)
      Package:dji.common.camera
      Description:

      Creates a DJICameraVideoResolutionAndFrameRate instance with a preset camera video resolution and frame rate. The value of getFov is DEFAULT.

      Input Parameters:
      @NonNull VideoResolution resolutionThe specific resolution.
      @NonNull VideoFrameRate frameRateThe specific frame rate.
      method ResolutionAndFrameRate
      ResolutionAndFrameRate(@NonNull VideoResolution resolution,
      @NonNull VideoFrameRate frameRate,
      @NonNull SettingsDefinitions.VideoFov fov)
      Package:dji.common.camera
      Description:

      Creates a ResolutionAndFrameRate instance with a preset camera video resolution, frame rate and FOV. FOV is only configurable for Mavic 2 Pro and it is only configurable when the resolution is RESOLUTION_3840x2160 (4K). Use DEFAULT when FOV is not configurable.

      Input Parameters:
      @NonNull VideoResolution resolutionThe specific resolution.
      @NonNull VideoFrameRate frameRateThe specific frame rate.
      @NonNull SettingsDefinitions.VideoFov fovThe specific FOV.