UIController
A container component for a THEOplayer UI.
This component provides a basic layout structure for a player UI, and handles the creation and management of a Player instance for this UI.
The colors and fonts can be changed by wrapping this inside a THEOplayerTheme.
Parameters
the Modifier to be applied to this container
the player configuration to be used when constructing the THEOplayerView
the source description to load into the player
the MutableInteractionSource representing the stream of Interactions for this container. You can create and pass in your own remember
ed instance to observe Interactions and customize the behavior of this container.
the background color for the overlay while showing the UI controls
content to show in the center of the player, typically a LoadingSpinner.
content to show when the player encountered a fatal error, typically an ErrorDisplay.
controls to show at the top of the player, for example the stream's title.
controls to show in the center of the player, for example a large PlayButton.
controls to show at the bottom of the player, for example a SeekBar or a Row containing a MuteButton and a FullscreenButton.
A container component for a THEOplayer UI.
This component provides a basic layout structure for a player UI using the given player.
The colors and fonts can be changed by wrapping this inside a THEOplayerTheme.
Parameters
the Modifier to be applied to this container
the player. This should always be created using rememberPlayer.
the MutableInteractionSource representing the stream of Interactions for this container. You can create and pass in your own remember
ed instance to observe Interactions and customize the behavior of this container.
the background color for the overlay while showing the UI controls
content to show in the center of the player, typically a LoadingSpinner.
content to show when the player encountered a fatal error, typically an ErrorDisplay.
controls to show at the top of the player, for example the stream's title.
controls to show in the center of the player, for example a large PlayButton.
controls to show at the bottom of the player, for example a SeekBar or a Row containing a MuteButton and a FullscreenButton.