OGPlayerError
Sealed hierarchy of playback errors surfaced by the SDK.
Every error carries a stable numeric code (see Codes for the full table), a matching machine-readable codeName, a human-readable message, a retryable hint (true when retrying the same load has a reasonable chance of succeeding), and the underlying Media3 media3ErrorCode + cause for deep debugging. Codes are stable across SDK releases: new codes may be added, existing ones never change meaning.
Typical handling:
override fun onError(error: OGPlayerError) {
analytics.log("playback_error", error.code, error.codeName)
when (error) {
is OGPlayerError.Network -> if (error.retryable) scheduleRetry()
is OGPlayerError.Drm -> showEntitlementMessage(error.httpStatusCode)
else -> showGenericError(error.code)
}
}Inheritors
Types
DRM failure that survived the SDK's automatic recovery attempts.
Live-stream failure that survived automatic recovery.
Network-level failure while loading media (connectivity, HTTP).
Decoding/rendering failed on this device.
The media itself is malformed or unsupported (manifest, container).
Anything not covered above.