Media Management
Catalog
- Function
RegisterMediaFilesObserver
CreateMediaFilesReader
MediaManager
RegisterMediaFilesObserver
SetDroneNestUploadCloud
SetDroneNestAutoDelete
Function
Function: Media file update notification callback | product:all |
using MediaFilesObserver = std::function<ErrorCode(const MediaFile &)>;
Function: Media file management handle | product:all |
static MediaManager *Instance();
Function: Get media file reading interface handle | product:all |
std::shared_ptr<MediaFilesReader> CreateMediaFilesReader();
Returns an instance of MediaFilesReader
Function: Register media file notification processing callback | product:all |
ErrorCode RegisterMediaFilesObserver(MediaFilesObserver observer);
observer:Media file update notification callback
Function: Set media files for cloud upload. Note: Media files from flight waylines are uploaded to the cloud by default. If set to not upload, and edge computing goes offline for over 30s, the default method will be restored, restarting to upload media files to the cloud. | product:all |
ErrorCode SetDroneNestUploadCloud(bool enable);
enable:Enable/disable cloud upload
Return
Execution result
Function: Set whether to delete local media files at the dock after uploading is complete. Note: When edge computing requires media file retrieval, it should be set not to delete. | product:all |
ErrorCode SetDroneNestAutoDelete(bool enable);
enable:Delete after upload completion or not
Return
Execution result