DJICameraPlaybackState

@interface DJICameraPlaybackState : NSObject

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.

  • The current mode of the Playback manager.

    Declaration

    Objective-C

    @property (readonly, nonatomic) DJICameraPlaybackMode playbackMode;
  • The type of the current file. The value of this property is valid only when the playbackMode is DJICameraPlaybackModeSingleFilePreview, DJICameraPlaybackModeSingleVideoPlaybackStart, or DJICameraPlaybackModeSingleVideoPlaybackPause.

    Declaration

    Objective-C

    @property (readonly, nonatomic) DJICameraPlaybackFileFormat mediaFileType;
  • 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 DJICameraPlaybackModeMultipleFilesPreview or DJICameraPlaybackModeMultipleFilesEdit.

    Declaration

    Objective-C

    @property (readonly, nonatomic) int numberOfThumbnails;
  • The total number of media files on the SD card, including photos and videos.

    Declaration

    Objective-C

    @property (readonly, nonatomic) int numberOfMediaFiles;
  • The index of the current selected file.

    Declaration

    Objective-C

    @property (readonly, nonatomic) int currentSelectedFileIndex;
  • The duration in second of the playing video. The value of the property is valid only when playbackMode is DJICameraPlaybackModeSingleVideoPlaybackStart or DJICameraPlaybackModeSingleVideoPlaybackPaused.

    Declaration

    Objective-C

    @property (readonly, nonatomic) int videoDuration;
  • The progress, in percentage, of the playing video. The valid range is [0, 100]. The value the property is valid only when playbackMode is DJICameraPlaybackModeSingleVideoPlaybackStart or DJICameraPlaybackModeSingleVideoPlaybackPaused.

    Declaration

    Objective-C

    @property (readonly, nonatomic) int videoPlayProgress;
  • The played duration, in seconds, of the playing video.

    The value the property is valid only when playbackMode is DJICameraPlaybackModeSingleVideoPlaybackStart or DJICameraPlaybackModeSingleVideoPlaybackPaused.

    Declaration

    Objective-C

    @property (readonly, nonatomic) int videoPlayPosition;
  • The total number of the selected files.

    The value is valid while playbackMode is in DJICameraPlaybackModeMultipleFilesEdit.

    Declaration

    Objective-C

    @property (readonly, nonatomic) int numberOfSelectedFiles;
  • The total number of photos on the SD card.

    Declaration

    Objective-C

    @property (readonly, nonatomic) int numberOfPhotos;
  • The total number of videos on the SD card.

    Declaration

    Objective-C

    @property (readonly, nonatomic) int numberOfVideos;
  • The dimension of the previewing photo. The value of the property is valid only when playbackMode is DJICameraPlaybackModeSingleFilePreview and mediaFileType is DJICameraPlaybackFileFormatJPEG.

    Declaration

    Objective-C

    @property (readonly, nonatomic) CGSize photoSize;
  • The current status of a file when the user tries to delete it.

    Declaration

    Objective-C

    @property (readonly, nonatomic) DJICameraPlaybackDeletionStatus fileDeleteStatus;
  • YES if all the files on the current page are selected.

    Declaration

    Objective-C

    @property (readonly, nonatomic) BOOL isAllFilesInPageSelected;
  • YES if the previewing file is a valid photo or video. The value of the property is valid only when playbackMode is DJICameraPlaybackModeSingleFilePreview.

    Declaration

    Objective-C

    @property (readonly, nonatomic) BOOL isSelectedFileValid;
  • YES if the previewing file has been downloaded. The value of the property is valid only when playbackMode is DJICameraPlaybackModeSingleFilePreview.

    Declaration

    Objective-C

    @property (readonly, nonatomic) BOOL isFileDownloaded;