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