The playback manager is used to interact with the playback system of the camera. By using the playback manager, the user can control the playback system.
Sets the camera's playback state callback. Called according to the camera's update timer.
Precondition: You must first define a Callback object to pass in as a parameter.
Post Condition: Every time the playback state changes, the Callback interface that was passed in as a parameter will call its onResult function. The onResult function takes in a DJICameraPlayBackState object, which provides playback information such as the number of photos currently selected, the video playback progress (if a video is being played), and much more.
The Callback object to set as the callback interface for when the playback state changes. <br> The Callback interface implements an onResult function, which takes in a DJICameraPlayBackState object from the aircraft. <br>
Precondition: The camera must enter Single File Preview Mode.
Special case: If it is the last image, it will go to the first image. @return DJICameraError Shows the possible error during the execution. If there is no error, it returns null.
Precondition: The camera must enter Single File Preview Mode.
Special case: If it is the first image, it will go to the last image. @return DJICameraError Shows the possible error during the execution. If there is no error, it returns null.
Starts video playback. The selected file must be a video file.
Precondition: The camera must enter Single Preview Mode.
Post condition: If the video finishes playing, it will stop and go back to the beginning of the file. @return DJICameraError Shows the possible error during the execution. If there is no error, it returns null.
Post condition: The file will stop and go back to the beginning of the file. @return DJICameraError Shows the possible error during the execution. If there is no error, it returns null.
Plays a video from the specified location. The selected file must be a video file.
Precondition: The camera must enter Single File Preview Mode.
Post condition: The file will play from a specific location immediately. This command can only be called if the video is currently playing or is paused. If paused, the playback position will be updated and playing will resume.
@return DJICameraError Shows the possible error during the execution. If there is no error, it returns null.
Input Parameters:
int location
Location from which to play the video must be in the range of [0, 100]. This value represents at what percent of the entire video it should start playing.
Precondition: The camera must enter single file preview mode.
Post condition: The image will be deleted from the SD card. @return DJICameraError Shows the possible error during the execution. If there is no error, it returns null.
Enables the user to preview multiple files when the camera is in Playback mode.
Precondition: The camera work mode should be set to Playback mode.
Post condition: There will be 8 images on one page. @return DJICameraError Shows the possible error during the execution. If there is no error, it returns null.
Goes to the next page when there are multiple pages.
Precondition: The camera must enter Multiple Preview Mode.
Special case: If it is the last page, it will stay at the last page. @return DJICameraErrorr Shows the possible error during the execution. If there is no error, it returns null.
Goes back to the previous page when there are multiple pages.
Precondition: The camera must enter Multiple Preview Mode.
Special case: If it is the first page, it will stay at the first page. @return DJICameraError Shows the possible error during the execution. If there is no error, it returns null.
This enables the user to select, download, or delete multiple media files when the camera is in Playback mode. Precondition: The camera work mode must be set to Camera Play back mode and then Multiple Preview Mode.
Post condition: Multiple photos can be selected to be downloaded or deleted. @return DJICameraError Shows the possible error during the execution. If there is no error, it returns null.
Selects or unselects a file at the specified index of the current page. This index is unrelated to the filename, and is used in multiple edit mode.
Precondition: The camera must enter Multiple Edit Mode. @return DJICameraError Shows the possible error during the execution. If there is no error, it returns null.
Input Parameters:
int index
Index at which to select a file. The value falls in [1,8]. However, the exact range should depends on how many photos totally in current page.
Precondition: The camera must enter Multi Edit Mode. @return DJICameraError Shows the possible error during the execution. If there is no error, it returns null.
Unselects all the files on the SD card. Precondition: The camera must enter Multiple Edit Mode. @return DJICameraError Shows the possible error during the execution. If there is no error, it returns null.
Precondition: The camera must enter Multiple Edit Mode. @return DJICameraError Shows the possible error during the execution. If there is no error, it returns null.
Precondition: The camera must enter Multiple Edit Mode. @return DJICameraError Shows the possible error during the execution. If there is no error, it returns null.
Precondition: The camera must enter Multiple Edit Mode.
Post condition: The images will be deleted from the SD card. @return DJICameraError Shows the possible error during the execution. If there is no error, it returns null.