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
| General | General 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. |
| UnsupportedCodecOrFormat | UnsupportedCodecOrFormat A track with an unsupported codec or format was discovered. The message of the according SourceEvent.Warning provides more information. |
| ThumbnailLoadingFailed | ThumbnailLoadingFailed 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. |
| ThumbnailParsingFailed | ThumbnailParsingFailed It was not possible to parse a thumbnail track. The message of the according SourceEvent.Warning provides more information. |
| SubtitleLoadingFailed | SubtitleLoadingFailed 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. |
| SubtitleParsingFailed | SubtitleParsingFailed It was not possible to parse a subtitle track. The message of the according SourceEvent.Warning provides more information. |
| IncorrectApiUsage | IncorrectApiUsage The current state does not allow a specific API call. |
| MetadataParsingFailed | MetadataParsingFailed It was not possible to parse some metadata. |
| MediaFiltered | MediaFiltered 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. |
| FeatureContextuallyUnsupported | FeatureContextuallyUnsupported A feature is not supported in the current context. The message of the according SourceEvent.Warning provides more information. |
| DrmGeneral | DrmGeneral 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. |
| DrmRequestFailed | DrmRequestFailed 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. |
| DrmSecurityLevelEnforcementFailed | DrmSecurityLevelEnforcementFailed It was not possible to setup the configured security level. The message of the associated SourceEvent.Warning provides more information. |
| DrmKeyExpired | DrmKeyExpired The offline DRM license key has expired and requires renewal. The player may be able to recover from this error and continue playback. |
Types
| Name | Summary |
|---|---|
| Companion | object Companion |
Properties
| Name | Summary |
|---|---|
| entries | val entries: EnumEntries<SourceWarningCode> 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): 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.) |
| values | fun values(): Array<SourceWarningCode> Returns an array containing the constants of this enum type, in the order they're declared. |