Type Property

resize

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

Declaration

static let resize: AVLayerVideoGravity

See Also

Video Gravity Options

static let resizeAspect: AVLayerVideoGravity

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

static let resizeAspectFill: AVLayerVideoGravity

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