DefaultUI

fun DefaultUI(modifier: Modifier = Modifier, config: THEOplayerConfig, source: SourceDescription? = null, title: String? = null)(source)

A default THEOplayer UI component for Android TV.

This component provides a great player experience out-of-the-box, that works for all types of streams. It provides all the common playback controls for playing, seeking, changing languages and qualities, and can be fully controlled with a D-pad.

The colors and fonts can be changed by wrapping this inside a THEOplayerTvTheme. For more extensive customizations, we recommend defining your own custom UI using a UIController.

Parameters

modifier

the Modifier to be applied to this UI

config

the player configuration to be used when constructing the THEOplayerView

source

the source description to load into the player

title

the stream's title, shown at the top of the player

See also


fun DefaultUI(modifier: Modifier = Modifier, theoplayerView: THEOplayerView, title: String? = null)(source)

A default THEOplayer UI component for Android TV.

This component provides a great player experience out-of-the-box, that works for all types of streams. It provides all the common playback controls for playing, seeking, changing languages and qualities, and can be fully controlled with a D-pad.

Use LocalTHEOplayerView and the experimental state holders to access the player inside this UI.

This does not touch the lifecycle of the given view: use rememberTHEOplayerView to create a view owned by the composition, or forward THEOplayerView.onPause, THEOplayerView.onResume and THEOplayerView.onDestroy yourself.

The colors and fonts can be changed by wrapping this inside a THEOplayerTvTheme. For more extensive customizations, we recommend defining your own custom UI using a UIController.

Parameters

modifier

the Modifier to be applied to this UI

theoplayerView

the THEOplayer view to host in this UI

title

the stream's title, shown at the top of the player

See also