Google is committed to advancing racial equity for Black communities. See how.

MediaError.DetailedErrorCode

public static abstract @interface MediaError.DetailedErrorCode implements Annotation

Detailed media error codes.

Constant Summary

int APP An error occurs outside of the framework (e.g., if an event handler throws an error).
int BREAK_CLIP_LOADING_ERROR Break clip load interceptor fails.
int BREAK_SEEK_INTERCEPTOR_ERROR Break seek interceptor fails.
int DASH_INVALID_SEGMENT_INFO A DASH manifest contains invalid segment info.
int DASH_MANIFEST_NO_MIMETYPE A DASH manifest is missing a MimeType.
int DASH_MANIFEST_NO_PERIODS A DASH manifest is missing periods.
int DASH_MANIFEST_UNKNOWN An unknown error occurs while parsing a DASH manifest.
int DASH_NETWORK An unknown network error occurs while handling a DASH stream.
int DASH_NO_INIT A DASH stream is missing an init.
int GENERIC Returned when an unknown error occurs.
int HLS_MANIFEST_MASTER An error occurs while parsing an HLS master manifest.
int HLS_MANIFEST_PLAYLIST An error occurs while parsing an HLS playlist.
int HLS_NETWORK_INVALID_SEGMENT An HLS segment is invalid.
int HLS_NETWORK_KEY_LOAD A request for an HLS key fails before it is sent.
int HLS_NETWORK_MASTER_PLAYLIST An HLS master playlist fails to download.
int HLS_NETWORK_NO_KEY_RESPONSE An HLS key fails to download.
int HLS_NETWORK_PLAYLIST An HLS playlist fails to download.
int HLS_SEGMENT_PARSING An HLS segment fails to parse.
int IMAGE_ERROR When an image fails to load.
int LOAD_FAILED A load command failed.
int LOAD_INTERRUPTED A load was interrupted by an unload, or by another load.
int MANIFEST_UNKNOWN An unknown error occurs while parsing a manifest.
int MEDIAKEYS_NETWORK There is a media keys failure due to a network issue.
int MEDIAKEYS_UNKNOWN There is an unknown error with media keys.
int MEDIAKEYS_UNSUPPORTED A MediaKeySession object cannot be created.
int MEDIAKEYS_WEBCRYPTO Crypto failed.
int MEDIA_ABORTED The fetching process for the media resource was aborted by the user agent at the user's request.
int MEDIA_DECODE An error occurred while decoding the media resource, after the resource was established to be usable.
int MEDIA_ERROR_MESSAGE An error message was sent to the sender.
int MEDIA_NETWORK A network error caused the user agent to stop fetching the media resource, after the resource was established to be usable.
int MEDIA_SRC_NOT_SUPPORTED The media resource indicated by the src attribute was not suitable.
int MEDIA_UNKNOWN The HTMLMediaElement throws an error, but CAF does not recognize the specific error.
int NETWORK_UNKNOWN There was an unknown network issue.
int SEGMENT_NETWORK A segment fails to download.
int SEGMENT_UNKNOWN An unknown segment error occurs.
int SMOOTH_MANIFEST An error occurs while parsing a Smooth manifest.
int SMOOTH_NETWORK An unknown network error occurs while handling a Smooth stream.
int SMOOTH_NO_MEDIA_DATA A Smooth stream is missing media data.
int SOURCE_BUFFER_FAILURE A source buffer cannot be added to the MediaSource.
int TEXT_UNKNOWN An 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