Instance Property

videoGravity

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

Declaration

@property(copy) AVLayerVideoGravity videoGravity;

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 AVLayerVideoGravityResizeAspect.

This property is animatable.

See Also

Configuring Video

readyForDisplay

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

videoBounds

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