|
Declaration: | DJI.WindowsSDK |
MediaTaskManager provides methods for MediaTask
.
|
Declaration: | DJI.WindowsSDK |
This flag indicate which photo type of this media file. Only valid when file type is JPEG
, DNG
See MediaFile
.
|
Declaration: | DJI.WindowsSDK |
This flag indicate which video type of this media file. Only valid when file type is MOV
, MP4
See MediaFile
.
|
Declaration: | DJI.WindowsSDK |
This flag indicate whether this media file is tagged star/favorite/like. See MediaFile
.
|
Declaration: | DJI.WindowsSDK |
This flag indicate type of file transfer request. See MediaFileDownloadRequest
.
|
Declaration: | DJI.WindowsSDK |
Where the media file locate, some device has multiple storage location.
|
Declaration: | DJI.WindowsSDK |
Object for query stroage location.
MediaFileListLocation location | Enumerate for query stroage location. See MediaFileListLocation |
|
Declaration: | DJI.WindowsSDK |
The media task type. using in MediaTaskRequest
and MediaTaskResponse
FILE_DATA | In MediaTaskRequest indicate transfer MediaFileDownloadRequest first. In MediaTaskResponse indicate this response from MediaFileDownloadRequest . |
FILE_LIST | In MediaTaskRequest indicate transfer MediaFileListRequest first. In MediaTaskResponse indicate this response from MediaFileListRequest . |
UNKNOWN | This enumerate use for system error, should not use by developer. |
|
Declaration: | DJI.WindowsSDK |
The flag for control the effect to duplicate request waiting tasks when PushFront/PushBack and task finished
|
Declaration: | DJI.WindowsSDK |
The flag for control how to deal with this task, when DeferExecuteTask apply on it.
|
Declaration: | DJI.WindowsSDK |
The flag for control execute sequence. Final execute task will be decided by postion in waiting queue and priority. Manager will loop tasks from front to back to pick up the first highest priority tasks. If you want guarantee a task execute next, task should be pushfront with high priority.
|
Declaration: | DJI.WindowsSDK |
MediaFile represent a file storage in SD-Card or EMMC.
bool valid | This flag indicate whether the file is valid. |
bool isManualGroupFile | This flag indicate whether the file is grouped by SDK. If flag is ture, you can read sub files in subMediaFile |
int fileIndex | This indicates index of this file. |
MediaFileType fileType | This indicates type of this file. |
String fileName | This indicates name of this file. |
Int64 fileSize | This indicates size of this file. |
DateTime date | This indicates stroage date of this file. |
MediaFileStarTag starTag | This indicates whether this file tagged star/favorite/like. |
double duration | This indicates video duration of this file. |
CameraOrientation orientation | This indicates video orientation of this file. |
VideoFrameRate frameRate | This indicates video frame rate of this file. |
VideoResolution resolution | This indicates video resolution of this file. |
MediaVideoType videoType | This indicates video type of this file. |
MediaPhotoType photoType | This indicates photo type of this file. |
CameraPanoType panoType | This indicates panorama type of this file. |
int videoSpeedRatio | This indicates video speed ratio of this file. |
int panoCount | This indicates panorama include photo count of this file. |
int guid | This indicates video global id of this file. |
int fileGroupIndex | This indicates file group index of this file. File can be grouped by both camera and SDK. See bool isManualGroupFile |
int subIndex | This indicates sub index of this file. Sub index will use in panorama file. |
int segSubIndex | This indicates sub segment index of this file. Sub segment index will use for video cliped by storage system. Cause FAT32 system can only storage file less than 4GB, most 4K video will be separated by it. |
int timeLapseInterval | This indicates time lapse shoot interval unit of this file. Each unit represent 100ms. |
FileExifInfo EXIFInfo | This indicates Exchangeable image file format(EXIF) information of this file. See FileExifInfo . |
PhotoRatio photoRatio | This indicates photo ratio of this file. |
|
Declaration: | DJI.WindowsSDK |
Request for download file data. It can be used in MediaTaskRequest
int index | Download index of file, it can be obtained from media file. See MediaFile |
int count | Download count represent how many files should be download from index. Mostly it should be 1 indicate only download index file itself. See MediaFile |
Int64 offSet | Download offset represent download index file begin with which byte. Mostly it should be 0 indicate download from file begin. See MediaFile |
int dataSize | Download data size represent how many bytes the index file should be download from offset. Mostly it should be -1 indicate download to file end. See MediaFile |
MediaRequestType type | Download type of file. See MediaRequestType |
int subIndex | Download sub index of file, it can be obtained from media file. Mostly it should be 0 indicate this file not contains sub file. See MediaFile |
int segSubIndex | Download sub segment index of file, it can be obtained from media file. Mostly it should be 0 indicate this video not contains segment file. See MediaFile |
|
Declaration: | DJI.WindowsSDK |
Request for download file list. It can be used in MediaTaskRequest
int index | This indicates request files from which index. Only valid when bool isAllList set false. |
int count | This indicates request files count. Only valid when bool isAllList set false. |
MediaFileListLocation location | This indicates request files from which stroage. See MediaFileListLocation . |
MediaRequestType subType | This indicates request files from which stroage. See MediaFileListLocation . |
bool isAllList | This indicates request all files. Set ture will ignore int index and int count . |
|
Declaration: | DJI.WindowsSDK |
Response for download file list. See MediaFileListRequest
.
MediaFileListLocation location | This indicates where the files storage in. |
bool hasInvalidFile | This indicates whether the files missed when transfer from hardware to SDK. |
|
Declaration: | DJI.WindowsSDK |
Request for taging file star/favorite/like in camera.
MediaFileListLocation location | This indcates where the files locate. |
MediaFileStarTag starTag | This indcates whether the files tag on or off. |
|
Declaration: | DJI.WindowsSDK |
Request for taging file star/favorite/like in camera.
MediaFileListLocation location | This indcates where the files locate. |
bool isDeleteAll | This indcates delete all files on storage. |
|
Declaration: | DJI.WindowsSDK |
Response for taging file star/favorite/like or delete. See MediaStarTagRequest
or MediaDeletionRequest
bool allSucceeded | This indcates whether this action successed on every file. |
|
Declaration: | DJI.WindowsSDK |
Request object of task. Use it to construct MediaTask
MediaTaskType type | The flag control how to transfer request. See MediaTaskType |
MediaTaskDuplicate duplicateType | The flag control how to deal with requests with duplicate information. See MediaTaskDuplicate |
MediaTaskDefer deferType | The flag control how to apply defer action on this task. See MediaTaskDefer |
MediaTaskPriority priority | The flag control execute sequence when add task in manager waiting queue. See MediaTaskPriority |
|
Declaration: | DJI.WindowsSDK |
Response object of task execute event. All event decomposed from task response.
MediaTaskType type | The flag indicate which type of request invoke this response. See MediaTaskType |
MediaFileListRequest listReq | Response is invoked by this request. Only valid when type is FILE_LIST See MediaFileListRequest . |
MediaFileDownloadRequest dataReq | Response is invoked by this request. Only valid when type is FILE_DATA See MediaFileDownloadRequest . |
bool requestClear | Have all requests in this task already transfered. |
int listLeft | How many MediaFileListRequest left in this task. |
int dataLeft | How many MediaFileDownloadRequest left in this task. |
MediaFileList fileList | File result from MediaFileListRequest . Only valid when type is FILE_LIST See MediaFileList . |
Int64 bitSpeed | Speed result from MediaFileDownloadRequest . Only valid when type is FILE_DATA |
|
Declaration: | DJI.WindowsSDK |
Exchangeable image file format(EXIF) information. Use in MediaFile
.
bool focalLength35mmFormatEnabled | Flag indicates having valid int focalLength35mmFormat . |
bool lightSourceEnabled | Flag indicates having valid int lightSource . |
bool meteringModeEnabled | Flag indicates having valid int meteringMode . |
bool exposureCompensationEnabled | Flag indicates having valid String exposureCompensationText . |
bool isoEnabled | Flag indicates having valid int iso . |
bool exposureProgramEnabled | Flag indicates having valid int exposureProgram . |
bool fNumberEnabled | Flag indicates having valid String apertureText . |
bool exposureTimeEnabled | Flag indicates having valid String shutterSpeedText . |
int exposureProgram | Int value of exposure program. |
int iso | Int value of iso. |
int meteringMode | Int value of metering mode. |
int lightSource | Int value of light source. |
int focalLength35mmFormat | Int value of focal length 35mm format. |
String shutterSpeedText | Exposure time text with format like +3.5. |
String apertureText | F number text with format like +3.5. |
String exposureCompensationText | Exposure Compensation text with format like +3.5. |
|
Declaration: | DJI.WindowsSDK |
Construct a task manager with MediaTaskRequest
.
uint productId | Which product that manager should access. Mostly should be use 0. |
uint cameraIndex | Which camera that manager should access. If hardware only have one camera, here should be use 0. |
|
Declaration: | DJI.WindowsSDK |
Flag to control the waiting task queue. After executing task complete, manager will check this flag to decide should begin next task. Attention set this flag will not effect current executing task. If you want pause task completely(both queue and data transfer), You should set this flag "True" first and call "DeferEexecuteTask". See DeferExecuteTask
.
|
Declaration: | DJI.WindowsSDK |
ProductId passed by construct.
|
Declaration: | DJI.WindowsSDK |
CameraIndex passed by construct.
|
Declaration: | DJI.WindowsSDK |
Push a task to the front of the wait queue. This action will check task request parameter "duplicateType" to decide how to deal with the same infomation task. See MediaTaskRequest
.
MediaTask task | Task will action on. See MediaTask . |
|
Declaration: | DJI.WindowsSDK |
Push a task to the back of the wait queue. This action will check task request parameter "duplicateType" to decide how to deal with the same infomation task. See MediaTaskRequest
.
MediaTask task | Task will action on. See MediaTask |
|
Declaration: | DJI.WindowsSDK |
Discard or backward current executing task to wait queue. This action will check executing task request parameter "deferType" to decide how to deal with it.See MediaTaskRequest
. If deferType is "BACK_TO_QUEUE" , this action will postpone executing task event invoke. Otherwise deferType is "ABORT", this action will complete current task with error code "kErrorMediaTaskAbort".
|
Declaration: | DJI.WindowsSDK |
Try to synchronize a task with duplicate request infomation. See MediaTaskRequest
. If neither executing task nor waiting task have the duplicate request infomation, this action will return error code "kErrorMediaTaskSyncFailure". If this action successful attach to a eixst task, the parameter task's event will invoke simultaneously with eixst task.
MediaTask task | Task will compare to those tasks already pushed. See MediaTask . |
async Task<SDKError> | Action error code, 0 define as no error. |
|
Declaration: | DJI.WindowsSDK |
Cancel task with duplicate request infomation, only effect executing and waiting tasks once in manager.
MediaTask task | Task will compare to those tasks already pushed. See MediaTask . |
async | Action error code, 0 define as no error. |
|
Declaration: | DJI.WindowsSDK |
Cancel all task ever pushed in manager.
async | Action error code, 0 define as no error. |