class PlaybackState
static class PlaybackState
Description:
This class provides the current state of the Playback manager, which includes the numbers of thumbnail and media files, video duration, video play progress, and file download state.
Class Members:
method getPlaybackMode
PlaybackMode getPlaybackMode ()
Description:
The current mode of the Playback manager.
Return:
method getNumberOfThumbnails
int getNumberOfThumbnails ()
Description:
The total number of thumbnails for both the photos and videos being viewed on the page. The value of the property is valid when the PlaybackMode
is MULTIPLE_MEDIA_FILE_PREVIEW
.
Return:
method getPhotoCount
Description:
The total number of photos on the SD card.
Return:
method getVideoCount
Description:
The total number of videos on the SD card.
Return:
method getVideoPlayProgress
int getVideoPlayProgress ()
Description:
The progress, in percentage, of the playing video. The valid range is [0, 100]. The value the property is valid only when PlaybackMode
is SINGLE_VIDEO_PLAYBACK_START
.
Return:
int Percentage progress of view playback.
method getVideoPlayPosition
int getVideoPlayPosition ()
Description:
The played duration, in seconds, of the playing video. The value the property is valid only when PlaybackMode
is SINGLE_VIDEO_PLAYBACK_START
.
Return:
int Current play position of video.
method getPhotoWidth
Description:
The width of the photo.
Return:
method getCurrentSelectedFileIndex
int getCurrentSelectedFileIndex ()
Description:
The index of the current selected file.
Return:
int Index of selected file.
method getSelectedFileCount
int getSelectedFileCount ()
Description:
The total number of the selected files. The value is valid while PlaybackMode
is in DJICameraPlaybackModeMultipleFilesEdit
.
Return:
int Number of selected files.
method areAllFilesInPageSelected
boolean areAllFilesInPageSelected ()
Description:
true
if all the files on the current page are selected.
Return:
boolean Response of all files being selected on page.
method isSelectedFileValid
boolean isSelectedFileValid ()
Description:
true
if the previewing file is a valid photo or video. The value of the property is valid only when PlaybackMode
is SINGLE_PHOTO_PREVIEW
.
Return:
boolean If file being previewed is a valid photo or video file.
method getPlaybackDeletionState
PlaybackDeletionState getPlaybackDeletionState ()
Description:
The current status of a file when the user tries to delete it.
Return:
method isFileDownloaded
boolean isFileDownloaded ()
Description:
true
if the previewing file has been downloaded. The value of the property is valid only when PlaybackMode
is SINGLE_PHOTO_PREVIEW
.
Return:
boolean true
if the previewing file has been downloaded.
method toString
@Override String toString ()
Description:
Gets a string containing information about the playback state. @return A String of playback state.
Return:
String A String instance of playback state.
enum PlaybackMode
Package: dji.common.camera
Description:
A playback mode represents a task that the Playback manager is executing.
Enum Members:
SINGLE_PHOTO_PREVIEWSingle file preview mode. SINGLE_VIDEO_PLAYBACK_STARTSingle video playback start. SINGLE_VIDEO_PLAYBACK_PAUSEDSingle video playback pause. MULTIPLE_FILES_EDITMultiple file edit. MULTIPLE_MEDIA_FILE_PREVIEWMultiple media file preview. MEDIA_FILE_DOWNLOADDownload media files. UNKNOWNUnknown playback mode.
Class Members:
enum PlaybackDeletionState
enum PlaybackDeletionState
Package: dji.common.camera
Description:
The file deletion status when deleting a file as the camera is in playback mode.
Enum Members:
NONECamera is not deleting files. FAILEDMedia file delete failed. DELETINGMedia file is deleting. SUCCESSFULDelete Media file successfully. UNKNOWNMedia file unknown delete status.
Class Members: