Builder

class Builder(context: Context)

Constructors

Link copied to clipboard
constructor(context: Context)

Functions

Link copied to clipboard
Link copied to clipboard

Enables ad insertion via the given provider (e.g. ImaAdsProvider).

Link copied to clipboard

Enables Chromecast handoff via the given connector (e.g. OGCastConnector).

Link copied to clipboard

Offline license key (OGP1.…) unlocking the licensed build. Verified against the app's package/signing cert and expiry with no network. Invalid/expired/absent → the SDK stays in its watermarked unlicensed mode; playback is never affected.

Link copied to clipboard

How often PlaybackListener.onProgress fires while playing (min 100 ms).

Link copied to clipboard
fun setSeekIncrements(forwardMs: Long, backwardMs: Long): OGPlayer.Builder

Configures the amounts used by seekForward and seekBackward.

Link copied to clipboard

Memory cap for the media buffer in bytes (default 32MB). Raise it for very-high-bitrate content when the app heap allows (or uses android:largeHeap); at 32MB a 20 Mbps stream still buffers ~13s.