Skip to main content

ApplePlayerConfiguration

Player configuration specific to Apple platforms.

Properties​

silentSwitchBehaviour?​

optional silentSwitchBehaviour: AppleSilentSwitchBehaviour

Specifies whether to ignore or obey the physical silent switch on Apple devices. If not defined, a default system behavior is left.


networkConfiguration?​

optional networkConfiguration: AppleNetworkConfiguration

The network configuration to tweak timeouts and cellular connectivity.


appliesMediaSelectionCriteriaAutomatically?​

optional appliesMediaSelectionCriteriaAutomatically: boolean

Enable/disable automatic media selection for AVPlayer When true, the player automatically selects media options based on user preferences. When false, automatic selection is disabled. Defaults to Apple's system behavior if not specified.


pictureInPictureAllowed?​

optional pictureInPictureAllowed: boolean

Controls whether Picture-in-Picture (PiP) is allowed.

For AVPlayerViewControllerProvider playback this maps to allowsPictureInPicturePlayback on AVPlayerViewController. For PlayerProvider playback it controls whether the underlying AVPictureInPictureController is created. If omitted, the native platform default is used.


requiresLinearPlayback?​

optional requiresLinearPlayback: boolean

When true, the player-provided controls no longer let the viewer skip through the content: fast forward, forward skip and scrubbing are disabled. Use it to enforce playback of mandatory content such as legalese or advertisements.

Which controls this covers depends on how playback is set up:

  • With the AVPlayerViewControllerProvider component the player supplies the whole playback UI, so its transport bar loses skip and scrubbing for as long as the content is open.
  • With PlayerProvider and PlayerView the inline controls are the application's own and are left untouched — only the Picture-in-Picture window is affected. An application that wants linear playback there must also disable seeking in its own controls and avoid calling Player.setPosition.

Defaults to false, so playback stays fully seekable unless this is explicitly enabled.