A Boolean value that indicates whether the player view controller shows playback controls.
SDKs
- iOS 8.0+
- Mac Catalyst 13.0+
- tvOS 9.0+
Framework
- AVKit
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.