SourceErrorCode
@Serializable(with = SourceErrorCodeSerializer::class)
enum SourceErrorCode : ErrorCode, Enum<SourceErrorCode>
2000 - 2999: Source-related error codes
- 2000 - 2099: General
- 2100 - 2199: Playback
- 2200 - 2299: IO
- 2300 - 2399: DRM
Entries
| General | General A general player error code when a more specific error code could not be determined. See Logging in the Android Player SDK for instructions on enabling verbose logging for contacting support with a full error report. |
| UnsupportedStreamType | UnsupportedStreamType The source could not be loaded as the stream type is not supported. |
| Io | Io A general error indicating that an I/O or Networking action failed. |
| ConnectionFailed | ConnectionFailed The network connection failed. |
| ConnectionTimeout | ConnectionTimeout 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. |
| HttpStatusCode | HttpStatusCode An unexpected (error) HTTP status code was received. |
| ClearTextConnection | ClearTextConnection 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. |
| DrmGeneral | DrmGeneral A general error indicating that the current DRM session failed for an unspecified reason. |
| DrmUnsupported | DrmUnsupported The provided DRM scheme is not supported on the device. |
| DrmRequestFailed | DrmRequestFailed The response to the DRM license request failed due to an invalid HTTP response code. |
| DrmKeyExpired | DrmKeyExpired The DRM license key has expired. |
| DrmConfigurationFailed | DrmConfigurationFailed Configuration or setup of the DRM system failed. |
| DrmDisallowedOperation | DrmDisallowedOperation The DRM system has prevented the requested operation. |
Types
| Name | Summary |
|---|---|
| Companion | object Companion |
Properties
| Name | Summary |
|---|---|
| entries | val entries: EnumEntries<SourceErrorCode> Returns a representation of an immutable list of all enum entries, in the order they're declared. |
| value | open override val value: Int The raw code value associated with the deficiency. |
Functions
| Name | Summary |
|---|---|
| valueOf | fun valueOf(value: String): SourceErrorCode 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.) |
| values | fun values(): Array<SourceErrorCode> Returns an array containing the constants of this enum type, in the order they're declared. |