DJIMediaManager
@interface DJIMediaManager : NSObject
The media manager is used to interact with the file system on the SD card. By using the media manager, the user can get the metadata for all the multimedia files, and has access to each individual multimedia file.
-
Delegate that receives media manager’s status update.
Declaration
Objective-C
@property (readwrite, nonatomic, nullable) id<DJIMediaManagerDelegate> delegate;
-
Fetch the media list from the remote album. Set the camera’s work mode to
DJICameraModeMediaDownload
before executing this method.Declaration
Objective-C
- (void)fetchMediaListWithCompletion: (void (^_Nonnull)(NSArray<DJIMedia *> *_Nullable, NSError *_Nullable))block;
Parameters
block
Remote execute result. Objects in mediaList are kind of class DJIMedia.
-
Delete media files from remote album. Set the camera’s work mode to
DJICameraModeMediaDownload
before executing this method. Deletion is not supported by the media file generated by a panorama mission.Declaration
Objective-C
- (void)deleteMedia:(NSArray<DJIMedia *> *_Nonnull)media withCompletion:(void (^_Nullable)(NSArray<DJIMedia *> *_Nonnull, NSError *_Nullable))block;
Parameters
media
Media files to be deleted.
block
The remote execution result. ‘deleteFailures’ will contain media that failed to delete.