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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software