Enumeration

AVPlayerViewControlsStyle

Constants that specify which controls the player view displays.

Declaration

enum AVPlayerViewControlsStyle : Int

Topics

Controls Styles

case none

The player view shows no playback controls over the video content.

case inline

The player view displays playback controls at the bottom of the player view that span the view’s width.

case floating

The player view displays playback controls in a floating window over the video content.

case minimal

This style presents minimal controls to play and pause playback.

See Also

Customizing the User Interface

var controlsStyle: AVPlayerViewControlsStyle

The player view’s controls style.

var showsFrameSteppingButtons: Bool

A Boolean value that determines whether the player view displays frame stepping buttons.

var showsSharingServiceButton: Bool

A Boolean value that determines whether the player view displays a sharing service button.

var showsFullScreenToggleButton: Bool

A Boolean value that determines whether the player view displays a full-screen toggle button.

var showsTimecodes: Bool

A Boolean value that determines whether the player view displays timecodes, if available.

var contentOverlayView: NSView?

A view that adds additional custom views between the video content and the controls.

var actionPopUpButtonMenu: NSMenu?

An action pop-up button menu displayed by the player view.

var updatesNowPlayingInfoCenter: Bool

A Boolean value that indicates whether the player view controller updates the Now Playing info center.