SourceErrorCode

@Serializable(with = SourceErrorCodeSerializer::class)
enum SourceErrorCode : Enum<SourceErrorCode> , ErrorCode

2000 - 2999: Source-related error codes

  • 2000 - 2099: General

  • 2100 - 2199: Playback

  • 2200 - 2299: IO

  • 2300 - 2399: DRM

Entries

Link copied to clipboard

A general source error code when a more specific error code could not be determined.

Link copied to clipboard

A general error indicating that a IO/Networking action failed. The message of the according SourceEvent.Error provides more information.

Link copied to clipboard

The network connection failed. This could be caused by, but is not limited to: a missing network connection, unreachable target or the host unexpectedly closing the connection. The message of the according SourceEvent.Error provides more information.

Link copied to clipboard

The network connection timed out. It took too long to receive a response from the server. The message of the according SourceEvent.Error provides more information.

Link copied to clipboard

An unexpected (error) HTTP status code was received. The message of the according SourceEvent.Error provides more information.

Link copied to clipboard

Attempted to create a clear text (i.e. http instead of https) connection without the necessary permissions. To allow clear text connections, the apps network security configuration can be adjusted.

Link copied to clipboard

A general error indicating that the current DRM session failed for some reason. The message of the according SourceEvent.Error provides more information.

Link copied to clipboard

The provided DRM scheme is not supported on the device.

Link copied to clipboard

The response to the DRM license request failed with an invalid HTTP response code. The message of the according PlayerEvent.Error provides more information.

Link copied to clipboard

The offline DRM license key expired and should be renewed.

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard

Returns a representation of an immutable list of all enum entries, in the order they're declared.

Link copied to clipboard
open override val value: Int

The raw code value associated with the deficiency.

Functions

Link copied to clipboard

Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Link copied to clipboard

Returns an array containing the constants of this enum type, in the order they're declared.