SourceWarningCode

SourceWarningCode

@Serializable(with = SourceWarningCodeSerializer::class)

enum SourceWarningCode : WarningCode, Enum<SourceWarningCode>

2000 - 2999: Source-related warning codes

  • 2000 - 2099: General
  • 2100 - 2199: Playback
  • 2200 - 2299: Network
  • 2300 - 2399: DRM

Entries

GeneralGeneral
A general source warning code when a more specific warning code could not be determined. The message of the according SourceEvent.Warning provides more information.
UnsupportedCodecOrFormatUnsupportedCodecOrFormat
A track with an unsupported codec or format was discovered. The message of the according SourceEvent.Warning provides more information.
ThumbnailLoadingFailedThumbnailLoadingFailed
It was not possible to load a thumbnail track due to an invalid URI or server communication failure. The message of the according SourceEvent.Warning provides more information.
ThumbnailParsingFailedThumbnailParsingFailed
It was not possible to parse a thumbnail track. The message of the according SourceEvent.Warning provides more information.
SubtitleLoadingFailedSubtitleLoadingFailed
It was not possible to load a subtitle track due to an invalid URI or server communication failure. The message of the according SourceEvent.Warning provides more information.
SubtitleParsingFailedSubtitleParsingFailed
It was not possible to parse a subtitle track. The message of the according SourceEvent.Warning provides more information.
IncorrectApiUsageIncorrectApiUsage
The current state does not allow a specific API call.
MetadataParsingFailedMetadataParsingFailed
It was not possible to parse some metadata.
MediaFilteredMediaFiltered
A media track or quality was filtered out of the playback session according to the configured MediaFilter. The message of the according SourceEvent.Warning provides more information.
FeatureContextuallyUnsupportedFeatureContextuallyUnsupported
A feature is not supported in the current context. The message of the according SourceEvent.Warning provides more information.
DrmGeneralDrmGeneral
A general source warning indicating that the current DRM session failed and no more specific warning code could be determined. The player may be able to recover from this error and continue playback.
DrmRequestFailedDrmRequestFailed
The response to the DRM license request failed with an invalid HTTP response code. The player may be able to recover from this error and continue playback.
DrmSecurityLevelEnforcementFailedDrmSecurityLevelEnforcementFailed
It was not possible to setup the configured security level. The message of the associated SourceEvent.Warning provides more information.
DrmKeyExpiredDrmKeyExpired
The offline DRM license key has expired and requires renewal. The player may be able to recover from this error and continue playback.

Types

NameSummary
Companionobject Companion

Properties

NameSummary
entriesval entries: EnumEntries<SourceWarningCode>
Returns a representation of an immutable list of all enum entries, in the order they're declared.
valueopen override val value: Int
The raw code value associated with the deficiency.

Functions

NameSummary
valueOffun valueOf(value: String): SourceWarningCode
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.)
valuesfun values(): Array<SourceWarningCode>
Returns an array containing the constants of this enum type, in the order they're declared.