Package-level declarations

Types

Link copied to clipboard
class AdState

State holder for UI that depends on whether an ad is playing.

Link copied to clipboard

State holder for audio tracks, such as AudioTrackList or AudioTrackMenu.

Link copied to clipboard
class CastState

State holder for Chromecast controls, such as ChromecastButton and ChromecastDisplay.

Link copied to clipboard

State holder for an error display, such as ErrorDisplay.

Link copied to clipboard
@RequiresOptIn(message = "This state holder API is experimental and may change in future releases.", level = RequiresOptIn.Level.WARNING)
annotation class ExperimentalPlayerStateApi

Marks declarations that are part of the experimental state holder API of the THEOplayer Open Video UI for Android.

Link copied to clipboard

State holder for UI that should only appear once playback has started for the first time.

Link copied to clipboard

State holder for a fullscreen button, such as FullscreenButton.

Link copied to clipboard
@RequiresOptIn(message = "This API is internal to the THEOplayer Open Video UI for Android and may change at any time.", level = RequiresOptIn.Level.ERROR)
annotation class InternalUiApi

Marks declarations that are internal to the THEOplayer Open Video UI for Android.

Link copied to clipboard

State holder for a "live" button, such as LiveButton.

Link copied to clipboard

State holder for a loading indicator, such as LoadingSpinner.

Link copied to clipboard
typealias MenuContent = @Composable MenuScope.() -> Unit

The content for a new menu, typically this should draw a single Menu.

Link copied to clipboard

Scope for the contents of a Menu.

Link copied to clipboard

State holder for a mute button, such as MuteButton.

Link copied to clipboard

State holder for a picture-in-picture button, such as PictureInPictureButton.

Link copied to clipboard

State holder for the playback rate, such as PlaybackRateList or PlaybackRateMenu.

Link copied to clipboard

State holder for a playback time display, such as CurrentTimeDisplay or DurationDisplay.

Link copied to clipboard

State holder for a play/pause button, such as PlayButton.

Link copied to clipboard
interface Player

A player holding a THEOplayer instance that can be hosted by a DefaultUI or UIController.

Link copied to clipboard

State holder for a seek bar, such as SeekBar.

Link copied to clipboard

State holder for a button that seeks forward or backward by a fixed offset, such as SeekButton.

Link copied to clipboard
enum class StreamType : Enum<StreamType>

The type of a stream.

Link copied to clipboard

State holder for subtitle tracks, such as SubtitleTrackList or SubtitleMenu.

Link copied to clipboard

A font family that can be selected in a text track style menu, such as TextTrackStyleMenu.

Link copied to clipboard

State holder for the style of subtitles, such as TextTrackStyleMenu.

Link copied to clipboard

Represents one or more ranges of time, each specified by a start time and an end time.

Link copied to clipboard

Scope for the contents of a UIController.

Link copied to clipboard

State holder for video qualities, such as QualityList or QualityMenu.

Link copied to clipboard

State holder for the video dimensions.

Properties

Link copied to clipboard

The THEOplayerView controlled by the enclosing UIController.

Functions

Link copied to clipboard
fun rememberAdState(player: Player?): AdState

Creates an AdState that's remembered across compositions.

Link copied to clipboard

Creates an AudioTrackState that's remembered across compositions.

Link copied to clipboard
fun rememberCastState(theoplayerView: THEOplayerView?): CastState

Creates a CastState that's remembered across compositions.

Link copied to clipboard

Creates an ErrorState that's remembered across compositions.

Link copied to clipboard

Creates a FirstPlayState that's remembered across compositions.

Link copied to clipboard
fun rememberFullscreenState(theoplayerView: THEOplayerView?): FullscreenState

Creates a FullscreenState that's remembered across compositions.

Link copied to clipboard
fun rememberLiveButtonState(player: Player?, liveThreshold: Double): LiveButtonState

Creates a LiveButtonState that's remembered across compositions.

Link copied to clipboard

Creates a LoadingState that's remembered across compositions.

Link copied to clipboard

Creates a MuteButtonState that's remembered across compositions.

Link copied to clipboard
fun rememberPictureInPictureState(theoplayerView: THEOplayerView?): PictureInPictureState

Creates a PictureInPictureState that's remembered across compositions.

Link copied to clipboard

Creates a PlaybackRateState that's remembered across compositions.

Link copied to clipboard

Creates a PlaybackTimeState that's remembered across compositions.

Link copied to clipboard

Creates a PlayButtonState that's remembered across compositions.

Link copied to clipboard

Creates a SeekBarState that's remembered across compositions.

Link copied to clipboard
fun rememberSeekButtonState(player: Player?, seekOffset: Int): SeekButtonState

Creates a SeekButtonState that's remembered across compositions.

Link copied to clipboard

Creates a SubtitleTrackState that's remembered across compositions.

Link copied to clipboard

Creates a TextTrackStyleState that's remembered across compositions.

Link copied to clipboard
fun rememberTHEOplayerView(config: THEOplayerConfig? = null): THEOplayerView

Creates and remembers a THEOplayerView owned by the composition.

Link copied to clipboard

Creates a VideoQualityState that's remembered across compositions.

Link copied to clipboard

Creates a VideoSizeState that's remembered across compositions.