ApplePlayerConfiguration
Player configuration specific to Apple platforms.
Properties
silentSwitchBehaviour?
optionalsilentSwitchBehaviour:AppleSilentSwitchBehaviour
Specifies whether to ignore or obey the physical silent switch on Apple devices. If not defined, a default system behavior is left.
networkConfiguration?
optionalnetworkConfiguration:AppleNetworkConfiguration
The network configuration to tweak timeouts and cellular connectivity.
appliesMediaSelectionCriteriaAutomatically?
optionalappliesMediaSelectionCriteriaAutomatically: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?
optionalpictureInPictureAllowed: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?
optionalrequiresLinearPlayback: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.