Media#onErrorProperty, MediaView#onErrorProperty
| Modifier and Type | Class and Description |
|---|---|
| public static enum | MediaException.
Enumeration describing categories of errors. |
| Modifier and Type | Field and Description |
|---|---|
| private final MediaException. | type
What caused this error. |
| Access | Constructor and Description |
|---|---|
| pack-priv | |
| pack-priv | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv static MediaException. | Returns: API level error type.Error code from implementation layer. errorCode)Map |
| pack-priv static MediaException | |
| pack-priv static MediaException | |
| public MediaException. | |
| pack-priv static MediaException | |
| public String | Returns: a string representation of thisMediaException object.Overrides java. Returns a string representation of this |
| type | back to summary |
|---|---|
| private final MediaException. What caused this error. | |
| MediaException | back to summary |
|---|---|
| pack-priv MediaException(MediaException. | |
| MediaException | back to summary |
|---|---|
| pack-priv MediaException(MediaException. | |
| MediaException | back to summary |
|---|---|
| pack-priv MediaException(MediaException. | |
| errorCodeToType | back to summary |
|---|---|
| pack-priv static MediaException. Map
| |
| exceptionToMediaException | back to summary |
|---|---|
| pack-priv static MediaException exceptionToMediaException(Exception e) converts Java exceptions into mediaErrors | |
| getMediaException | back to summary |
|---|---|
| pack-priv static MediaException getMediaException(Object source, int errorCode, String message) | |
| getType | back to summary |
|---|---|
| public MediaException. Retrieves the category into which this error falls.
| |
| haltException | back to summary |
|---|---|
| pack-priv static MediaException haltException(String message) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string representation of this | |
Exceptions may belong to the same category.
| Modifier and Type | Field and Description |
|---|---|
| public static final MediaException. | MEDIA_CORRUPTED
Indicates an error has occurred: the media appears to be invalid or corrupted. |
| public static final MediaException. | MEDIA_INACCESSIBLE
Indicates an error has occurred: although the media may exist, it is not accessible. |
| public static final MediaException. | MEDIA_UNAVAILABLE
Indicates an error has occurred: the media does not exist or is otherwise unavailable. |
| public static final MediaException. | MEDIA_UNSPECIFIED
Indicates that the media has not been specified. |
| public static final MediaException. | MEDIA_UNSUPPORTED
Indicates that this media type is not supported by this platform. |
| public static final MediaException. | OPERATION_UNSUPPORTED
Indicates that an operation performed on the media is not supported by this platform. |
| public static final MediaException. | PLAYBACK_ERROR
Indicates a playback error which does not fall into any of the other pre-defined categories. |
| public static final MediaException. | PLAYBACK_HALTED
Indicates an unrecoverable error which has resulted in halting playback. |
| public static final MediaException. | UNKNOWN
Indicates an error has occurred for an unknown reason. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static MediaException. | |
| public static MediaException. |
| MEDIA_CORRUPTED | back to summary |
|---|---|
| public static final MediaException. Indicates an error has occurred: the media appears to be invalid or corrupted. | |
| MEDIA_INACCESSIBLE | back to summary |
|---|---|
| public static final MediaException. Indicates an error has occurred: although the media may exist, it is not accessible. | |
| MEDIA_UNAVAILABLE | back to summary |
|---|---|
| public static final MediaException. Indicates an error has occurred: the media does not exist or is otherwise unavailable. This error may be the result of security settings preventing access when running in a browser. | |
| MEDIA_UNSPECIFIED | back to summary |
|---|---|
| public static final MediaException. Indicates that the media has not been specified. | |
| MEDIA_UNSUPPORTED | back to summary |
|---|---|
| public static final MediaException. Indicates that this media type is not supported by this platform. | |
| OPERATION_UNSUPPORTED | back to summary |
|---|---|
| public static final MediaException. Indicates that an operation performed on the media is not supported by this platform. | |
| PLAYBACK_ERROR | back to summary |
|---|---|
| public static final MediaException. Indicates a playback error which does not fall into any of the other pre-defined categories. | |
| PLAYBACK_HALTED | back to summary |
|---|---|
| public static final MediaException. Indicates an unrecoverable error which has resulted in halting playback. | |
| UNKNOWN | back to summary |
|---|---|
| public static final MediaException. Indicates an error has occurred for an unknown reason. | |
| Type | back to summary |
|---|---|
| private Type() | |
| valueOf | back to summary |
|---|---|
| public static MediaException. | |
| values | back to summary |
|---|---|
| public static MediaException. | |