Class ErrorCodes

java.lang.Object
com.jwplayer.pub.api.errors.ErrorCodes

public class ErrorCodes extends Object
  • Field Details

    • 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:
    • IO_ERROR

      public static final int IO_ERROR
      Signals that an I/O exception of some sort has occurred.
      See Also:
    • GENERIC_PLAYBACK_ERROR

      public static final int GENERIC_PLAYBACK_ERROR
      Thrown when a non-recoverable playback failure occurs.
      See Also:
    • 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:
    • PARSER_ERROR

      public static final int PARSER_ERROR
      Thrown when an error occurs parsing media data and metadata.
      See Also:
    • 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:
    • CLEARTEXT_NOT_ALLOWED_ERROR

      public static final int CLEARTEXT_NOT_ALLOWED_ERROR
      Thrown when cleartext HTTP traffic is not permitted.
      See Also:
    • INVALID_CONTENT_TYPE_ERROR

      public static final int INVALID_CONTENT_TYPE_ERROR
      Thrown when the content type is invalid.
      See Also:
    • ASSET_DATA_SOURCE_ERROR

      public static final int ASSET_DATA_SOURCE_ERROR
      Thrown when an IOException is encountered reading a local asset.
      See Also:
    • 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:
    • FILE_DATA_SOURCE_ERROR

      public static final int FILE_DATA_SOURCE_ERROR
      Thrown when a FileDataSource encounters an error reading a file.
      See Also:
    • 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:
    • GENERIC_DECODER_ERROR

      public static final int GENERIC_DECODER_ERROR
      Thrown when a failure occurs in the decoder.
      See Also:
    • DECODER_INIT_ERROR

      public static final int DECODER_INIT_ERROR
      Thrown when a failure occurs instantiating a decoder.
      See Also:
    • DECODER_INIT_ERROR_UNSUPPORTED

      public static final int DECODER_INIT_ERROR_UNSUPPORTED
      Thrown when a failure occurs instantiating a decoder.
      See Also:
    • 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:
    • SUBTITLE_DECODE_ERROR

      public static final int SUBTITLE_DECODE_ERROR
      Thrown when an error occurs decoding subtitle data.
      See Also:
    • 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:
    • ILLEGAL_MERGE_ERROR

      public static final int ILLEGAL_MERGE_ERROR
      Thrown when a MergingMediaSource cannot merge its sources.
      See Also:
    • INPUT_FORMAT_ERROR

      public static final int INPUT_FORMAT_ERROR
      Thrown if the input format was not recognized.
      See Also:
    • AUDIO_DECODER_ERROR

      public static final int AUDIO_DECODER_ERROR
      Thrown when an audio decoder error occurs.
      See Also:
    • 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:
    • AUDIOSINK_CONFIG_ERROR

      public static final int AUDIOSINK_CONFIG_ERROR
      Thrown when a failure occurs configuring the sink.
      See Also:
    • AUDIOSINK_INIT_ERROR

      public static final int AUDIOSINK_INIT_ERROR
      Thrown when a failure occurs initializing the sink.
      See Also:
    • AUDIOSINK_WRITE_ERROR

      public static final int AUDIOSINK_WRITE_ERROR
      Thrown when a failure occurs writing to the sink.
      See Also:
    • INVALID_AUDIO_TIMESTAMP_ERROR

      public static final int INVALID_AUDIO_TIMESTAMP_ERROR
      Thrown when the audio track has provided a spurious timestamp
      See Also:
    • 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:
    • 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:
    • 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:
    • SS_MISSING_FIELD_ERROR

      public static final int SS_MISSING_FIELD_ERROR
      Thrown if a required field is missing.
      See Also:
    • 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:
    • 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:
    • DRM_SESSION_ERROR

      public static final int DRM_SESSION_ERROR
      Wraps the throwable which is the cause of the error state.
      See Also:
    • 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:
    • DRM_UNSUPPORTED_ERROR

      public static final int DRM_UNSUPPORTED_ERROR
      Thrown when the requested DRM scheme is not supported.
      See Also:
    • DRM_CRYPTO_ERROR

      public static final int DRM_CRYPTO_ERROR
      Thrown when a crypto error occurs while queueing a secure input buffer.
      See Also:
    • 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:
    • SETUP_ERROR_UNKNOWN

      public static final int SETUP_ERROR_UNKNOWN
      Base code for a setup failure.
      See Also:
    • SETUP_ERROR_TIMEOUT

      public static final int SETUP_ERROR_TIMEOUT
      Setup failed because it took longer than 30 seconds.
      See Also:
    • SETUP_ERROR_LOADING_CORE

      public static final int SETUP_ERROR_LOADING_CORE
      Setup failed because a core module failed to load.
      See Also:
    • 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:
    • ERROR_COMPLETING_SETUP

      public static final int ERROR_COMPLETING_SETUP
      An exception occurred while completing player setup.
      See Also:
    • SETUP_ERROR_LOADING_PROVIDER

      public static final int SETUP_ERROR_LOADING_PROVIDER
      Setup failed because the initial provider failed to load.
      See Also:
    • ERROR_LOADING_PLAYLIST_ITEM

      public static final int ERROR_LOADING_PLAYLIST_ITEM
      An error occurred when switching playlist items.
      See Also:
    • ERROR_PLAYLIST_ITEM_MISSING_SOURCE

      public static final int ERROR_PLAYLIST_ITEM_MISSING_SOURCE
      The current playlist item has no source media.
      See Also:
    • ERROR_LOADING_PROVIDER

      public static final int ERROR_LOADING_PROVIDER
      Between playlist items, the required provider could not be loaded.
      See Also:
    • ERROR_PIP_UNSUPPORTED

      public static final int ERROR_PIP_UNSUPPORTED
      Default Pip unsupported error
      See Also:
    • 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:
    • ERROR_PIP_ACTIVITY_NOT_REGISTERED

      public static final int ERROR_PIP_ACTIVITY_NOT_REGISTERED
      Pip error for when activity is not registered
      See Also:
    • ERROR_ENTERING_PIP_MODE_FAILED

      public static final int ERROR_ENTERING_PIP_MODE_FAILED
      Pip error for when entering pip mode failed
      See Also:
    • 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:
    • 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:
  • Constructor Details

    • ErrorCodes

      public ErrorCodes()