OGUiConfig
Visual configuration for OGPlayerView's built-in controls. Every button icon can be replaced with a drawable resource (PNG/vector); when unset, the SDK's built-in vector shapes are drawn. For a completely different control layout, pass customControls to OGPlayerView instead.
Types
Properties
Where the cast button sits within the player (default top end).
How long the rating icons stay before fading, in ms.
Colour tokens for the built-in controls (design-system defaults).
Dimension tokens for the built-in controls (embedded baseline).
Host icon buttons rendered left of the Cast button (max 8).
Host-supplied error-overlay text, any language — called with the full OGPlayerError (stable codes across platforms); null → SDK default.
Text style for the error-overlay message; null → SDK default (white, 15sp, system font).
How the chrome is driven — touch (default) or a TV remote. See OGInputMode.
Remote mode only: publish a system MediaSession mirroring the player (voice "pause", remote media buttons from other surfaces, now-playing).
Retry button container color; null → SDK default (brand yellow).
Retry button content color; null → SDK default (near-black).
The host's Retry label, or null — the overlay then uses strings' retry.
Text style for the retry button label; null → SDK default (14sp).
Whether upcoming ad breaks are marked on the scrub bar.
Whether content-rating icons render at program start.
Whether the scrub bar (and its thumbnail preview) is shown.
Show the "Up next" countdown card during the lead window before a playlist item ends (default true; hidden = silent auto-advance).
Remote (TV) chrome: the playlist next glyph in the bottom row.
Remote (TV) chrome: the playlist previous glyph in the bottom row.
Style for the title overlay; null = SDK default (white 24sp semibold, outlined).
How long the title stays before fading, in ms.
Card background; null → SDK default (dark scrim).
Seconds before an item's end at which the card appears (default 10).
Card text template — {seconds} and {title} are substituted (setUpNextText, else strings' upNext, default "Next in {seconds}").
Card text style; null → SDK default (white, 13sp).