Enum ErrorCode
-
- All Implemented Interfaces:
public enum ErrorCode
The error codes of THEOplayerException.
-
-
Field Summary
Fields Modifier and Type Field Description public final int
id
-
Enum Constant Summary
Enum Constants Enum Constant Description CONFIGURATION_ERROR
The configuration provided is invalid.
LICENSE_ERROR
The license provided is invalid.
LICENSE_INVALID_DOMAIN
The provided license does not contain the current domain.
LICENSE_INVALID_SOURCE
The current source is not allowed in the license provided.
LICENSE_EXPIRED
The license has expired.
LICENSE_INVALID_FEATURE
The provided license does not contain the necessary feature.
SOURCE_INVALID
The source provided is not valid.
SOURCE_NOT_SUPPORTED
The provided source is not supported.
MANIFEST_LOAD_ERROR
The manifest could not be loaded.
MANIFEST_CORS_ERROR
An Error related to Cross-origin resource sharing (CORS).
- see https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS.
MANIFEST_PARSE_ERROR
The manifest could not be parsed.
MEDIA_NOT_SUPPORTED
The media is not supported.
MEDIA_LOAD_ERROR
The media could not be loaded.
MEDIA_DECODE_ERROR
The media could not be decoded.
MEDIA_AVPLAYER_ERROR
An error related to playback through AVPlayer in the iOS or tvOS SDK.
MEDIA_ABORTED
The fetching process for the media resource was aborted by the user agent at the user's request.
NETWORK_ERROR
An error related to network has been detected.
NETWORK_TIMEOUT
The network has timed out.
CONTENT_PROTECTION_ERROR
An error related to the content protection.
CONTENT_PROTECTION_NOT_SUPPORTED
The DRM provided is not supported on this platform.
CONTENT_PROTECTION_CONFIGURATION_MISSING
The media is DRM protected, but no content protection configuration was provided.
CONTENT_PROTECTION_CONFIGURATION_INVALID
The content protection configuration is invalid.
CONTENT_PROTECTION_INITIALIZATION_INVALID
The DRM initialization data could not be parsed.
CONTENT_PROTECTION_CERTIFICATE_ERROR
The content protection's certificate could not be loaded.
CONTENT_PROTECTION_CERTIFICATE_INVALID
The content protection's certificate is invalid.
CONTENT_PROTECTION_LICENSE_ERROR
The content protection's license could not be loaded.
CONTENT_PROTECTION_LICENSE_INVALID
The content protection's license is invalid.
CONTENT_PROTECTION_KEY_EXPIRED
The content protection's key has expired.
CONTENT_PROTECTION_KEY_MISSING
The content protection's key is missing.
CONTENT_PROTECTION_OUTPUT_RESTRICTED
All qualities require HDCP, but the current output does not fulfill HDCP requirements.
CONTENT_PROTECTION_INTERNAL_ERROR
Something went wrong in the internal logic of the content protection system.
SUBTITLE_LOAD_ERROR
Loading subtitles has failed.
SUBTITLE_CORS_ERROR
Loading subtitles has failed due to CORS.
- see https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS.
SUBTITLE_PARSE_ERROR
Parsing subtitles has failed.
VR_PLATFORM_UNSUPPORTED
This error occurs when VR is not supported on the current platform.
VR_PRESENTATION_ERROR
Changing the presentation to VR was not possible.
AD_ERROR
Something went wrong with an ad.
AD_BLOCKER_DETECTED
An ad blocker has been detected.
FULLSCREEN_ERROR
Changing the presentation to fullscreen was not possible.
CACHE_SOURCE_ERROR
Something went wrong while caching a source.
CACHE_CONTENT_PROTECTION_ERROR
Something went wrong while caching content protection's license.
THEO_LIVE_UNKNOWN_ERROR
Something went wrong with THEOlive playback.
THEO_LIVE_CHANNEL_NOT_FOUND
The THEOlive channel could not be played because it was not found. This can be because it was never created, it has been deleted or locked.
THEO_LIVE_END_OF_DEMO
The THEOlive channel is a demo channel and the demo window has expired.
THEO_LIVE_ANALYTICS_ERROR
A fatal error occurred regarding THEOlive analytics.
-
Method Summary
Modifier and Type Method Description ErrorCategory
getCategory()
The ErrorCategory that the ErrorCode belongs. static ErrorCode
fromId(int id)
The ErrorCode from the identifier. static Array<ErrorCode>
values()
Returns an array containing the constants of this enum type, in the order they're declared. static ErrorCode
valueOf(String name)
Returns the enum constant of this type with the specified name. int
getId()
The numeric identifier of the error code. -
-
Method Detail
-
getCategory
@NonNull() ErrorCategory getCategory()
The ErrorCategory that the ErrorCode belongs.
- Returns:
The ErrorCategory. (NonNull)
-
fromId
@NonNull() static ErrorCode fromId(int id)
The ErrorCode from the identifier.
- Parameters:
id
- The numeric identifier of the error code.- Returns:
The ErrorCode from the identifier. (NonNull)
-
values
static Array<ErrorCode> values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants.
- Returns:
an array containing the constants of this enum type, in the order they're declared
-
valueOf
static ErrorCode valueOf(String name)
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.)
- Returns:
the enum constant with the specified name
-
getId
int getId()
The numeric identifier of the error code.
- Returns:
The identifier.
-
-
-
-