Global Variable

AVVideoScalingModeFit

The string identifier for scaling a video to fit the surrounding view's dimensions.

Declaration

let AVVideoScalingModeFit: String

Discussion

This mode crops the video to remove the edge processing region, preserving the aspect ratio of the cropped source by reducing the specified width or height, if necessary. It doesn't scale a small source up to larger dimensions.

See Also

Scaling Mode

let AVVideoScalingModeKey: String

A key to retrieve the video scaling mode from a dictionary.

let AVVideoScalingModeResize: String

The string identifier for resizing a video to fit the surrounding view's dimensions.

let AVVideoScalingModeResizeAspect: String

The string identifier for resizing a video to its surrounding view's shorter dimension while preserving its aspect ratio.

let AVVideoScalingModeResizeAspectFill: String

The string identifier for resizing a video to fit the surrounding view's longer dimension while preserving aspect ratio.