Builder

class Builder

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard
Link copied to clipboard

Hides every hideable control: scrub bar, time labels, buttons and ad markers. Play/pause and the LIVE chip are never hidden — a viewer can always stop playback and always sees live status. Call setShow* setters after this to selectively re-enable pieces.

Link copied to clipboard

Icon for the ad chrome's pause button.

Link copied to clipboard

Icon for the ad chrome's play (resume-ad) button.

Link copied to clipboard

Replaces the built-in audio-track icon with a drawable resource.

Link copied to clipboard

Moves the cast button to a different corner/edge of the player.

Link copied to clipboard

Replaces the cast icon shown while connected to a receiver.

Link copied to clipboard

Replaces the built-in cast icon with a drawable resource.

Link copied to clipboard

How long the rating icons stay before fading out.

Link copied to clipboard
Link copied to clipboard

Overrides dimension tokens of the built-in controls.

Link copied to clipboard

How long the controls stay visible without interaction while playing.

Link copied to clipboard

Up to 8 host icon buttons rendered inline in the top-end control row, left of the Cast button. They follow the controls' show/hide logic; use OGPlayerView's overlay slots for persistent elements (watermarks) instead.

Link copied to clipboard

Overrides colour tokens of the built-in controls.

Link copied to clipboard

Replaces the built-in fullscreen enter/exit icons with drawable resources.

Link copied to clipboard

Replaces the built-in pause icon with a drawable resource.

Link copied to clipboard

Replaces the built-in play icon with a drawable resource.

Link copied to clipboard
fun setProgressColors(played: Color, track: Color, scrubber: Color): OGUiConfig.Builder

Colors for the progress bar: played portion, remaining track, and scrubber thumb.

Link copied to clipboard

Custom Retry label, any language (default "Retry").

Link copied to clipboard

Replaces the built-in seek-backward icon with a drawable resource.

Link copied to clipboard

Replaces the built-in seek-forward icon with a drawable resource.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Hides the content-rating icons entirely.

Link copied to clipboard

Shows or hides the scrub bar (including its thumbnail preview).

Link copied to clipboard

Hides the error overlay's Retry button (shown by default).

Link copied to clipboard

Shows or hides the seek forward/backward buttons (VOD and LIVE_DVR only).

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Hides the title overlay entirely.

Link copied to clipboard
Link copied to clipboard

Custom text style (font, size, weight, color) for the title overlay.

Link copied to clipboard

How long the title stays on screen before fading out.