Type Property

resizeAspectFill

The player should preserve the video’s aspect ratio and fill the layer’s bounds.

Declaration

static let resizeAspectFill: AVLayerVideoGravity

See Also

Video Gravity Options

static let resize: AVLayerVideoGravity

The video should be stretched to fill the layer’s bounds.

static let resizeAspect: AVLayerVideoGravity

The player should preserve the video’s aspect ratio and fit the video within the layer’s bounds.