Package com.jwplayer.pub.api.errors
Class ErrorCodes
- java.lang.Object
-
- com.jwplayer.pub.api.errors.ErrorCodes
-
public class ErrorCodes extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static intASSET_DATA_SOURCE_ERRORThrown when an IOException is encountered reading a local asset.static intASYNC_PLAYLIST_ITEM_REJECTEDReached the end of the playlist while skipping items via async callback.static intAUDIO_DECODER_ERRORThrown when an audio decoder error occurs.static intAUDIOSINK_CONFIG_ERRORThrown when a failure occurs configuring the sink.static intAUDIOSINK_INIT_ERRORThrown when a failure occurs initializing the sink.static intAUDIOSINK_WRITE_ERRORThrown when a failure occurs writing to the sink.static intBEHIND_LIVE_WINDOW_ERRORThrown when a live playback falls behind the available media window.static intCLEARTEXT_NOT_ALLOWED_ERRORThrown when cleartext HTTP traffic is not permitted.static intCONTENT_DATA_SOURCE_ERRORThrown when an IOException is encountered reading from a content URI.static intDASH_MANIFEST_STALE_ERRORThrown when a live playback's manifest is stale and a new manifest could not be loaded.static intDECODER_INIT_ERRORThrown when a failure occurs instantiating a decoder.static intDECODER_INIT_ERROR_UNSUPPORTEDThrown when a failure occurs instantiating a decoder.static intDECODER_QUERY_ERRORThrown when an error occurs querying the device for its underlying media capabilities.static intDRM_CRYPTO_ERRORThrown when a crypto error occurs while queueing a secure input buffer.static intDRM_KEY_EXPIRED_ERRORThrown when the drm keys loaded into an open session expire.static intDRM_MISSING_SCHEME_DATA_ERRORSignals that the DrmInitData does not contain scheme data for the required UUID.static intDRM_SESSION_ERRORWraps the throwable which is the cause of the error state.static intDRM_UNSUPPORTED_ERRORThrown when the requested DRM scheme is not supported.static intERROR_COMPLETING_SETUPAn exception occurred while completing player setup.static intERROR_ENTERING_PIP_MODE_FAILEDPip error for when entering pip mode failedstatic intERROR_LOADING_PLAYLIST_ITEMAn error occurred when switching playlist items.static intERROR_LOADING_PROVIDERBetween playlist items, the required provider could not be loaded.static intERROR_PIP_ACTIVITY_NOT_REGISTEREDPip error for when activity is not registeredstatic intERROR_PIP_ASPECT_RATIO_OUTSIDE_LIMITSPip error for when the set aspect ratio is not within limitsstatic intERROR_PIP_MODE_ALREADY_ENABLEDPip error for when we attempt to enter pip mode multiple timesstatic intERROR_PIP_UNAVAILABLE_DUE_TO_APIError for when Pip can't be registered due to low API levelstatic intERROR_PIP_UNSUPPORTEDDefault Pip unsupported errorstatic intERROR_PLAYLIST_ITEM_MISSING_SOURCEThe current playlist item has no source media.static intFILE_DATA_SOURCE_ERRORThrown when a FileDataSource encounters an error reading a file.static intGENERIC_DECODER_ERRORThrown when a failure occurs in the decoder.static intGENERIC_HTTP_DATA_SOURCE_ERRORThrown when an error is encountered when trying to read from a HttpDataSource.static intGENERIC_PLAYBACK_ERRORThrown when a non-recoverable playback failure occurs.static intHLS_PLAYLIST_RESET_ERRORThrown when the media sequence of a new snapshot indicates the server has reset.static intHLS_PLAYLIST_STUCK_ERRORThrown when a playlist is considered to be stuck due to a server side error.static intILLEGAL_ARGUMENT_ERRORThrown to indicate that a method has been passed an illegal or inappropriate argumentstatic intILLEGAL_MERGE_ERRORThrown when a MergingMediaSource cannot merge its sources.static intILLEGAL_SEEK_POSITION_ERRORThrown when an attempt is made to seek to a position that does not exist in the player's Timeline.static intINPUT_FORMAT_ERRORThrown if the input format was not recognized.static intINVALID_AUDIO_TIMESTAMP_ERRORThrown when the audio track has provided a spurious timestampstatic intINVALID_CONTENT_TYPE_ERRORThrown when the content type is invalid.static intIO_ERRORSignals that an I/O exception of some sort has occurred.static intPARSER_ERRORThrown when an error occurs parsing media data and metadata.static intRAW_DATA_SOURCE_ERRORThrown when an IOException is encountered reading from a raw resource.static intRELATED_HTTP_4XX_CODEAn HTTP status error occurred.static intRELATED_HTTP_5XX_CODEstatic intRELATED_JSON_MALFORMEDPlaylist was a malformed JSON file.static intRELATED_MALFORMED_URLThis is usually due to a malformed URL.static intRELATED_TIME_OUTRequest exceeded timeout argument or default of 60 seconds.static intRELATED_XML_MALFORMEDPlaylist was a malformed XML file.static intRELATED_XML_PLAYLIST_EMPTYPlaylist XML was empty.static intSAMPLE_MAPPING_ERRORThrown when it is not possible to map a TrackGroup to a SampleQueue.static intSETUP_ERROR_ASYNC_SKIPPED_PLAYLISTSetup failed because all items in the playlist were skipped by the async callback.static intSETUP_ERROR_LOADING_CORESetup failed because a core module failed to load.static intSETUP_ERROR_LOADING_PROVIDERSetup failed because the initial provider failed to load.static intSETUP_ERROR_TIMEOUTSetup failed because it took longer than 30 seconds.static intSETUP_ERROR_UNKNOWNBase code for a setup failure.static intSS_MISSING_FIELD_ERRORThrown if a required field is missing.static intSUBTITLE_DECODE_ERRORThrown when an error occurs decoding subtitle data.static intUNHANDLED_AUDIO_FORMAT_ERRORException thrown when a processor can't be configured for a given input audio format.
-
Constructor Summary
Constructors Constructor Description ErrorCodes()
-
-
-
Field Detail
-
ILLEGAL_ARGUMENT_ERROR
public static final int ILLEGAL_ARGUMENT_ERROR
Thrown to indicate that a method has been passed an illegal or inappropriate argument- See Also:
- Constant Field Values
-
IO_ERROR
public static final int IO_ERROR
Signals that an I/O exception of some sort has occurred.- See Also:
- Constant Field Values
-
GENERIC_PLAYBACK_ERROR
public static final int GENERIC_PLAYBACK_ERROR
Thrown when a non-recoverable playback failure occurs.- See Also:
- Constant Field Values
-
ILLEGAL_SEEK_POSITION_ERROR
public static final int ILLEGAL_SEEK_POSITION_ERROR
Thrown when an attempt is made to seek to a position that does not exist in the player's Timeline.- See Also:
- Constant Field Values
-
PARSER_ERROR
public static final int PARSER_ERROR
Thrown when an error occurs parsing media data and metadata.- See Also:
- Constant Field Values
-
GENERIC_HTTP_DATA_SOURCE_ERROR
public static final int GENERIC_HTTP_DATA_SOURCE_ERROR
Thrown when an error is encountered when trying to read from a HttpDataSource.- See Also:
- Constant Field Values
-
CLEARTEXT_NOT_ALLOWED_ERROR
public static final int CLEARTEXT_NOT_ALLOWED_ERROR
Thrown when cleartext HTTP traffic is not permitted.- See Also:
- Constant Field Values
-
INVALID_CONTENT_TYPE_ERROR
public static final int INVALID_CONTENT_TYPE_ERROR
Thrown when the content type is invalid.- See Also:
- Constant Field Values
-
ASSET_DATA_SOURCE_ERROR
public static final int ASSET_DATA_SOURCE_ERROR
Thrown when an IOException is encountered reading a local asset.- See Also:
- Constant Field Values
-
CONTENT_DATA_SOURCE_ERROR
public static final int CONTENT_DATA_SOURCE_ERROR
Thrown when an IOException is encountered reading from a content URI.- See Also:
- Constant Field Values
-
FILE_DATA_SOURCE_ERROR
public static final int FILE_DATA_SOURCE_ERROR
Thrown when a FileDataSource encounters an error reading a file.- See Also:
- Constant Field Values
-
RAW_DATA_SOURCE_ERROR
public static final int RAW_DATA_SOURCE_ERROR
Thrown when an IOException is encountered reading from a raw resource.- See Also:
- Constant Field Values
-
GENERIC_DECODER_ERROR
public static final int GENERIC_DECODER_ERROR
Thrown when a failure occurs in the decoder.- See Also:
- Constant Field Values
-
DECODER_INIT_ERROR
public static final int DECODER_INIT_ERROR
Thrown when a failure occurs instantiating a decoder.- See Also:
- Constant Field Values
-
DECODER_INIT_ERROR_UNSUPPORTED
public static final int DECODER_INIT_ERROR_UNSUPPORTED
Thrown when a failure occurs instantiating a decoder.- See Also:
- Constant Field Values
-
DECODER_QUERY_ERROR
public static final int DECODER_QUERY_ERROR
Thrown when an error occurs querying the device for its underlying media capabilities.- See Also:
- Constant Field Values
-
SUBTITLE_DECODE_ERROR
public static final int SUBTITLE_DECODE_ERROR
Thrown when an error occurs decoding subtitle data.- See Also:
- Constant Field Values
-
BEHIND_LIVE_WINDOW_ERROR
public static final int BEHIND_LIVE_WINDOW_ERROR
Thrown when a live playback falls behind the available media window.- See Also:
- Constant Field Values
-
ILLEGAL_MERGE_ERROR
public static final int ILLEGAL_MERGE_ERROR
Thrown when a MergingMediaSource cannot merge its sources.- See Also:
- Constant Field Values
-
INPUT_FORMAT_ERROR
public static final int INPUT_FORMAT_ERROR
Thrown if the input format was not recognized.- See Also:
- Constant Field Values
-
AUDIO_DECODER_ERROR
public static final int AUDIO_DECODER_ERROR
Thrown when an audio decoder error occurs.- See Also:
- Constant Field Values
-
UNHANDLED_AUDIO_FORMAT_ERROR
public static final int UNHANDLED_AUDIO_FORMAT_ERROR
Exception thrown when a processor can't be configured for a given input audio format.- See Also:
- Constant Field Values
-
AUDIOSINK_CONFIG_ERROR
public static final int AUDIOSINK_CONFIG_ERROR
Thrown when a failure occurs configuring the sink.- See Also:
- Constant Field Values
-
AUDIOSINK_INIT_ERROR
public static final int AUDIOSINK_INIT_ERROR
Thrown when a failure occurs initializing the sink.- See Also:
- Constant Field Values
-
AUDIOSINK_WRITE_ERROR
public static final int AUDIOSINK_WRITE_ERROR
Thrown when a failure occurs writing to the sink.- See Also:
- Constant Field Values
-
INVALID_AUDIO_TIMESTAMP_ERROR
public static final int INVALID_AUDIO_TIMESTAMP_ERROR
Thrown when the audio track has provided a spurious timestamp- See Also:
- Constant Field Values
-
SAMPLE_MAPPING_ERROR
public static final int SAMPLE_MAPPING_ERROR
Thrown when it is not possible to map a TrackGroup to a SampleQueue.- See Also:
- Constant Field Values
-
HLS_PLAYLIST_RESET_ERROR
public static final int HLS_PLAYLIST_RESET_ERROR
Thrown when the media sequence of a new snapshot indicates the server has reset.- See Also:
- Constant Field Values
-
HLS_PLAYLIST_STUCK_ERROR
public static final int HLS_PLAYLIST_STUCK_ERROR
Thrown when a playlist is considered to be stuck due to a server side error.- See Also:
- Constant Field Values
-
SS_MISSING_FIELD_ERROR
public static final int SS_MISSING_FIELD_ERROR
Thrown if a required field is missing.- See Also:
- Constant Field Values
-
DASH_MANIFEST_STALE_ERROR
public static final int DASH_MANIFEST_STALE_ERROR
Thrown when a live playback's manifest is stale and a new manifest could not be loaded.- See Also:
- Constant Field Values
-
DRM_MISSING_SCHEME_DATA_ERROR
public static final int DRM_MISSING_SCHEME_DATA_ERROR
Signals that the DrmInitData does not contain scheme data for the required UUID.- See Also:
- Constant Field Values
-
DRM_SESSION_ERROR
public static final int DRM_SESSION_ERROR
Wraps the throwable which is the cause of the error state.- See Also:
- Constant Field Values
-
DRM_KEY_EXPIRED_ERROR
public static final int DRM_KEY_EXPIRED_ERROR
Thrown when the drm keys loaded into an open session expire.- See Also:
- Constant Field Values
-
DRM_UNSUPPORTED_ERROR
public static final int DRM_UNSUPPORTED_ERROR
Thrown when the requested DRM scheme is not supported.- See Also:
- Constant Field Values
-
DRM_CRYPTO_ERROR
public static final int DRM_CRYPTO_ERROR
Thrown when a crypto error occurs while queueing a secure input buffer.- See Also:
- Constant Field Values
-
ASYNC_PLAYLIST_ITEM_REJECTED
public static final int ASYNC_PLAYLIST_ITEM_REJECTED
Reached the end of the playlist while skipping items via async callback.- See Also:
- Constant Field Values
-
SETUP_ERROR_UNKNOWN
public static final int SETUP_ERROR_UNKNOWN
Base code for a setup failure.- See Also:
- Constant Field Values
-
SETUP_ERROR_TIMEOUT
public static final int SETUP_ERROR_TIMEOUT
Setup failed because it took longer than 30 seconds.- See Also:
- Constant Field Values
-
SETUP_ERROR_LOADING_CORE
public static final int SETUP_ERROR_LOADING_CORE
Setup failed because a core module failed to load.- See Also:
- Constant Field Values
-
SETUP_ERROR_ASYNC_SKIPPED_PLAYLIST
public static final int SETUP_ERROR_ASYNC_SKIPPED_PLAYLIST
Setup failed because all items in the playlist were skipped by the async callback.- See Also:
- Constant Field Values
-
ERROR_COMPLETING_SETUP
public static final int ERROR_COMPLETING_SETUP
An exception occurred while completing player setup.- See Also:
- Constant Field Values
-
SETUP_ERROR_LOADING_PROVIDER
public static final int SETUP_ERROR_LOADING_PROVIDER
Setup failed because the initial provider failed to load.- See Also:
- Constant Field Values
-
ERROR_LOADING_PLAYLIST_ITEM
public static final int ERROR_LOADING_PLAYLIST_ITEM
An error occurred when switching playlist items.- See Also:
- Constant Field Values
-
ERROR_PLAYLIST_ITEM_MISSING_SOURCE
public static final int ERROR_PLAYLIST_ITEM_MISSING_SOURCE
The current playlist item has no source media.- See Also:
- Constant Field Values
-
ERROR_LOADING_PROVIDER
public static final int ERROR_LOADING_PROVIDER
Between playlist items, the required provider could not be loaded.- See Also:
- Constant Field Values
-
ERROR_PIP_UNSUPPORTED
public static final int ERROR_PIP_UNSUPPORTED
Default Pip unsupported error- See Also:
- Constant Field Values
-
ERROR_PIP_UNAVAILABLE_DUE_TO_API
public static final int ERROR_PIP_UNAVAILABLE_DUE_TO_API
Error for when Pip can't be registered due to low API level- See Also:
- Constant Field Values
-
ERROR_PIP_ACTIVITY_NOT_REGISTERED
public static final int ERROR_PIP_ACTIVITY_NOT_REGISTERED
Pip error for when activity is not registered- See Also:
- Constant Field Values
-
ERROR_ENTERING_PIP_MODE_FAILED
public static final int ERROR_ENTERING_PIP_MODE_FAILED
Pip error for when entering pip mode failed- See Also:
- Constant Field Values
-
ERROR_PIP_ASPECT_RATIO_OUTSIDE_LIMITS
public static final int ERROR_PIP_ASPECT_RATIO_OUTSIDE_LIMITS
Pip error for when the set aspect ratio is not within limits- See Also:
- Constant Field Values
-
ERROR_PIP_MODE_ALREADY_ENABLED
public static final int ERROR_PIP_MODE_ALREADY_ENABLED
Pip error for when we attempt to enter pip mode multiple times- See Also:
- Constant Field Values
-
RELATED_TIME_OUT
public static final int RELATED_TIME_OUT
Request exceeded timeout argument or default of 60 seconds.- See Also:
- Constant Field Values
-
RELATED_MALFORMED_URL
public static final int RELATED_MALFORMED_URL
This is usually due to a malformed URL.- See Also:
- Constant Field Values
-
RELATED_HTTP_4XX_CODE
public static final int RELATED_HTTP_4XX_CODE
An HTTP status error occurred.- See Also:
- Constant Field Values
-
RELATED_HTTP_5XX_CODE
public static final int RELATED_HTTP_5XX_CODE
- See Also:
- Constant Field Values
-
RELATED_XML_MALFORMED
public static final int RELATED_XML_MALFORMED
Playlist was a malformed XML file.- See Also:
- Constant Field Values
-
RELATED_XML_PLAYLIST_EMPTY
public static final int RELATED_XML_PLAYLIST_EMPTY
Playlist XML was empty.- See Also:
- Constant Field Values
-
RELATED_JSON_MALFORMED
public static final int RELATED_JSON_MALFORMED
Playlist was a malformed JSON file.- See Also:
- Constant Field Values
-
-