Instance Property

audioVolume

The audio gain to apply to the processed Live Photo.

Declaration

var audioVolume: Float { get set }

Discussion

Values must be between 0.0 and 1.0, inclusive. A value of 1.0 (the default) leaves the audio content of the Live Photo unchanged. A value of 0.0 mutes all audio in the output Live Photo.

Setting this property does not process the Live Photo content; instead, it sets the audio gain to be applied when you later process the Live Photo using one of the methods listed in Processing an Editing Context’s Live Photo.

See Also

Preparing an Editing Context for Processing

var frameProcessor: PHLivePhotoFrameProcessingBlock?

A block to be called by Photos for processing each frame of the Live Photo’s visual content.

typealias PHLivePhotoFrameProcessingBlock

The signature for a block Photos calls to process Live Photo frames.