DJI Mobile SDK Documentation

      class DJIRecordVideoAction

      @interface DJIRecordVideoAction : DJIMissionAction
      Header:DJIRecordVideoAction.h
      Inherits From:DJIMissionAction
      Description:

      This class represents a video recording action used as an element in a Timeline mission. By creating an object of this class and adding it to Mission Control's Timeline, the camera can start or stop video recording when the Timeline reaches the action.

      Class Members:
      Constructor
      method
      method initWithDuration
      - (instancetype _Nullable)initWithDuration:(double)duration
      Header:DJIRecordVideoAction.h
      Description:

      Initialize instance with video recording duration in seconds.

      Input Parameters:
      double durationTime in seconds.
      Return:
      instancetype _NullableAn instance of DJIRecordVideoAction
      method initWithStartRecordVideo
      - (instancetype _Nullable)initWithStartRecordVideo
      Header:DJIRecordVideoAction.h
      Description:

      Initialize instance for start video recording only.

      Return:
      instancetype _NullableAn instance of DJIRecordVideoAction
      method initWithStopRecordVideo
      - (instancetype _Nullable)initWithStopRecordVideo
      Header:DJIRecordVideoAction.h
      Description:

      Initialize instance for stop video recording only.

      Return:
      instancetype _NullableAn instance of DJIRecordVideoAction
      const DJIRecordVideoActionErrorDomain
      extern const NSErrorDomain DJIRecordVideoActionErrorDomain
      Header:DJIRecordVideoAction.h
      Description:

      The error domain associated with errors specific to DJIRecordVideoAction.

      enum DJIRecordVideoActionError
      typedef NS_ENUM(NSInteger, DJIRecordVideoActionError)
      Header:DJIRecordVideoAction.h
      Description:

      Error codes for DJIRecordVideoActionErrorDomain.

      Enum Members:
      DJIRecordVideoActionErrorUnknownDefault error.
      DJIRecordVideoActionErrorInvalidDurationDuration value is invalid (less than 0).