Builder

class Builder

Constructors

Link copied to clipboard
constructor()

Functions

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

Your copy on the feed's default error state — same contract as the standard player: return null to keep the SDK's default message.

Link copied to clipboard

Items kept prepared behind the visible one (0..1, default 1).

Link copied to clipboard

Offline license key (OGP2.…) applied to every pooled player.

Link copied to clipboard

Restart items from the beginning when they end (default true). Sponsored items never loop.

Link copied to clipboard

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.

Link copied to clipboard

Fire onNearEnd when this many items (or fewer) remain below the viewport.

Link copied to clipboard

Custom glyph for the center play indicator; null = the SDK's default.

Link copied to clipboard

Items prepared ahead of the visible one (0..2, default 1). Set 0 on low-end targets.

Link copied to clipboard

Color of the played portion (default white).

Link copied to clipboard

Hairline thickness at rest (default 2dp; it grows ~2.5× while scrubbed).

Link copied to clipboard

Color of the unplayed track (default white at 25%).

Link copied to clipboard

Hide the progress hairline entirely — scrubbing goes with it.

Link copied to clipboard

Show the default "Sponsored" chip on sponsored items (default true). For a custom badge, hide this and pass sponsoredBadge to OGVerticalFeedView instead.

Link copied to clipboard

Show the item subtitle under the title (default false).

Link copied to clipboard

Show the item title bottom-left (default false).

Link copied to clipboard

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.

Link copied to clipboard

Subtitle text size (default 13sp).

Link copied to clipboard

Background of the text band for ABOVE_VIDEO / BELOW_VIDEO placements (default transparent — the feed's black shows through).

Link copied to clipboard

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.

Link copied to clipboard

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.

Link copied to clipboard

Font for the title, subtitle and rail labels; null = system default.

Link copied to clipboard

Title text size (default 16sp).