Instance Property

videoGravity

A value that determines how the player view displays video content within its bounds.

Declaration

var videoGravity: AVLayerVideoGravity { get set }

Discussion

The video gravity determines how the player view scales or stretches the video content 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

Customizing the Video Presentation

var isReadyForDisplay: Bool

A Boolean value that indicates whether the current player item’s first video frame is ready for display.

var videoBounds: NSRect

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