Instance Property

videoGravity

A setting that determines how the video is displayed within a player view’s bounds.

Declaration

var videoGravity: AVLayerVideoGravity { get set }

Discussion

The video gravity determines how the video content is scaled or stretched within the player view’s bounds. The player view supports the following video gravity values:

The default value is resizeAspect.

This property is animatable.

See Also

Configuring Video

var isReadyForDisplay: Bool

A Boolean value that indicates the current player item’s first video frame has been made ready for display.

var videoBounds: NSRect

The current size and position of the video image as displayed within the player view's bounds.