Skip to main content

AUTELMedia

class AUTELMedia

describe:Describe the basic attributes of media files, such as file name, path, size, media type, etc

property fileName

@property (nonatomic, readonly) NSString *fileName;

describe:Media file name. Read only


property filePath

@property (nonatomic, readonly) NSString *filePath;

describe:Returns the file path of the media file in SD card. Read only


property timeCreated

@property (nonatomic, readonly) NSString *timeCreated;

describe:Returns the time when the media file was created as a string in the format "yyyy-MM-dd HH:mm:ss".


property mediaIndex

@property (nonatomic, readonly) NSUInteger mediaIndex;

describe:Returns the index of the media file. The latest taken file will be lined in the front.


property fileSizeInBytes

@property (nonatomic, readonly) long long fileSizeInBytes;

describe:Returns the size, in bytes, of the media file.


property mediaType

@property (nonatomic, readonly) AUTELMediaType mediaType;

describe:Returns the type of media file. AUTELMediaType


property uniqueID

@property (nonatomic, readonly) NSString *uniqueID;

describe:Returns the unique identifier of media file.


property videoDuration

@property (nonatomic, assign) NSUInteger videoDuration;

describe:Video duration


property videoResolution

@property (nonatomic, readonly) AUTELCameraVideoResolution videoResolution;

describe:Returns the resolution of video file. AUTELCameraVideoResolution.

The picture file has no resolution. The value is AUTELCameraVideoResolutionUnknown, and the initial value of the video file is AUTELCameraVideoResolutionUnknown. This value is meaningful only after the thumbnail of the file is requested.


property videoFrameRate

@property (nonatomic, readonly) AUTELCameraVideoFrameRate videoFrameRate;

describe:Returns the video framerate of video file. AUTELCameraVideoFrameRate.


property videoCompressionStandard

@property (nonatomic, readonly) AUTELCameraVideoFileCompressionStandard videoCompressionStandard;

describe:Returns the compreassion standar of video file. AUTELCameraVideoFileCompressionStandard.


property panoramaType

@property (nonatomic, assign) AUTELCameraPanoramaType panoramaType;

describe:Returns the Types of panoramic photos. AUTELCameraPanoramaType


enum AUTELMediaType

describe:Media types.

typedef NS_ENUM(NSInteger, AUTELMediaType) {
/**
* Unknown.
*/
AUTELMediaTypeUnknown,
/**
* JPEG.
*/
AUTELMediaTypeJPEG,
/**
* RAW.
*/
AUTELMediaTypeRAW,
/**
* MP4.
*/
AUTELMediaTypeMP4,
/**
* MOV.
*/
AUTELMediaTypeMOV,
/**
* M4V.
*/
AUTELMediaTypeM4V
};

enum AUTELCameraVideoResolution

describe:Define the resolution of videos taken by the camera.

typedef NS_ENUM (uint8_t, AUTELCameraVideoResolution){
/**
* @brief The camera's video resolution is 640x512.
*
*/
AUTELCameraVideoResolution640x512 = 0,
/**
* @brief The camera's video resolution is 1280x720.
*
*/
AUTELCameraVideoResolution1280x720,

/**
* @brief The camera's video resolution is 1920x1080.
*
*/
AUTELCameraVideoResolution1920x1080,

/**
* @brief The camera's video resolution is 2704x1520.
*
*/
AUTELCameraVideoResolution2704x1520,

/**
* @brief The camera's video resolution is 2720x1528.
*
*/
AUTELCameraVideoResolution2720x1528,

/**
* @brief The camera's video resolution is 2720x1530.
*
*/
AUTELCameraVideoResolution2720x1530,

/**
* @brief The camera's video resolution is 3840x2160.
*
*/
AUTELCameraVideoResolution3840x2160,

/**
* @brief The camera's video resolution is 4096x2160.
*
*/
AUTELCameraVideoResolution4096x2160,

/**
* @brief The camera's video resolution is 4800x2700.
*
*/
AUTELCameraVideoResolution4800x2700,

/**
* @brief The camera's video resolution is 5472x3076.
*
*/
AUTELCameraVideoResolution5472x3076,

/**
* @brief The camera's video resolution is 5760x3240.
*
*/
AUTELCameraVideoResolution5760x3240,

/**
* @brief The camera's video resolution is 7680x4320.
*
*/
AUTELCameraVideoResolution7680x4320,

/**
* @brief The camera's video resolution is unknown.
*
*/
AUTELCameraVideoResolutionUnknown = 0xFF,
};

enum AUTELCameraVideoFrameRate

describe:Define the frame rate of videos taken by the camera.

typedef NS_ENUM (uint8_t, AUTELCameraVideoFrameRate){
/**
* @brief The camera's video frame rate is 9fps (frames per second).
*
*/
AUTELCameraVideoFrameRate9fps = 0,
/**
* @brief The camera's video frame rate is 24fps (frames per second).
*
*/
AUTELCameraVideoFrameRate24fps,

/**
* @brief The camera's video frame rate is 25fps (frames per second).
*
*/
AUTELCameraVideoFrameRate25fps,

/**
* @brief The camera's video frame rate is 30fps (frames per second).
*
*/
AUTELCameraVideoFrameRate30fps,

/**
* @brief The camera's video frame rate is 48fps (frames per second).
*
*/
AUTELCameraVideoFrameRate48fps,

/**
* @brief The camera's video frame rate is 50fps (frames per second).
*
*/
AUTELCameraVideoFrameRate50fps,

/**
* @brief The camera's video frame rate is 60fps (frames per second).
*
*/
AUTELCameraVideoFrameRate60fps,

/**
* @brief The camera's video frame rate is 120fps (frames per second).
* The frame rate can only be used when Slow Motion enabled.
*
*/
AUTELCameraVideoFrameRate120fps,

/**
* @brief The camera's video frame rate is 240fps (frames per second).
*
*/
AUTELCameraVideoFrameRate240fps,

/**
* @brief The camera's video frame rate is unknown.
*
*/
AUTELCameraVideoFrameRateUnknown = 0xFF,
}

enum AUTELCameraVideoFileCompressionStandard

describe:Video file compression standard

typedef NS_ENUM (uint8_t, AUTELCameraVideoFileCompressionStandard) {
/**
* @brief H264 Video
*/
AUTELCameraVideoFileCompressionStandardH264 = 0,

/**
* @brief H265 Video
*/
AUTELCameraVideoFileCompressionStandardH265,

/**
* @brief Unknown
*/
AUTELCameraVideoFileCompressionStandardUnknown = 0xFF,
};

enum AUTELCameraPanoramaType

describe:Panorama Photo Type

typedef NS_ENUM(NSInteger, AUTELCameraPanoramaType) {
///Non panoramic photos
AUTELCameraPanoramaTypeNo = 0,
///Landscape shooting
AUTELCameraPanoramaTypeLandscape,
///Portrait shooting
AUTELCameraPanoramaTypePortrait,
///wide-angle
AUTELCameraPanoramaTypeWideAngle,
///spherical
AUTELCameraPanoramaTypeSpherical,
};