Package-level declarations

Types

Link copied to clipboard
sealed class AnalyticsEvent

Playback quality and lifecycle events for analytics integrations.

Link copied to clipboard
class AudioTrack(val id: String, val language: String?, val label: String?, val channelCount: Int, val isSelected: Boolean)

A selectable audio track (language/description) of the current media.

Link copied to clipboard
sealed interface ContentRating

A content-rating icon shown at program start (Kijkwijzer-style).

Link copied to clipboard
class DrmConfig

DRM configuration for an OGMediaItem (Widevine).

Link copied to clipboard

Why the SDK silently renewed a DRM session.

Link copied to clipboard

DRM scheme for license acquisition. Widevine is the Android default.

Link copied to clipboard
fun interface DrmTokenProvider

Supplies a DRM license token. Called on every license request — including renewals — so implementations must return a currently valid token each time (fetch it, refresh auth, etc.). Never cache a token beyond its lifetime; the SDK never caches it at all.

Link copied to clipboard
class DrmTokenRequest(val licenseUrl: String, val mediaItem: OGMediaItem)

Context for a DrmTokenProvider.getToken call.

Link copied to clipboard

Marks declarations that are internal to the ogplayer SDK modules. They carry no compatibility guarantees and must not be used by apps.

Link copied to clipboard
class LiveInfo(val streamType: StreamType, val dvrWindowMs: Long, val atLiveEdge: Boolean, val latencyMs: Long, val playheadWallClockMs: Long? = null)

Runtime facts about the current live stream. Null for VOD.

Link copied to clipboard
fun interface OGAnalyticsListener

Receives AnalyticsEvents from an OGPlayer. Host apps adapt these to their analytics vendor (Conviva, Tealium, ...).

Link copied to clipboard

Immutable description of a piece of media to play.

Link copied to clipboard
interface OGPlayer

The ogplayer playback engine.

Link copied to clipboard
sealed class OGPlayerError

Sealed hierarchy of playback errors surfaced by the SDK.

Link copied to clipboard

Entry point metadata for the ogplayer SDK.

Link copied to clipboard

Callbacks for playback lifecycle events. All methods have empty defaults.

Link copied to clipboard

High-level playback state of an OGPlayer.

Link copied to clipboard

Declared stream type of a media item. Drives default UI behavior.

Link copied to clipboard
class SubtitleSource(val url: String, val language: String, val label: String? = null, val isDefault: Boolean = false)

A sideloaded subtitle file (WebVTT/TTML/SRT) attached to a media item.

Link copied to clipboard

Caption rendering style. When applyEmbeddedStyles is false (default), this styling always wins over in-stream text styling, while WebVTT positioning (line/position/align cue settings) is always preserved.

Link copied to clipboard
class TextTrack(val id: String, val language: String?, val label: String?, val isSelected: Boolean)

A selectable subtitle/caption track of the current media.

Link copied to clipboard
class VideoQuality(val id: String, val width: Int, val height: Int, val bitrate: Int, val isSelected: Boolean)

A selectable video rendition of the current media.

Link copied to clipboard

How the player's volume slider behaves.