Instance Property

externalPlaybackVideoGravity

The video gravity of the player for external playback mode only.

Declaration

var externalPlaybackVideoGravity: AVLayerVideoGravity { get set }

Discussion

The value of this property could be resize, resizeAspectFill, or resizeAspect.

See Also

Managing External Playback

var allowsExternalPlayback: Bool

A Boolean value that indicates whether the player allows switching to external playback mode.

var isExternalPlaybackActive: Bool

A Boolean value that indicates whether the player is currently playing video in external playback mode.

var usesExternalPlaybackWhileExternalScreenIsActive: Bool

A Boolean value that indicates whether the player should automatically switch to external playback mode while the external screen mode is active in order to play video content.