Builder
Functions
Feed-level fit; per-item OGVerticalFeedItem.Builder.setContentFit wins.
Your copy on the feed's default error state — same contract as the standard player: return null to keep the SDK's default message.
Items kept prepared behind the visible one (0..1, default 1).
Offline license key (OGP2.…) applied to every pooled player.
Restart items from the beginning when they end (default true). Sponsored items never loop.
Skip items longer than this (seconds); 0 = no limit (default). Enforced at prepare time — an over-long item never buffers media segments, is skipped in the feed, and onItemSkipped fires.
Fire onNearEnd when this many items (or fewer) remain below the viewport.
Custom glyph for the center play indicator; null = the SDK's default.
Items prepared ahead of the visible one (0..2, default 1). Set 0 on low-end targets.
Color of the played portion (default white).
Hairline thickness at rest (default 2dp; it grows ~2.5× while scrubbed).
Color of the unplayed track (default white at 25%).
Hide the progress hairline entirely — scrubbing goes with it.
Show the default "Sponsored" chip on sponsored items (default true). For a custom badge, hide this and pass sponsoredBadge to OGVerticalFeedView instead.
Show the item subtitle under the title (default false).
Show the item title bottom-left (default false).
The feed's texts in any language — the same OGStrings (and map keys) as the standard player; the feed reads play, retry, errorGeneric and sponsored. setErrorMessageProvider wins over errorGeneric.
Subtitle text size (default 13sp).
Background of the text band for ABOVE_VIDEO / BELOW_VIDEO placements (default transparent — the feed's black shows through).
Share of the page height the text section occupies for ABOVE_VIDEO / BELOW_VIDEO placements (default 1/3). The band's background fills the whole section; the video fills the rest.
Top margin of the text inside an ABOVE_VIDEO section (default 16dp — text starts at the top). Raise it if your titles collide with the top-center watermark on unlicensed builds.
Font for the title, subtitle and rail labels; null = system default.
Title text size (default 16sp).