A value that specifies how the video is displayed within a player layer’s bounds.
- iOS 4.0+
- macOS 10.7+
- Mac Catalyst 13.0+
- tvOS 9.0+
The video gravity determines how the video content is scaled or stretched within the player layer’s bounds. The player layer supports the following video gravity values:
The default value is
This property is animatable.
Configuring Player Layer Values
The player for which the player layer displays visual output.
A Boolean value that indicates whether the first video frame has been made ready for display for the current item of the associated player.
A value that defines how the video is displayed within a layer’s bounds rectangle.
The current size and position of the video image as displayed within the receiver's bounds.
The client requirements for the visual output displayed in the player layer during playback.