Instance Property

livePhotoMovieDimensions

The size, in pixels, of the Live Photo movie content delivered by this capture.

Declaration

var livePhotoMovieDimensions: CMVideoDimensions { get }

Discussion

Use the livePhotoMovieFileURL property in your photo settings object to request Live Photo capture. Live Photo movie dimensions can change depending on which device camera is used for capture.

This property provides dimensions for the movie content of the Live Photo, which is delivered in the capture(_:didFinishProcessingLivePhotoToMovieFileAt:withDuration:photoDisplay:for:error:) method. Use this property in earlier delegate methods to find the dimensions of the movie before delivery.

For the dimensions of the static photo content of a Live Photo, see the photoDimensions property.

If you do not request Live Photo capture, this property’s value has zero width and zero height.

See Also

Examining Output Dimensions

var photoDimensions: CMVideoDimensions

The size, in pixels, of the photo image (in a processed format such as JPEG) delivered by this capture.

var rawPhotoDimensions: CMVideoDimensions

The size, in pixels, of the RAW-format photo image delivered by this capture.

var previewDimensions: CMVideoDimensions

The size, in pixels, of the preview image delivered along with this capture.

var embeddedThumbnailDimensions: CMVideoDimensions

The size, in pixels, of the thumbnail image delivered in this capture.

var rawEmbeddedThumbnailDimensions: CMVideoDimensions

The size, in pixels, of the RAW-format embedded thumbnail image delivered by this capture.

var portraitEffectsMatteDimensions: CMVideoDimensions

The size, in pixels, of the portrait effects matte delivered by this capture.