Instance Property

videoGravity

A string defining how the video is displayed within the bounds rect of a sample buffer display layer.

Declaration

var videoGravity: AVLayerVideoGravity { get set }

Discussion

The string values are defined in AVLayerVideoGravity. The default value is resizeAspect.

See Also

Setting the Video Gravity

struct AVLayerVideoGravity

A value that defines how the video is displayed within a layer’s bounds rectangle.