# Print output for @column tags ?>
Developers

- Design
- Develop
- Distribute

Developer Console

## Most visited

## Recently visited

## Results for

Summary: Nested Classes | Constants | Inherited Constants | Fields | Methods | Inherited Methods

# PlaybackErrorEvent

`public final class PlaybackErrorEvent`
`` `extends Event` `implements Parcelable`

java.lang.Object
↳ | android.media.metrics.Event
| ↳ | android.media.metrics.PlaybackErrorEvent

Playback error event.

## Summary

### Nested classes
`class` | `PlaybackErrorEvent.Builder` A builder for `PlaybackErrorEvent`

### Constants
`int` | `ERROR_AUDIO_TRACK_INIT_FAILED` Error code for an AudioTrack initialization failure
`int` | `ERROR_AUDIO_TRACK_OTHER` Error code for other AudioTrack errors
`int` | `ERROR_AUDIO_TRACK_WRITE_FAILED` Error code for an AudioTrack write operation failure
`int` | `ERROR_DECODER_INIT_FAILED` Error code for a decoder initialization failure
`int` | `ERROR_DECODING_FAILED` Error code for a failure while trying to decode media samples
`int` | `ERROR_DECODING_FORMAT_EXCEEDS_CAPABILITIES` Error code for trying to decode content whose format exceeds the capabilities of the device.
`int` | `ERROR_DECODING_FORMAT_UNSUPPORTED` Error code for trying to decode content whose format is not supported
`int` | `ERROR_DECODING_OTHER` Error code for other decoding errors
`int` | `ERROR_DRM_CONTENT_ERROR` Error code for attempting to play incompatible DRM-protected content
`int` | `ERROR_DRM_DEVICE_REVOKED` Error code for the device having revoked DRM privileges
`int` | `ERROR_DRM_DISALLOWED_OPERATION` Error code an operation being disallowed by a license policy
`int` | `ERROR_DRM_LICENSE_ACQUISITION_FAILED` Error code for a failure while trying to obtain a license
`int` | `ERROR_DRM_OTHER` Error code for other DRM errors
`int` | `ERROR_DRM_PROVISIONING_FAILED` Error code for a failure while provisioning the device
`int` | `ERROR_DRM_SCHEME_UNSUPPORTED` Error code for a chosen DRM protection scheme not being supported by the device
`int` | `ERROR_DRM_SYSTEM_ERROR` Error code for an error in the DRM system
`int` | `ERROR_IO_BAD_HTTP_STATUS` Error code for an HTTP server returning an unexpected HTTP response status code
`int` | `ERROR_IO_CONNECTION_CLOSED` Error code for an existing network connection being unexpectedly closed
`int` | `ERROR_IO_CONNECTION_TIMEOUT` Error code for a network timeout, meaning the server is taking too long to fulfill a request
`int` | `ERROR_IO_DNS_FAILED` Error code for failing to resolve a hostname
`int` | `ERROR_IO_FILE_NOT_FOUND` Error code for a non-existent file
`int` | `ERROR_IO_NETWORK_CONNECTION_FAILED` Error code for a failure while establishing a network connection
`int` | `ERROR_IO_NETWORK_UNAVAILABLE` Error code for lack of network connectivity while trying to access a network resource
`int` | `ERROR_IO_NO_PERMISSION` Error code for lack of permission to perform an IO operation, for example, lack of permission to access internet or external storage.
`int` | `ERROR_IO_OTHER` Error code for other Input/Output errors
`int` | `ERROR_OTHER` Error code for other errors
`int` | `ERROR_PARSING_CONTAINER_MALFORMED` Error code for a parsing error associated to a media container format bitstream
`int` | `ERROR_PARSING_CONTAINER_UNSUPPORTED` Error code for attempting to extract a file with an unsupported media container format, or an unsupported media container feature
`int` | `ERROR_PARSING_MANIFEST_MALFORMED` Error code for a parsing error associated to a media manifest
`int` | `ERROR_PARSING_MANIFEST_UNSUPPORTED` Error code for an unsupported feature in a media manifest
`int` | `ERROR_PARSING_OTHER` Error code for other media parsing errors
`int` | `ERROR_PLAYER_BEHIND_LIVE_WINDOW` Error code for the loading position falling behind the sliding window of available live content.
`int` | `ERROR_PLAYER_OTHER` Error code for other player errors
`int` | `ERROR_PLAYER_REMOTE` Error code for an unidentified error in a remote controller or player
`int` | `ERROR_RUNTIME` Error code for runtime errors
`int` | `ERROR_UNKNOWN` Unknown error code.

### Inherited constants
From interface `android.os.Parcelable`
`int` | `CONTENTS_FILE_DESCRIPTOR` Descriptor bit used with `describeContents()`: indicates that the Parcelable object's flattened representation includes a file descriptor.
`int` | `PARCELABLE_WRITE_RETURN_VALUE` Flag for use with `writeToParcel(Parcel, int)`: the object being written is a return value, that is the result of a function such as "`Parcelable someFunction()`", "`void someFunction(out Parcelable)`", or "`void someFunction(inout Parcelable)`".

### Fields
`public static final Creator<PlaybackErrorEvent>` | `CREATOR`

### Public methods
`int` | `describeContents()` Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.
`boolean` | `equals(Object o)` Indicates whether some other object is "equal to" this one.
`int` | `getErrorCode()` Gets error code.
`Bundle` | `getMetricsBundle()` Gets metrics-related information that is not supported by dedicated methods.
`int` | `getSubErrorCode()` Gets sub error code.
`long` | `getTimeSinceCreatedMillis()` Gets the timestamp since creation of the playback session in milliseconds.
`int` | `hashCode()` Returns a hash code value for the object.
`String` | `toString()` Returns a string representation of the object.
`void` | `writeToParcel(Parcel dest, int flags)` Flatten this object in to a Parcel.

### Inherited methods
From class `android.media.metrics.Event`
`Bundle` | `getMetricsBundle()` Gets metrics-related information that is not supported by dedicated methods.
`long` | `getTimeSinceCreatedMillis()` Gets time since the corresponding log session is created in millisecond.
From class `java.lang.Object`
`Object` | `clone()` Creates and returns a copy of this object.
`boolean` | `equals(Object obj)` Indicates whether some other object is "equal to" this one.
`void` | `finalize()` Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
`final Class<?>` | `getClass()` Returns the runtime class of this `Object`.
`int` | `hashCode()` Returns a hash code value for the object.
`final void` | `notify()` Wakes up a single thread that is waiting on this object's monitor.
`final void` | `notifyAll()` Wakes up all threads that are waiting on this object's monitor.
`String` | `toString()` Returns a string representation of the object.
`final void` | `wait(long timeout, int nanos)` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object, or some other thread interrupts the current thread, or a certain amount of real time has elapsed.
`final void` | `wait(long timeout)` Causes the current thread to wait until either another thread invokes the `notify()` method or the `notifyAll()` method for this object, or a specified amount of time has elapsed.
`final void` | `wait()` Causes the current thread to wait until another thread invokes the `notify()` method or the `notifyAll()` method for this object.
From interface `android.os.Parcelable`
`abstract int` | `describeContents()` Describe the kinds of special objects contained in this Parcelable instance's marshaled representation.
`abstract void` | `writeToParcel(Parcel dest, int flags)` Flatten this object in to a Parcel.

## Constants

### ERROR_AUDIO_TRACK_INIT_FAILED

    public static final int ERROR_AUDIO_TRACK_INIT_FAILED

Error code for an AudioTrack initialization failure

Constant Value: 17 (0x00000011)

### ERROR_AUDIO_TRACK_OTHER

    public static final int ERROR_AUDIO_TRACK_OTHER

Error code for other AudioTrack errors

Constant Value: 19 (0x00000013)

### ERROR_AUDIO_TRACK_WRITE_FAILED

    public static final int ERROR_AUDIO_TRACK_WRITE_FAILED

Error code for an AudioTrack write operation failure

Constant Value: 18 (0x00000012)

### ERROR_DECODER_INIT_FAILED

    public static final int ERROR_DECODER_INIT_FAILED

Error code for a decoder initialization failure

Constant Value: 13 (0x0000000d)

### ERROR_DECODING_FAILED

    public static final int ERROR_DECODING_FAILED

Error code for a failure while trying to decode media samples

Constant Value: 14 (0x0000000e)

### ERROR_DECODING_FORMAT_EXCEEDS_CAPABILITIES

    public static final int ERROR_DECODING_FORMAT_EXCEEDS_CAPABILITIES

Error code for trying to decode content whose format exceeds the capabilities of the device.

Constant Value: 15 (0x0000000f)

### ERROR_DECODING_FORMAT_UNSUPPORTED

    public static final int ERROR_DECODING_FORMAT_UNSUPPORTED

Error code for trying to decode content whose format is not supported

Constant Value: 35 (0x00000023)

### ERROR_DECODING_OTHER

    public static final int ERROR_DECODING_OTHER

Error code for other decoding errors

Constant Value: 16 (0x00000010)

### ERROR_DRM_CONTENT_ERROR

    public static final int ERROR_DRM_CONTENT_ERROR

Error code for attempting to play incompatible DRM-protected content

Constant Value: 28 (0x0000001c)

### ERROR_DRM_DEVICE_REVOKED

    public static final int ERROR_DRM_DEVICE_REVOKED

Error code for the device having revoked DRM privileges

Constant Value: 29 (0x0000001d)

### ERROR_DRM_DISALLOWED_OPERATION

    public static final int ERROR_DRM_DISALLOWED_OPERATION

Error code an operation being disallowed by a license policy

Constant Value: 26 (0x0000001a)

### ERROR_DRM_LICENSE_ACQUISITION_FAILED

    public static final int ERROR_DRM_LICENSE_ACQUISITION_FAILED

Error code for a failure while trying to obtain a license

Constant Value: 25 (0x00000019)

### ERROR_DRM_OTHER

    public static final int ERROR_DRM_OTHER

Error code for other DRM errors

Constant Value: 30 (0x0000001e)

### ERROR_DRM_PROVISIONING_FAILED

    public static final int ERROR_DRM_PROVISIONING_FAILED

Error code for a failure while provisioning the device

Constant Value: 24 (0x00000018)

### ERROR_DRM_SCHEME_UNSUPPORTED

    public static final int ERROR_DRM_SCHEME_UNSUPPORTED

Error code for a chosen DRM protection scheme not being supported by the device

Constant Value: 23 (0x00000017)

### ERROR_DRM_SYSTEM_ERROR

    public static final int ERROR_DRM_SYSTEM_ERROR

Error code for an error in the DRM system

Constant Value: 27 (0x0000001b)

### ERROR_IO_BAD_HTTP_STATUS

    public static final int ERROR_IO_BAD_HTTP_STATUS

Error code for an HTTP server returning an unexpected HTTP response status code

Constant Value: 5 (0x00000005)

### ERROR_IO_CONNECTION_CLOSED

    public static final int ERROR_IO_CONNECTION_CLOSED

Error code for an existing network connection being unexpectedly closed

Constant Value: 8 (0x00000008)

### ERROR_IO_CONNECTION_TIMEOUT

    public static final int ERROR_IO_CONNECTION_TIMEOUT

Error code for a network timeout, meaning the server is taking too long to fulfill a request

Constant Value: 7 (0x00000007)

### ERROR_IO_DNS_FAILED

    public static final int ERROR_IO_DNS_FAILED

Error code for failing to resolve a hostname

Constant Value: 6 (0x00000006)

### ERROR_IO_FILE_NOT_FOUND

    public static final int ERROR_IO_FILE_NOT_FOUND

Error code for a non-existent file

Constant Value: 31 (0x0000001f)

### ERROR_IO_NETWORK_CONNECTION_FAILED

    public static final int ERROR_IO_NETWORK_CONNECTION_FAILED

Error code for a failure while establishing a network connection

Constant Value: 4 (0x00000004)

### ERROR_IO_NETWORK_UNAVAILABLE

    public static final int ERROR_IO_NETWORK_UNAVAILABLE

Error code for lack of network connectivity while trying to access a network resource

Constant Value: 3 (0x00000003)

### ERROR_IO_NO_PERMISSION

    public static final int ERROR_IO_NO_PERMISSION

Error code for lack of permission to perform an IO operation, for example, lack of permission to access internet or external storage.

Constant Value: 32 (0x00000020)

### ERROR_IO_OTHER

    public static final int ERROR_IO_OTHER

Error code for other Input/Output errors

Constant Value: 9 (0x00000009)

### ERROR_OTHER

    public static final int ERROR_OTHER

Error code for other errors

Constant Value: 1 (0x00000001)

### ERROR_PARSING_CONTAINER_MALFORMED

    public static final int ERROR_PARSING_CONTAINER_MALFORMED

Error code for a parsing error associated to a media container format bitstream

Constant Value: 11 (0x0000000b)

### ERROR_PARSING_CONTAINER_UNSUPPORTED

    public static final int ERROR_PARSING_CONTAINER_UNSUPPORTED

Error code for attempting to extract a file with an unsupported media container format, or an unsupported media container feature

Constant Value: 34 (0x00000022)

### ERROR_PARSING_MANIFEST_MALFORMED

    public static final int ERROR_PARSING_MANIFEST_MALFORMED

Error code for a parsing error associated to a media manifest

Constant Value: 10 (0x0000000a)

### ERROR_PARSING_MANIFEST_UNSUPPORTED

    public static final int ERROR_PARSING_MANIFEST_UNSUPPORTED

Error code for an unsupported feature in a media manifest

Constant Value: 33 (0x00000021)

### ERROR_PARSING_OTHER

    public static final int ERROR_PARSING_OTHER

Error code for other media parsing errors

Constant Value: 12 (0x0000000c)

### ERROR_PLAYER_BEHIND_LIVE_WINDOW

    public static final int ERROR_PLAYER_BEHIND_LIVE_WINDOW

Error code for the loading position falling behind the sliding window of available live content.

Constant Value: 21 (0x00000015)

### ERROR_PLAYER_OTHER

    public static final int ERROR_PLAYER_OTHER

Error code for other player errors

Constant Value: 22 (0x00000016)

### ERROR_PLAYER_REMOTE

    public static final int ERROR_PLAYER_REMOTE

Error code for an unidentified error in a remote controller or player

Constant Value: 20 (0x00000014)

### ERROR_RUNTIME

    public static final int ERROR_RUNTIME

Error code for runtime errors

Constant Value: 2 (0x00000002)

### ERROR_UNKNOWN

    public static final int ERROR_UNKNOWN

Unknown error code.

Constant Value: 0 (0x00000000)

## Fields

### CREATOR

    public static final Creator<PlaybackErrorEvent> CREATOR

## Public methods

### describeContents

    public int describeContents ()

Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. For example, if the object will include a file descriptor in the output of `writeToParcel(android.os.Parcel, int)`, the return value of this method must include the `CONTENTS_FILE_DESCRIPTOR` bit.

Returns
`int` | a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either `0` or `CONTENTS_FILE_DESCRIPTOR`

### equals

    public boolean equals (Object o)

Indicates whether some other object is "equal to" this one.

The `equals` method implements an equivalence relation on non-null object references:

- It is reflexive: for any non-null reference value `x`, `x.equals(x)` should return `true`.
- It is symmetric: for any non-null reference values `x` and `y`, `x.equals(y)` should return `true` if and only if `y.equals(x)` returns `true`.
- It is transitive: for any non-null reference values `x`, `y`, and `z`, if `x.equals(y)` returns `true` and `y.equals(z)` returns `true`, then `x.equals(z)` should return `true`.
- It is consistent: for any non-null reference values `x` and `y`, multiple invocations of `x.equals(y)` consistently return `true` or consistently return `false`, provided no information used in `equals` comparisons on the objects is modified.
- For any non-null reference value `x`, `x.equals(null)` should return `false`.

The `equals` method for class `Object` implements the most discriminating possible equivalence relation on objects; that is, for any non-null reference values `x` and `y`, this method returns `true` if and only if `x` and `y` refer to the same object (`x == y` has the value `true`).

Note that it is generally necessary to override the `hashCode` method whenever this method is overridden, so as to maintain the general contract for the `hashCode` method, which states that equal objects must have equal hash codes.

Parameters
`o` | `Object`: This value may be `null`.

Returns
`boolean` | `true` if this object is the same as the obj argument; `false` otherwise.

### getErrorCode

    public int getErrorCode ()

Gets error code.

Returns
`int` | Value is `ERROR_UNKNOWN`, `ERROR_OTHER`, `ERROR_RUNTIME`, `ERROR_IO_NETWORK_UNAVAILABLE`, `ERROR_IO_NETWORK_CONNECTION_FAILED`, `ERROR_IO_BAD_HTTP_STATUS`, `ERROR_IO_DNS_FAILED`, `ERROR_IO_CONNECTION_TIMEOUT`, `ERROR_IO_CONNECTION_CLOSED`, `ERROR_IO_OTHER`, `ERROR_PARSING_MANIFEST_MALFORMED`, `ERROR_PARSING_CONTAINER_MALFORMED`, `ERROR_PARSING_OTHER`, `ERROR_DECODER_INIT_FAILED`, `ERROR_DECODING_FAILED`, `ERROR_DECODING_FORMAT_EXCEEDS_CAPABILITIES`, `ERROR_DECODING_OTHER`, `ERROR_AUDIO_TRACK_INIT_FAILED`, `ERROR_AUDIO_TRACK_WRITE_FAILED`, `ERROR_AUDIO_TRACK_OTHER`, `ERROR_PLAYER_REMOTE`, `ERROR_PLAYER_BEHIND_LIVE_WINDOW`, `ERROR_PLAYER_OTHER`, `ERROR_DRM_SCHEME_UNSUPPORTED`, `ERROR_DRM_PROVISIONING_FAILED`, `ERROR_DRM_LICENSE_ACQUISITION_FAILED`, `ERROR_DRM_DISALLOWED_OPERATION`, `ERROR_DRM_SYSTEM_ERROR`, `ERROR_DRM_CONTENT_ERROR`, `ERROR_DRM_DEVICE_REVOKED`, `ERROR_DRM_OTHER`, `ERROR_IO_FILE_NOT_FOUND`, `ERROR_IO_NO_PERMISSION`, `ERROR_PARSING_MANIFEST_UNSUPPORTED`, `ERROR_PARSING_CONTAINER_UNSUPPORTED`, or `ERROR_DECODING_FORMAT_UNSUPPORTED`

### getMetricsBundle

    public Bundle getMetricsBundle ()

Gets metrics-related information that is not supported by dedicated methods.

It is intended to be used for backwards compatibility by the metrics infrastructure.

Returns
`Bundle` | This value cannot be `null`.

### getSubErrorCode

    public int getSubErrorCode ()

Gets sub error code.

Returns
`int` | Value is between Integer.MIN_VALUE and Integer.MAX_VALUE inclusive

### getTimeSinceCreatedMillis

    public long getTimeSinceCreatedMillis ()

Gets the timestamp since creation of the playback session in milliseconds.

Returns
`long` | the timestamp since the playback is created, or -1 if unknown. Value is -1 or greater

See also:

- `LogSessionId`
- `PlaybackSession`

### hashCode

    public int hashCode ()

Returns a hash code value for the object. This method is supported for the benefit of hash tables such as those provided by `HashMap`.

The general contract of `hashCode` is:

- Whenever it is invoked on the same object more than once during an execution of a Java application, the `hashCode` method must consistently return the same integer, provided no information used in `equals` comparisons on the object is modified. This integer need not remain consistent from one execution of an application to another execution of the same application.
- If two objects are equal according to the `equals(Object)` method, then calling the `hashCode` method on each of the two objects must produce the same integer result.
- It is not required that if two objects are unequal according to the `equals(java.lang.Object)` method, then calling the `hashCode` method on each of the two objects must produce distinct integer results. However, the programmer should be aware that producing distinct integer results for unequal objects may improve the performance of hash tables.

As much as is reasonably practical, the hashCode method defined by class `Object` does return distinct integers for distinct objects. (This is typically implemented by converting the internal address of the object into an integer, but this implementation technique is not required by the Java™ programming language.)

Returns
`int` | a hash code value for this object.

### toString

    public String toString ()

Returns a string representation of the object. In general, the `toString` method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The `toString` method for class `Object` returns a string consisting of the name of the class of which the object is an instance, the at-sign character ``@`', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

>      getClass().getName() + '@' + Integer.toHexString(hashCode())

Returns
`String` | a string representation of the object.

### writeToParcel

    public void writeToParcel (Parcel dest,
                    int flags)

Flatten this object in to a Parcel.

Parameters
`dest` | `Parcel`: This value cannot be `null`.
`flags` | `int`: Additional flags about how the object should be written. May be 0 or `Parcelable.PARCELABLE_WRITE_RETURN_VALUE`. Value is either `0` or a combination of `Parcelable.PARCELABLE_WRITE_RETURN_VALUE`, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES

Full name *
Email address *
Company / developer name
One of your Play Store app URLs *
Which best describes your business:*
Apps
Games
Apps & Games
*
*