Package com.jwplayer.pub.api.errors
Class ErrorCodes
java.lang.Object
com.jwplayer.pub.api.errors.ErrorCodes
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
Thrown when an IOException is encountered reading a local asset.static final int
Reached the end of the playlist while skipping items via async callback.static final int
Thrown when an audio decoder error occurs.static final int
Thrown when a failure occurs configuring the sink.static final int
Thrown when a failure occurs initializing the sink.static final int
Thrown when a failure occurs writing to the sink.static final int
Thrown when a live playback falls behind the available media window.static final int
Thrown when cleartext HTTP traffic is not permitted.static final int
Thrown when an IOException is encountered reading from a content URI.static final int
Thrown when a live playback's manifest is stale and a new manifest could not be loaded.static final int
Thrown when a failure occurs instantiating a decoder.static final int
Thrown when a failure occurs instantiating a decoder.static final int
Thrown when an error occurs querying the device for its underlying media capabilities.static final int
Thrown when a crypto error occurs while queueing a secure input buffer.static final int
Thrown when the drm keys loaded into an open session expire.static final int
Signals that the DrmInitData does not contain scheme data for the required UUID.static final int
Wraps the throwable which is the cause of the error state.static final int
Thrown when the requested DRM scheme is not supported.static final int
An exception occurred while completing player setup.static final int
Pip error for when entering pip mode failedstatic final int
An error occurred when switching playlist items.static final int
Between playlist items, the required provider could not be loaded.static final int
Pip error for when activity is not registeredstatic final int
Pip error for when the set aspect ratio is not within limitsstatic final int
Pip error for when we attempt to enter pip mode multiple timesstatic final int
Error for when Pip can't be registered due to low API levelstatic final int
Default Pip unsupported errorstatic final int
The current playlist item has no source media.static final int
Thrown when a FileDataSource encounters an error reading a file.static final int
Thrown when a failure occurs in the decoder.static final int
Thrown when an error is encountered when trying to read from a HttpDataSource.static final int
Thrown when a non-recoverable playback failure occurs.static final int
Thrown when the media sequence of a new snapshot indicates the server has reset.static final int
Thrown when a playlist is considered to be stuck due to a server side error.static final int
Thrown to indicate that a method has been passed an illegal or inappropriate argumentstatic final int
Thrown when a MergingMediaSource cannot merge its sources.static final int
Thrown when an attempt is made to seek to a position that does not exist in the player's Timeline.static final int
Thrown if the input format was not recognized.static final int
Thrown when the audio track has provided a spurious timestampstatic final int
Thrown when the content type is invalid.static final int
Signals that an I/O exception of some sort has occurred.static final int
Thrown when an error occurs parsing media data and metadata.static final int
Thrown when an IOException is encountered reading from a raw resource.static final int
An HTTP status error occurred.static final int
static final int
Playlist was a malformed JSON file.static final int
This is usually due to a malformed URL.static final int
Request exceeded timeout argument or default of 60 seconds.static final int
Playlist was a malformed XML file.static final int
Playlist XML was empty.static final int
Thrown when it is not possible to map a TrackGroup to a SampleQueue.static final int
Setup failed because all items in the playlist were skipped by the async callback.static final int
Setup failed because a core module failed to load.static final int
Setup failed because the initial provider failed to load.static final int
Setup failed because it took longer than 30 seconds.static final int
Base code for a setup failure.static final int
Thrown if a required field is missing.static final int
Thrown when an error occurs decoding subtitle data.static final int
Exception thrown when a processor can't be configured for a given input audio format. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
ILLEGAL_ARGUMENT_ERROR
public static final int ILLEGAL_ARGUMENT_ERRORThrown to indicate that a method has been passed an illegal or inappropriate argument- See Also:
-
IO_ERROR
public static final int IO_ERRORSignals that an I/O exception of some sort has occurred.- See Also:
-
GENERIC_PLAYBACK_ERROR
public static final int GENERIC_PLAYBACK_ERRORThrown when a non-recoverable playback failure occurs.- See Also:
-
ILLEGAL_SEEK_POSITION_ERROR
public static final int ILLEGAL_SEEK_POSITION_ERRORThrown when an attempt is made to seek to a position that does not exist in the player's Timeline.- See Also:
-
PARSER_ERROR
public static final int PARSER_ERRORThrown when an error occurs parsing media data and metadata.- See Also:
-
GENERIC_HTTP_DATA_SOURCE_ERROR
public static final int GENERIC_HTTP_DATA_SOURCE_ERRORThrown when an error is encountered when trying to read from a HttpDataSource.- See Also:
-
CLEARTEXT_NOT_ALLOWED_ERROR
public static final int CLEARTEXT_NOT_ALLOWED_ERRORThrown when cleartext HTTP traffic is not permitted.- See Also:
-
INVALID_CONTENT_TYPE_ERROR
public static final int INVALID_CONTENT_TYPE_ERRORThrown when the content type is invalid.- See Also:
-
ASSET_DATA_SOURCE_ERROR
public static final int ASSET_DATA_SOURCE_ERRORThrown when an IOException is encountered reading a local asset.- See Also:
-
CONTENT_DATA_SOURCE_ERROR
public static final int CONTENT_DATA_SOURCE_ERRORThrown when an IOException is encountered reading from a content URI.- See Also:
-
FILE_DATA_SOURCE_ERROR
public static final int FILE_DATA_SOURCE_ERRORThrown when a FileDataSource encounters an error reading a file.- See Also:
-
RAW_DATA_SOURCE_ERROR
public static final int RAW_DATA_SOURCE_ERRORThrown when an IOException is encountered reading from a raw resource.- See Also:
-
GENERIC_DECODER_ERROR
public static final int GENERIC_DECODER_ERRORThrown when a failure occurs in the decoder.- See Also:
-
DECODER_INIT_ERROR
public static final int DECODER_INIT_ERRORThrown when a failure occurs instantiating a decoder.- See Also:
-
DECODER_INIT_ERROR_UNSUPPORTED
public static final int DECODER_INIT_ERROR_UNSUPPORTEDThrown when a failure occurs instantiating a decoder.- See Also:
-
DECODER_QUERY_ERROR
public static final int DECODER_QUERY_ERRORThrown when an error occurs querying the device for its underlying media capabilities.- See Also:
-
SUBTITLE_DECODE_ERROR
public static final int SUBTITLE_DECODE_ERRORThrown when an error occurs decoding subtitle data.- See Also:
-
BEHIND_LIVE_WINDOW_ERROR
public static final int BEHIND_LIVE_WINDOW_ERRORThrown when a live playback falls behind the available media window.- See Also:
-
ILLEGAL_MERGE_ERROR
public static final int ILLEGAL_MERGE_ERRORThrown when a MergingMediaSource cannot merge its sources.- See Also:
-
INPUT_FORMAT_ERROR
public static final int INPUT_FORMAT_ERRORThrown if the input format was not recognized.- See Also:
-
AUDIO_DECODER_ERROR
public static final int AUDIO_DECODER_ERRORThrown when an audio decoder error occurs.- See Also:
-
UNHANDLED_AUDIO_FORMAT_ERROR
public static final int UNHANDLED_AUDIO_FORMAT_ERRORException thrown when a processor can't be configured for a given input audio format.- See Also:
-
AUDIOSINK_CONFIG_ERROR
public static final int AUDIOSINK_CONFIG_ERRORThrown when a failure occurs configuring the sink.- See Also:
-
AUDIOSINK_INIT_ERROR
public static final int AUDIOSINK_INIT_ERRORThrown when a failure occurs initializing the sink.- See Also:
-
AUDIOSINK_WRITE_ERROR
public static final int AUDIOSINK_WRITE_ERRORThrown when a failure occurs writing to the sink.- See Also:
-
INVALID_AUDIO_TIMESTAMP_ERROR
public static final int INVALID_AUDIO_TIMESTAMP_ERRORThrown when the audio track has provided a spurious timestamp- See Also:
-
SAMPLE_MAPPING_ERROR
public static final int SAMPLE_MAPPING_ERRORThrown when it is not possible to map a TrackGroup to a SampleQueue.- See Also:
-
HLS_PLAYLIST_RESET_ERROR
public static final int HLS_PLAYLIST_RESET_ERRORThrown when the media sequence of a new snapshot indicates the server has reset.- See Also:
-
HLS_PLAYLIST_STUCK_ERROR
public static final int HLS_PLAYLIST_STUCK_ERRORThrown when a playlist is considered to be stuck due to a server side error.- See Also:
-
SS_MISSING_FIELD_ERROR
public static final int SS_MISSING_FIELD_ERRORThrown if a required field is missing.- See Also:
-
DASH_MANIFEST_STALE_ERROR
public static final int DASH_MANIFEST_STALE_ERRORThrown when a live playback's manifest is stale and a new manifest could not be loaded.- See Also:
-
DRM_MISSING_SCHEME_DATA_ERROR
public static final int DRM_MISSING_SCHEME_DATA_ERRORSignals that the DrmInitData does not contain scheme data for the required UUID.- See Also:
-
DRM_SESSION_ERROR
public static final int DRM_SESSION_ERRORWraps the throwable which is the cause of the error state.- See Also:
-
DRM_KEY_EXPIRED_ERROR
public static final int DRM_KEY_EXPIRED_ERRORThrown when the drm keys loaded into an open session expire.- See Also:
-
DRM_UNSUPPORTED_ERROR
public static final int DRM_UNSUPPORTED_ERRORThrown when the requested DRM scheme is not supported.- See Also:
-
DRM_CRYPTO_ERROR
public static final int DRM_CRYPTO_ERRORThrown when a crypto error occurs while queueing a secure input buffer.- See Also:
-
ASYNC_PLAYLIST_ITEM_REJECTED
public static final int ASYNC_PLAYLIST_ITEM_REJECTEDReached the end of the playlist while skipping items via async callback.- See Also:
-
SETUP_ERROR_UNKNOWN
public static final int SETUP_ERROR_UNKNOWNBase code for a setup failure.- See Also:
-
SETUP_ERROR_TIMEOUT
public static final int SETUP_ERROR_TIMEOUTSetup failed because it took longer than 30 seconds.- See Also:
-
SETUP_ERROR_LOADING_CORE
public static final int SETUP_ERROR_LOADING_CORESetup failed because a core module failed to load.- See Also:
-
SETUP_ERROR_ASYNC_SKIPPED_PLAYLIST
public static final int SETUP_ERROR_ASYNC_SKIPPED_PLAYLISTSetup failed because all items in the playlist were skipped by the async callback.- See Also:
-
ERROR_COMPLETING_SETUP
public static final int ERROR_COMPLETING_SETUPAn exception occurred while completing player setup.- See Also:
-
SETUP_ERROR_LOADING_PROVIDER
public static final int SETUP_ERROR_LOADING_PROVIDERSetup failed because the initial provider failed to load.- See Also:
-
ERROR_LOADING_PLAYLIST_ITEM
public static final int ERROR_LOADING_PLAYLIST_ITEMAn error occurred when switching playlist items.- See Also:
-
ERROR_PLAYLIST_ITEM_MISSING_SOURCE
public static final int ERROR_PLAYLIST_ITEM_MISSING_SOURCEThe current playlist item has no source media.- See Also:
-
ERROR_LOADING_PROVIDER
public static final int ERROR_LOADING_PROVIDERBetween playlist items, the required provider could not be loaded.- See Also:
-
ERROR_PIP_UNSUPPORTED
public static final int ERROR_PIP_UNSUPPORTEDDefault Pip unsupported error- See Also:
-
ERROR_PIP_UNAVAILABLE_DUE_TO_API
public static final int ERROR_PIP_UNAVAILABLE_DUE_TO_APIError for when Pip can't be registered due to low API level- See Also:
-
ERROR_PIP_ACTIVITY_NOT_REGISTERED
public static final int ERROR_PIP_ACTIVITY_NOT_REGISTEREDPip error for when activity is not registered- See Also:
-
ERROR_ENTERING_PIP_MODE_FAILED
public static final int ERROR_ENTERING_PIP_MODE_FAILEDPip error for when entering pip mode failed- See Also:
-
ERROR_PIP_ASPECT_RATIO_OUTSIDE_LIMITS
public static final int ERROR_PIP_ASPECT_RATIO_OUTSIDE_LIMITSPip error for when the set aspect ratio is not within limits- See Also:
-
ERROR_PIP_MODE_ALREADY_ENABLED
public static final int ERROR_PIP_MODE_ALREADY_ENABLEDPip error for when we attempt to enter pip mode multiple times- See Also:
-
RELATED_TIME_OUT
public static final int RELATED_TIME_OUTRequest exceeded timeout argument or default of 60 seconds.- See Also:
-
RELATED_MALFORMED_URL
public static final int RELATED_MALFORMED_URLThis is usually due to a malformed URL.- See Also:
-
RELATED_HTTP_4XX_CODE
public static final int RELATED_HTTP_4XX_CODEAn HTTP status error occurred.- See Also:
-
RELATED_HTTP_5XX_CODE
public static final int RELATED_HTTP_5XX_CODE- See Also:
-
RELATED_XML_MALFORMED
public static final int RELATED_XML_MALFORMEDPlaylist was a malformed XML file.- See Also:
-
RELATED_XML_PLAYLIST_EMPTY
public static final int RELATED_XML_PLAYLIST_EMPTYPlaylist XML was empty.- See Also:
-
RELATED_JSON_MALFORMED
public static final int RELATED_JSON_MALFORMEDPlaylist was a malformed JSON file.- See Also:
-
-
Constructor Details
-
ErrorCodes
public ErrorCodes()
-