DJI Mobile SDK Documentation

      class PlaybackState

      static class PlaybackState
      Package:dji.sdk.camera
      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:
      Playback Mode
      method
      method getPlaybackMode
      PlaybackMode getPlaybackMode()
      Package:dji.sdk.camera
      Description:

      The current mode of the Playback manager.

      Return:
      PlaybackModePlayback manager current mode.
      File Statistics
      method
      method getNumberOfMediaFiles
      int getNumberOfMediaFiles()
      Package:dji.sdk.camera
      Description:

      The total number of media files on the SD card, including photos and videos.

      Return:
      intNumber of media files.
      method getNumberOfThumbnails
      int getNumberOfThumbnails()
      Package:dji.sdk.camera
      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:
      intNumber of thumbnails.
      method getPhotoCount
      int getPhotoCount()
      Package:dji.sdk.camera
      Description:

      The total number of photos on the SD card.

      Return:
      intNumber of photos.
      method getVideoCount
      int getVideoCount()
      Package:dji.sdk.camera
      Description:

      The total number of videos on the SD card.

      Return:
      intNumber of videos.
      File Type
      method
      method getFileType
      FileType getFileType()
      Package:dji.sdk.camera
      Description:

      The type of the current file. The CameraMediaFileType includes types of JPEG, DNG and Video.
      The value of this property is valid when the playbackMode is SINGLE_PHOTO_PREVIEW, SINGLE_VIDEO_PLAYBACK_START .

      Return:
      FileTypeMedia file type.
      Video
      method
      method getVideoDuration
      int getVideoDuration()
      Package:dji.sdk.camera
      Description:

      The duration in second of the playing video. The value of the property is valid only when PlaybackMode is SINGLE_VIDEO_PLAYBACK_START .

      Return:
      intDuration of video.
      method getVideoPlayProgress
      int getVideoPlayProgress()
      Package:dji.sdk.camera
      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:
      intPercentage progress of view playback.
      method getVideoPlayPosition
      int getVideoPlayPosition()
      Package:dji.sdk.camera
      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:
      intCurrent play position of video.
      Photo
      method
      method getPhotoWidth
      int getPhotoWidth()
      Package:dji.sdk.camera
      Description:

      The width of the photo.

      Return:
      intWidth of photo.
      method getPhotoHeight
      int getPhotoHeight()
      Package:dji.sdk.camera
      Description:

      The dimension of the previewing photo. The value of the property is valid only when PlaybackMode is SINGLE_PHOTO_PREVIEW and getFileType is JPEG.

      Return:
      intHeight of photo.
      method getCurrentSelectedFileIndex
      int getCurrentSelectedFileIndex()
      Package:dji.sdk.camera
      Description:

      The index of the current selected file.

      Return:
      intIndex of selected file.
      method getSelectedFileCount
      int getSelectedFileCount()
      Package:dji.sdk.camera
      Description:

      The total number of the selected files. The value is valid while PlaybackMode is in DJICameraPlaybackModeMultipleFilesEdit.

      Return:
      intNumber of selected files.
      method areAllFilesInPageSelected
      boolean areAllFilesInPageSelected()
      Package:dji.sdk.camera
      Description:

      true if all the files on the current page are selected.

      Return:
      booleanResponse of all files being selected on page.
      method isSelectedFileValid
      boolean isSelectedFileValid()
      Package:dji.sdk.camera
      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:
      booleanIf file being previewed is a valid photo or video file.
      method getPlaybackDeletionState
      PlaybackDeletionState getPlaybackDeletionState()
      Package:dji.sdk.camera
      Description:

      The current status of a file when the user tries to delete it.

      Return:
      PlaybackDeletionStateStatus of file being deleted.
      Download
      method
      method isFileDownloaded
      boolean isFileDownloaded()
      Package:dji.sdk.camera
      Description:

      true if the previewing file has been downloaded. The value of the property is valid only when PlaybackMode is SINGLE_PHOTO_PREVIEW.

      Return:
      booleantrue if the previewing file has been downloaded.
      Convenience
      method
      method toString
      @Override
      String toString()
      Package:dji.sdk.camera
      Description:

      Gets a string containing information about the playback state. @return A String of playback state.

      Return:
      StringA String instance of playback state.
      Callback
      class
      File Format
      enum
      enum FileType
      enum FileType
      Package:dji.common.camera
      Description:

      Showing media file types when the camera is in Playback mode.

      Enum Members:
      JPEGThe JPEG media file type.
      DNGThe DNG media file type.
      VIDEOThe Video media file type.
      UNKNOWNThe playback file format is unknown.
      Class Members:
      Playback Mode
      enum
      enum PlaybackMode
      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:
      Playback Deletion
      enum
      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: