Global Variable

PHLivePhotoShouldRenderAtPlaybackTime

Specifies whether processing should occur during or before playback.

Declaration

PHLivePhotoEditingOption PHLivePhotoShouldRenderAtPlaybackTime;

Discussion

The value for this key is an NSNumber object with a Boolean value. With the default value of NO, Photos always renders your edits immediately when you call the initWithLivePhotoEditingInput: method, calling your frameProcessor block for each frame in the Live Photo’s video and still photo content.

When you specify a value of YES, Photos can defer rendering until playback time, calling your frameProcessor block only for photo and video frames that need to be displayed. However, in this case Photos may still choose to pre-render your edits if needed.

This option does not apply when rendering for output with the saveLivePhotoToOutput:options:completionHandler: method.