class MediaFile implements Serializable |
Package: | dji.v5.manager.datacenter.media |
Media file data class. Supported since MSDK 5.0.0
int getFileIndex() |
Package: | dji.v5.manager.datacenter.media |
Get index of media file. Supported since MSDK 5.0.0
int | Return index of media file. |
MediaFileType getFileType() |
Package: | dji.v5.manager.datacenter.media |
Get type of media file. Supported since MSDK 5.0.0
MediaFileType | Return type of media file. |
String getFileName() |
Package: | dji.v5.manager.datacenter.media |
Get name of media file.
Notice:
Zenmuse P1 cannot obtain the extension name of the customized file. This is a legacy issue in the camera protocol design.
Supported since MSDK 5.0.0
String | Return name of media file. |
long getFileSize() |
Package: | dji.v5.manager.datacenter.media |
Get size of media file. Unit: byte. Supported since MSDK 5.0.0
long | Return size of media file. |
DateTime getDate() |
Package: | dji.v5.manager.datacenter.media |
Get the generation time of media file. Supported since MSDK 5.0.0
DateTime | Return the generation time of media file. |
Long getDuration() |
Package: | dji.v5.manager.datacenter.media |
Get the duration of video play. Unit: second. Supported since MSDK 5.0.0
Long | Return the duration of video play. |
VideoFrameRate getFrameRate() |
Package: | dji.v5.manager.datacenter.media |
Get video framerate. Supported since MSDK 5.0.0
VideoFrameRate | Return video framerate. |
VideoResolution getResolution() |
Package: | dji.v5.manager.datacenter.media |
Get video resolution. Supported since MSDK 5.0.0
VideoResolution | Return video resolution. |
PhotoRatio getPhotoRatio() |
Package: | dji.v5.manager.datacenter.media |
Get photo ratio. Supported since MSDK 5.0.0
PhotoRatio | Return photo ratio. |
Bitmap getThumbNail() |
Package: | dji.v5.manager.datacenter.media |
Get media file thumbnail. Please call pullThumbnailFromCamera
to pull the thumbnail from the camera first, and save to the memory. Supported since MSDK 5.0.0
Bitmap | Return media file thumbnail. |
void pullThumbnailFromCamera(CommonCallbacks.CompletionCallbackWithParam<Bitmap> callback) |
Package: | dji.v5.manager.datacenter.media |
Pull the thumbnail of media file from the camera. The pulled thumbnail will be returned to the developer in the callback method and will be saved to the memory at the same time. You can call getThumbNail
to get thumbnail from the memory. Supported since MSDK 5.0.0
CommonCallbacks.CompletionCallbackWithParam<Bitmap> callback | Return the execution result of callback. |
void pullPreviewFromCamera(@NonNull CommonCallbacks.CompletionCallbackWithParam<Bitmap> callback) |
Package: | dji.v5.manager.datacenter.media |
Pull the preview of media file from the camera. The pulled preview will be returned to the developer in the callback method. MSDK will no save the preview in memory and you can save it as needed. Supported since MSDK 5.0.0
@NonNull CommonCallbacks.CompletionCallbackWithParam<Bitmap> callback | Return the execution result of callback. |
void stopPullPreviewFromCamera(@NonNull CommonCallbacks.CompletionCallback callback) |
Package: | dji.v5.manager.datacenter.media |
Stop pulling the preview of media file. Supported since MSDK 5.0.0
@NonNull CommonCallbacks.CompletionCallback callback | Return the execution result of callback. |
void pullOriginalMediaFileFromCamera(long offset, @NonNull MediaFileDownloadListener callback) |
Package: | dji.v5.manager.datacenter.media |
Pull the origin media file from the camera. The pulled media file will be returned to the developer in the callback method. MSDK will no save the origin media file in memory and you can save it as needed. Supported since MSDK 5.0.0
long offset | Offset value of media file download. Unit:byte. |
@NonNull MediaFileDownloadListener callback | Return the execution result of callback. |
void stopPullOriginalMediaFileFromCamera(CommonCallbacks.CompletionCallback callback) |
Package: | dji.v5.manager.datacenter.media |
Stop pulling origin media file. Supported since MSDK 5.0.0
CommonCallbacks.CompletionCallback callback | Return the execution result of callback. |
void pullXMPFileDataFromCamera(CommonCallbacks.CompletionCallbackWithParam<String> callback) |
Package: | dji.v5.manager.datacenter.media |
Pull XMP information in photo file from the camera.
Notice:
Currently only supports Zenmuse H20 series cameras, Zenmuse L1 camera, and Zenmuse P1 camera.
Supported since MSDK 5.7.0
CommonCallbacks.CompletionCallbackWithParam<String> callback | Return the execution result of callback. |
String getXMPFileData() |
Package: | dji.v5.manager.datacenter.media |
Synchronously obtain XMP information in photo file. If the return is empty, please call pullXMPFileDataFromCamera
to pull XMP information from the camera.
Notice:
Currently only supports Zenmuse H20 series cameras, Zenmuse L1 camera, and Zenmuse P1 camera. Supported since MSDK 5.7.0
String | Return XMP information in photo file. |
void pullXMPCustomInfoFromCamera(CommonCallbacks.CompletionCallbackWithParam<String> callback) |
Package: | dji.v5.manager.datacenter.media |
Pull XMP custom information in photo file from the camera.
Notice:
Currently only supports Zenmuse H20 series cameras, Zenmuse L1 camera, and Zenmuse P1 camera.
Supported since MSDK 5.7.0
CommonCallbacks.CompletionCallbackWithParam<String> callback | Return the execution result of callback. |
String getXMPCustomInfo() |
Package: | dji.v5.manager.datacenter.media |
Synchronously obtain XMP custom information in photo file. If the return is empty, please call pullXMPFileDataFromCamera
to pull XMP information from the camera.
Notice:
Currently only supports Zenmuse H20 series cameras, Zenmuse L1 camera, and Zenmuse P1 camera.
Supported since MSDK 5.7.0
String | Return XMP custom information in photo file. |