Skip to main content

This API is used to manage media files in the camera.

class  AutelAlbum

method getMedia

void getMedia(AlbumType albumType, int start, int count, CallbackWithOneParam<List<MediaInfo>> callback);

Description: Obtains media files from the camera.

Input parameter: albumType (media type), start (first index of the media list), count (number of the media files on the media list, and the maximum number is 30), and callback (callback when obtaining media data from the camera server).

Output parameter: none.

Relevant parameter none.

method getMedia

void getMedia(int start, int count, CallbackWithOneParam<List<MediaInfo>> callback);

Description: Obtains media files from the camera.

Input parameter: start (first index of the media list), count (number of the media files on the media list, and the maximum number is 30), and callback (callback when obtaining media data from the camera server).

Output parameter: none.

Relevant parameter none.

method deleteMedia

void deleteMedia(List<MediaInfo> deleteMediaList, CallbackWithOneParam<List<MediaInfo>> callback);


Description: Deletes a specific media list.

Input parameter: deleteMediaList (the specific media list to be deleted by the camera, and the maximum number of the files on the list is 30). and callback (callback when deleting specific media data from the camera).

Output parameter: none.

Relevant parameter none.

method deleteMedia

void deleteMedia(MediaInfo deleteMedia, CallbackWithOneParam<List<MediaInfo>> callback);


Description: Deletes a specific media list.

Input parameter: deleteMedia (specific media information to be deleted from the camera), and callback (callback when deleting specific media data from the camera).

Output parameter: none.

Relevant parameter none.

method getVideoResolutionFromHttpHeader

void getVideoResolutionFromHttpHeader(MediaInfo mediaInfo, CallbackWithOneParam<VideoResolutionAndFps> callback);

Description: Obtains the video resolution from the HTTP header.

Input parameter: mediaInfo (media information used for finding the resolution), callback (callback when obtaining the video resolution from the camera).

Output parameter: none.

Relevant parameter none.

method getVideoResolutionFromLocalFile

VideoResolutionAndFps getVideoResolutionFromLocalFile(File file);

Description: Returns the video resolution and relevant frame rate (FPS) from the local file. If the file does not exist or is not a file generated by a drone with a camera, the resolution cannot be obtained.

Input parameter: mediaInfo (media information used for finding the resolution), callback (callback when obtaining the video resolution from the camera).

Output parameter: file (the video file that contains the resolution).

Relevant parameter none.

method getParameterRangeManager

AlbumParameterRangeManager getParameterRangeManager();

Description: Obtains ParameterRangeManager.

Input parameter: none.

Output parameter: ParameterRangeManager.

Relevant parameter none.

method getFMCMedia

void getFMCMedia(AlbumType albumType,int start, int count, CallbackWithOneParam<List<MediaInfo>> callback);

Description: Obtains the media data from the camera server.

Input parameter: albumType (media type), start (the first index of the media list), count (number of the files on the media list, and the maximum number is 50), and callback (callback when obtaining media data from the camera server).

Output parameter: none.

Relevant parameter none.

method getFMCMedia

void getFMCMedia(int start, int count, CallbackWithOneParam<List<MediaInfo>> callback);

Description: Obtains the media data from the camera server.

Input parameter: start (first index of the media list), count (number of the files on the media list, and the maximum number is 50), and callback (callback when obtaining media data from the camera server).

Output parameter: none.

Relevant parameter none.

method deleteFMCMedia

void deleteFMCMedia(List<MediaInfo> deleteMediaList, CallbackWithOneParam<List<MediaInfo>> callback);

Description: Returns the specific media list deleted by the camera server.

Input parameter: deleteMediaList (specific media list deleted by the camera server and the maximum number of files on the list is 50), and callback (callback when deleting specific media data from the camera server).

Output parameter: none.

Relevant parameter none.

method getFMCVideoResolutionFromHttpHeader

void getFMCVideoResolutionFromHttpHeader(MediaInfo mediaInfo, CallbackWithOneParam<VideoResolutionAndFps> callback);

Description: Returns the video resolution included in the HTTP header.

Input parameter: mediaInfo (media information used for finding the resolution), callback (callback when obtaining the video resolution from the camera server).

Output parameter: none.

Relevant parameter none.

method downloadPicture

void downloadPicture(String sourcePath,String localPath);

Description: Downloads pictures. Only V2 aircrafts are supported.

Input parameter: sourcePath (path of the pictures to be downloaded), localPath (local folder for storing pictures)

Output parameter: none.

Relevant parameter none.

method downloadPicture

void downloadPicture(String sourcePath,String localPath,int mode);

Description: Downloads pictures. Only V2 aircrafts are supported.

Input parameter: localPath (local folder for storing pictures), mode (0-normal download mode, 1-full speed mode) NOTE: The full speed mode only can be used after the aircraft lands successfully.

Output parameter: none.

Relevant parameter none.

method toRx

RxAutelAlbum toRx();

Description: Converts to the ReactiveX API.

Input parameter: none.

Output parameter: ReactiveX API.

Relevant parameter none.