DJI Mobile SDK Documentation

      class DJICameraPlaybackState

      @interface DJICameraPlaybackState : NSObject
      Header:DJICameraPlaybackState.h
      Inherits From:NSObject
      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
      property
      property playbackMode
      @property(nonatomic, readonly) DJICameraPlaybackMode playbackMode
      Header:DJICameraPlaybackState.h
      Description:

      The current mode of the Playback manager.

      See Also:

      DJICameraPlaybackMode

      File Statistics
      property
      property numberOfMediaFiles
      @property(nonatomic, readonly) int numberOfMediaFiles
      Header:DJICameraPlaybackState.h
      Description:

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

      property numberOfThumbnails
      @property(nonatomic, readonly) int numberOfThumbnails
      Header:DJICameraPlaybackState.h
      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 DJICameraPlaybackMode is DJICameraPlaybackModeMultipleFilesPreview or DJICameraPlaybackModeMultipleFilesEdit.

      property
      property photoCount
      @property(nonatomic, readonly) int photoCount
      Header:DJICameraPlaybackState.h
      Description:

      The total number of photos on the SD card.

      property
      property videoCount
      @property(nonatomic, readonly) int videoCount
      Header:DJICameraPlaybackState.h
      Description:

      The total number of videos on the SD card.

      File Type
      property
      property fileType
      @property(nonatomic, readonly) DJICameraPlaybackFileType fileType
      Header:DJICameraPlaybackState.h
      Description:

      The type of the current file. The DJICameraPlaybackFileFormat includes types of JPEG, DNG and Video.
      The value of this property is valid when the playbackMode is DJICameraPlaybackModeSingleFilePreview, DJICameraPlaybackModeSingleVideoPlaybackStart or DJICameraPlaybackModeSingleVideoPlaybackPause.

      See Also:

      DJICameraPlaybackFileType

      Video
      property
      property videoDuration
      @property(nonatomic, readonly) int videoDuration
      Header:DJICameraPlaybackState.h
      Description:

      The duration in second of the playing video. The value of the property is valid only when DJICameraPlaybackMode is DJICameraPlaybackModeSingleVideoPlaybackStart or DJICameraPlaybackModeSingleVideoPlaybackPause.

      property videoPlayProgress
      @property(nonatomic, readonly) int videoPlayProgress
      Header:DJICameraPlaybackState.h
      Description:

      The progress, in percentage, of the playing video. The valid range is [0, 100]. The value the property is valid only when DJICameraPlaybackMode is DJICameraPlaybackModeSingleVideoPlaybackStart or DJICameraPlaybackModeSingleVideoPlaybackPause.

      property videoPlayPosition
      @property(nonatomic, readonly) int videoPlayPosition
      Header:DJICameraPlaybackState.h
      Description:

      The played duration, in seconds, of the playing video. The value the property is valid only when DJICameraPlaybackMode is DJICameraPlaybackModeSingleVideoPlaybackStart or DJICameraPlaybackModeSingleVideoPlaybackPause.

      Photo
      property
      property photoSize
      @property(nonatomic, readonly) CGSize photoSize
      Header:DJICameraPlaybackState.h
      Description:

      The dimension of the previewing photo. The value of the property is valid only when DJICameraPlaybackMode is DJICameraPlaybackModeSingleFilePreview and fileType is DJICameraPlaybackFileTypeJPEG.

      Selection
      property
      property currentSelectedFileIndex
      @property(nonatomic, readonly) int currentSelectedFileIndex
      Header:DJICameraPlaybackState.h
      Description:

      The index of the current selected file.

      property selectedFileCount
      @property(nonatomic, readonly) int selectedFileCount
      Header:DJICameraPlaybackState.h
      Description:

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

      property isAllFilesInPageSelected
      @property(nonatomic, readonly) BOOL isAllFilesInPageSelected
      Header:DJICameraPlaybackState.h
      Description:

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

      property isSelectedFileValid
      @property(nonatomic, readonly) BOOL isSelectedFileValid
      Header:DJICameraPlaybackState.h
      Description:

      YES if the previewing file is a valid photo or video. The value of the property is valid only when DJICameraPlaybackMode is DJICameraPlaybackModeSingleFilePreview.

      Delete
      property
      property deletionState
      @property(nonatomic, readonly) DJICameraPlaybackDeletionState deletionState
      Header:DJICameraPlaybackState.h
      Description:

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

      See Also:

      DJICameraPlaybackDeletionState

      Download
      property
      property isFileDownloaded
      @property(nonatomic, readonly) BOOL isFileDownloaded
      Header:DJICameraPlaybackState.h
      Description:

      YES if the previewing file has been downloaded. The value of the property is valid only when DJICameraPlaybackMode is DJICameraPlaybackModeSingleFilePreview.

      enum DJICameraPlaybackFileType
      typedef NS_ENUM (uint8_t, DJICameraPlaybackFileType)
      Header:DJICameraPlaybackState.h
      Description:

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

      Enum Members:
      DJICameraPlaybackFileTypeJPEGThe JPEG media file type.
      DJICameraPlaybackFileTypeRAWDNGThe DNG media file type.
      DJICameraPlaybackFileTypeVIDEOThe Video media file type.
      DJICameraPlaybackFileTypeUnknownThe playback file format is unknown.
      Playback Mode
      enum
      enum DJICameraPlaybackMode
      typedef NS_ENUM (uint8_t, DJICameraPlaybackMode)
      Header:DJICameraPlaybackState.h
      Description:

      A playback mode represents a task that the Playback manager is executing.

      Enum Members:
      DJICameraPlaybackModeSingleFilePreviewSingle file preview mode.
      DJICameraPlaybackModeSingleVideoPlaybackStartSingle video playback start.
      DJICameraPlaybackModeSingleVideoPlaybackPauseSingle video playback pause.
      DJICameraPlaybackModeMultipleFilesEditMultiple file edit.
      DJICameraPlaybackModeMultipleFilesPreviewMultiple media file preview.
      DJICameraPlaybackModeDownloadDownload media files.
      DJICameraPlaybackModeUnknownUnknown playback mode.
      Playback Deletion
      enum
      enum DJICameraPlaybackDeletionState
      typedef NS_ENUM (uint8_t, DJICameraPlaybackDeletionState)
      Header:DJICameraPlaybackState.h
      Description:

      The file deletion status when deleting a file as the camera is in playback mode.

      Enum Members:
      DJICameraPlaybackDeletionStateNoneCamera is not deleting files.
      DJICameraPlaybackDeletionStateFailedMedia file delete failed.
      DJICameraPlaybackDeletionStateDeletingMedia file is deleting.
      DJICameraPlaybackDeletionStateSuccessfulDelete Media file successfully.
      DJICameraPlaybackDeletionStateUnknownMedia file unknown delete status.