Skip to main content

AVPlayerViewControllerProviderProps

AVPlayerViewControllerProviderProps = object

Props for the AVPlayerViewControllerProvider component.

Properties

children

children: ReactNode | ReactElement<typeof AppleTvPlayerControls>

Child component are not rendered visually, but they can interact with the player instance.

This may include AppleTvPlayerControls for custom tvOS player controls.


onClose()?

optional onClose: () => void

Callback invoked when the underlying AVPlayerViewController is closed.

Returns

void


playerConfig?

optional playerConfig: PlayerConfiguration

The configuration used to initialize the player instance.

For detailed options, see PlayerConfiguration.