Enum ErrorCode
-
- All Implemented Interfaces:
public enum ErrorCodeThe error codes of THEOplayerException.
-
-
Field Summary
Fields Modifier and Type Field Description public final intid
-
Enum Constant Summary
Enum Constants Enum Constant Description CONFIGURATION_ERRORThe configuration provided is invalid.
LICENSE_ERRORThe license provided is invalid.
LICENSE_INVALID_DOMAINThe provided license does not contain the current domain.
LICENSE_INVALID_SOURCEThe current source is not allowed in the license provided.
LICENSE_EXPIREDThe license has expired.
LICENSE_INVALID_FEATUREThe provided license does not contain the necessary feature.
SOURCE_INVALIDThe source provided is not valid.
SOURCE_NOT_SUPPORTEDThe provided source is not supported.
MANIFEST_LOAD_ERRORThe manifest could not be loaded.
MANIFEST_CORS_ERRORAn Error related to Cross-origin resource sharing (CORS).
- see https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS.
MANIFEST_PARSE_ERRORThe manifest could not be parsed.
MEDIA_NOT_SUPPORTEDThe media is not supported.
MEDIA_LOAD_ERRORThe media could not be loaded.
MEDIA_DECODE_ERRORThe media could not be decoded.
MEDIA_AVPLAYER_ERRORAn error related to playback through AVPlayer in the iOS or tvOS SDK.
MEDIA_ABORTEDThe fetching process for the media resource was aborted by the user agent at the user's request.
NETWORK_ERRORAn error related to network has been detected.
NETWORK_TIMEOUTThe network has timed out.
CONTENT_PROTECTION_ERRORAn error related to the content protection.
CONTENT_PROTECTION_NOT_SUPPORTEDThe DRM provided is not supported on this platform.
CONTENT_PROTECTION_CONFIGURATION_MISSINGThe media is DRM protected, but no content protection configuration was provided.
CONTENT_PROTECTION_CONFIGURATION_INVALIDThe content protection configuration is invalid.
CONTENT_PROTECTION_INITIALIZATION_INVALIDThe DRM initialization data could not be parsed.
CONTENT_PROTECTION_CERTIFICATE_ERRORThe content protection's certificate could not be loaded.
CONTENT_PROTECTION_CERTIFICATE_INVALIDThe content protection's certificate is invalid.
CONTENT_PROTECTION_LICENSE_ERRORThe content protection's license could not be loaded.
CONTENT_PROTECTION_LICENSE_INVALIDThe content protection's license is invalid.
CONTENT_PROTECTION_KEY_EXPIREDThe content protection's key has expired.
CONTENT_PROTECTION_KEY_MISSINGThe content protection's key is missing.
CONTENT_PROTECTION_OUTPUT_RESTRICTEDAll qualities require HDCP, but the current output does not fulfill HDCP requirements.
CONTENT_PROTECTION_INTERNAL_ERRORSomething went wrong in the internal logic of the content protection system.
SUBTITLE_LOAD_ERRORLoading subtitles has failed.
SUBTITLE_CORS_ERRORLoading subtitles has failed due to CORS.
- see https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS.
SUBTITLE_PARSE_ERRORParsing subtitles has failed.
VR_PLATFORM_UNSUPPORTEDThis error occurs when VR is not supported on the current platform.
VR_PRESENTATION_ERRORChanging the presentation to VR was not possible.
AD_ERRORSomething went wrong with an ad.
AD_BLOCKER_DETECTEDAn ad blocker has been detected.
FULLSCREEN_ERRORChanging the presentation to fullscreen was not possible.
CACHE_SOURCE_ERRORSomething went wrong while caching a source.
CACHE_CONTENT_PROTECTION_ERRORSomething went wrong while caching content protection's license.
THEO_LIVE_UNKNOWN_ERRORSomething went wrong with THEOlive playback.
THEO_LIVE_CHANNEL_NOT_FOUNDThe 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_DEMOThe THEOlive channel is a demo channel and the demo window has expired.
THEO_LIVE_ANALYTICS_ERRORA fatal error occurred regarding THEOlive analytics.
-
Method Summary
Modifier and Type Method Description ErrorCategorygetCategory()The ErrorCategory that the ErrorCode belongs. static ErrorCodefromId(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 ErrorCodevalueOf(String name)Returns the enum constant of this type with the specified name. intgetId()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.
-
-
-
-