Instance Property

showsPlaybackControls

A Boolean value that indicates whether the player view controller shows playback controls.

Declaration

var showsPlaybackControls: Bool { get set }

Discussion

Default value is true.

You can set this property to false if you don't want the system-provided playback controls visible over your content. Hiding the playback controls can be useful in situations where you need a non-interactive video presentation, such as a video splash screen.

Do not use this property to change the visibility of the playback controls while the player view controller is onscreen, because doing so creates or destroys UI elements.

See Also

Accessing Player View Controller Attributes

var playbackControlsIncludeInfoViews: Bool

A Boolean value that indicates whether the receiver shows information views when requested by the user.

var playbackControlsIncludeTransportBar: Bool

A Boolean value that indicates whether the receiver shows the transport bar and related controls.

var allowsPictureInPicturePlayback: Bool

A Boolean value that indicates whether the player view controller allows Picture in Picture playback on iPad.

var contentOverlayView: UIView?

A view displayed between the video content and the playback controls.

var entersFullScreenWhenPlaybackBegins: Bool

A Boolean value that determines whether the player automatically displays in full screen when the play button is tapped.

var exitsFullScreenWhenPlaybackEnds: Bool

A Boolean value that indicates whether the player exits full screen when playback ends.

var isReadyForDisplay: Bool

A Boolean value indicating that the first video frame, of the current item of the associated AVPlayer object, is ready for display.

var videoBounds: CGRect

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

var videoGravity: AVLayerVideoGravity

A string that specifies how the video is displayed within the bounds of the player view controller’s view.

var requiresLinearPlayback: Bool

A Boolean value that determines whether the user is allowed to skip media content.

var unobscuredContentGuide: UILayoutGuide

A layout guide representing an area that will not be permanently obscured by fixed-position playback controls when they are visible.

var updatesNowPlayingInfoCenter: Bool

A Boolean value that indicates whether the player view controller updates the now playing info center.

var appliesPreferredDisplayCriteriaAutomatically: Bool

A Boolean value that indicates whether the receiver automatically changes the screen's preferred display criteria to that of the asset being played.

var customInfoViewController: UIViewController?

A view controller that provides client-specific content and controls alongside system-provided information and settings panels.