MediaError.DetailedErrorCode

Detailed media error codes.

Constant Summary

intAPPAn error occurs outside of the framework (e.g., if an event handler throws an error).
intBREAK_CLIP_LOADING_ERRORBreak clip load interceptor fails.
intBREAK_SEEK_INTERCEPTOR_ERRORBreak seek interceptor fails.
intDASH_INVALID_SEGMENT_INFOA DASH manifest contains invalid segment info.
intDASH_MANIFEST_NO_MIMETYPEA DASH manifest is missing a MimeType.
intDASH_MANIFEST_NO_PERIODSA DASH manifest is missing periods.
intDASH_MANIFEST_UNKNOWNAn unknown error occurs while parsing a DASH manifest.
intDASH_NETWORKAn unknown network error occurs while handling a DASH stream.
intDASH_NO_INITA DASH stream is missing an init.
intGENERICReturned when an unknown error occurs.
intHLS_MANIFEST_MASTERAn error occurs while parsing an HLS master manifest.
intHLS_MANIFEST_PLAYLISTAn error occurs while parsing an HLS playlist.
intHLS_NETWORK_INVALID_SEGMENTAn HLS segment is invalid.
intHLS_NETWORK_KEY_LOADA request for an HLS key fails before it is sent.
intHLS_NETWORK_MASTER_PLAYLISTAn HLS master playlist fails to download.
intHLS_NETWORK_NO_KEY_RESPONSEAn HLS key fails to download.
intHLS_NETWORK_PLAYLISTAn HLS playlist fails to download.
intHLS_SEGMENT_PARSINGAn HLS segment fails to parse.
intIMAGE_ERRORWhen an image fails to load.
intLOAD_FAILEDA load command failed.
intLOAD_INTERRUPTEDA load was interrupted by an unload, or by another load.
intMANIFEST_UNKNOWNAn unknown error occurs while parsing a manifest.
intMEDIAKEYS_NETWORKThere is a media keys failure due to a network issue.
intMEDIAKEYS_UNKNOWNThere is an unknown error with media keys.
intMEDIAKEYS_UNSUPPORTEDA MediaKeySession object cannot be created.
intMEDIAKEYS_WEBCRYPTOCrypto failed.
intMEDIA_ABORTEDThe fetching process for the media resource was aborted by the user agent at the user's request.
intMEDIA_DECODEAn error occurred while decoding the media resource, after the resource was established to be usable.
intMEDIA_ERROR_MESSAGEAn error message was sent to the sender.
intMEDIA_NETWORKA network error caused the user agent to stop fetching the media resource, after the resource was established to be usable.
intMEDIA_SRC_NOT_SUPPORTEDThe media resource indicated by the src attribute was not suitable.
intMEDIA_UNKNOWNThe HTMLMediaElement throws an error, but CAF does not recognize the specific error.
intNETWORK_UNKNOWNThere was an unknown network issue.
intSEGMENT_NETWORKA segment fails to download.
intSEGMENT_UNKNOWNAn unknown segment error occurs.
intSMOOTH_MANIFESTAn error occurs while parsing a Smooth manifest.
intSMOOTH_NETWORKAn unknown network error occurs while handling a Smooth stream.
intSMOOTH_NO_MEDIA_DATAA Smooth stream is missing media data.
intSOURCE_BUFFER_FAILUREA source buffer cannot be added to the MediaSource.
intTEXT_UNKNOWNAn unknown error occurred with a text stream.

Inherited Method Summary

Constants

public static final int APP

An error occurs outside of the framework (e.g., if an event handler throws an error).

Constant Value: 900

public static final int BREAK_CLIP_LOADING_ERROR

Break clip load interceptor fails.

Constant Value: 901

public static final int BREAK_SEEK_INTERCEPTOR_ERROR

Break seek interceptor fails.

Constant Value: 902

public static final int DASH_INVALID_SEGMENT_INFO

A DASH manifest contains invalid segment info.

Constant Value: 423

public static final int DASH_MANIFEST_NO_MIMETYPE

A DASH manifest is missing a MimeType.

Constant Value: 422

public static final int DASH_MANIFEST_NO_PERIODS

A DASH manifest is missing periods.

Constant Value: 421

public static final int DASH_MANIFEST_UNKNOWN

An unknown error occurs while parsing a DASH manifest.

Constant Value: 420

public static final int DASH_NETWORK

An unknown network error occurs while handling a DASH stream.

Constant Value: 321

public static final int DASH_NO_INIT

A DASH stream is missing an init.

Constant Value: 322

public static final int GENERIC

Returned when an unknown error occurs.

Constant Value: 999

public static final int HLS_MANIFEST_MASTER

An error occurs while parsing an HLS master manifest.

Constant Value: 411

public static final int HLS_MANIFEST_PLAYLIST

An error occurs while parsing an HLS playlist.

Constant Value: 412

public static final int HLS_NETWORK_INVALID_SEGMENT

An HLS segment is invalid.

Constant Value: 315

public static final int HLS_NETWORK_KEY_LOAD

A request for an HLS key fails before it is sent.

Constant Value: 314

public static final int HLS_NETWORK_MASTER_PLAYLIST

An HLS master playlist fails to download.

Constant Value: 311

public static final int HLS_NETWORK_NO_KEY_RESPONSE

An HLS key fails to download.

Constant Value: 313

public static final int HLS_NETWORK_PLAYLIST

An HLS playlist fails to download.

Constant Value: 312

public static final int HLS_SEGMENT_PARSING

An HLS segment fails to parse.

Constant Value: 316

public static final int IMAGE_ERROR

When an image fails to load.

Constant Value: 903

public static final int LOAD_FAILED

A load command failed.

Constant Value: 905

public static final int LOAD_INTERRUPTED

A load was interrupted by an unload, or by another load.

Constant Value: 904

public static final int MANIFEST_UNKNOWN

An unknown error occurs while parsing a manifest.

Constant Value: 400

public static final int MEDIAKEYS_NETWORK

There is a media keys failure due to a network issue.

Constant Value: 201

public static final int MEDIAKEYS_UNKNOWN

There is an unknown error with media keys.

Constant Value: 200

public static final int MEDIAKEYS_UNSUPPORTED

A MediaKeySession object cannot be created.

Constant Value: 202

public static final int MEDIAKEYS_WEBCRYPTO

Crypto failed.

Constant Value: 203

public static final int MEDIA_ABORTED

The fetching process for the media resource was aborted by the user agent at the user's request.

Constant Value: 101

public static final int MEDIA_DECODE

An error occurred while decoding the media resource, after the resource was established to be usable.

Constant Value: 102

public static final int MEDIA_ERROR_MESSAGE

An error message was sent to the sender.

Constant Value: 906

public static final int MEDIA_NETWORK

A network error caused the user agent to stop fetching the media resource, after the resource was established to be usable.

Constant Value: 103

public static final int MEDIA_SRC_NOT_SUPPORTED

The media resource indicated by the src attribute was not suitable.

Constant Value: 104

public static final int MEDIA_UNKNOWN

The HTMLMediaElement throws an error, but CAF does not recognize the specific error.

Constant Value: 100

public static final int NETWORK_UNKNOWN

There was an unknown network issue.

Constant Value: 300

public static final int SEGMENT_NETWORK

A segment fails to download.

Constant Value: 301

public static final int SEGMENT_UNKNOWN

An unknown segment error occurs.

Constant Value: 500

public static final int SMOOTH_MANIFEST

An error occurs while parsing a Smooth manifest.

Constant Value: 431

public static final int SMOOTH_NETWORK

An unknown network error occurs while handling a Smooth stream.

Constant Value: 331

public static final int SMOOTH_NO_MEDIA_DATA

A Smooth stream is missing media data.

Constant Value: 332

public static final int SOURCE_BUFFER_FAILURE

A source buffer cannot be added to the MediaSource.

Constant Value: 110

public static final int TEXT_UNKNOWN

An unknown error occurred with a text stream.

Constant Value: 600