Instance Method

captureOutput:didFinishProcessingLivePhotoToMovieFileAtURL:duration:photoDisplayTime:resolvedSettings:error:

Provides the delegate the movie file URL resulting from a Live Photo capture.

Declaration

- (void)captureOutput:(AVCapturePhotoOutput *)output didFinishProcessingLivePhotoToMovieFileAtURL:(NSURL *)outputFileURL duration:(CMTime)duration photoDisplayTime:(CMTime)photoDisplayTime resolvedSettings:(AVCaptureResolvedPhotoSettings *)resolvedSettings error:(NSError *)error;

Parameters

captureOutput

The photo output performing the capture.

outputFileURL

The file URL at which the movie content of the Live Photo was written.

movieDuration

The duration of the Live Photo movie.

photoDisplayTime

The timestamp within the movie to which the still image part of the Live Photo corresponds.

resolvedSettings

An object describing the settings used for this capture. Match this object’s uniqueID value to the uniqueID property of the photo settings object you initiated capture with to determine which capture request this delegate call corresponds to. You can also use this object to find out which values the photo output has chosen for automatic settings.

error

If the capture process could not proceed successfully, an error object describing the failure; otherwise, nil.

Discussion

Use this method to receive the results of a Live Photo capture. When the photo output calls this method, the movie component of the Live Photo has been written to the location specified by the outputFileURL parameter and the Live Photo is ready for consumption. (To receive the still image component of the Live Photo, implement the captureOutput:didFinishProcessingPhotoSampleBuffer:previewPhotoSampleBuffer:resolvedSettings:bracketSettings:error: method.)

You don’t need to implement this method if you’re not requesting Live Photo capture.

The photo output calls this method only once for each Live Photo capture.

See Also

Receiving Capture Results

- captureOutput:didFinishProcessingPhoto:error:

Provides the delegate with the captured image and associated metadata resulting from a photo capture.

- captureOutput:didFinishRecordingLivePhotoMovieForEventualFileAtURL:resolvedSettings:

Notifies the delegate that the movie content of a Live Photo has finished recording.