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

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

Constants

ERROR_AUDIO_TRACK_INIT_FAILED

Added in API level 31
public static final int ERROR_AUDIO_TRACK_INIT_FAILED

Error code for an AudioTrack initialization failure

Constant Value: 17 (0x00000011)

ERROR_AUDIO_TRACK_OTHER

Added in API level 31
public static final int ERROR_AUDIO_TRACK_OTHER

Error code for other AudioTrack errors

Constant Value: 19 (0x00000013)

ERROR_AUDIO_TRACK_WRITE_FAILED

Added in API level 31
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

Added in API level 31
public static final int ERROR_DECODER_INIT_FAILED

Error code for a decoder initialization failure

Constant Value: 13 (0x0000000d)

ERROR_DECODING_FAILED

Added in API level 31
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

Added in API level 31
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

Added in API level 31
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

Added in API level 31
public static final int ERROR_DECODING_OTHER

Error code for other decoding errors

Constant Value: 16 (0x00000010)

ERROR_DRM_CONTENT_ERROR

Added in API level 31
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

Added in API level 31
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

Added in API level 31
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

Added in API level 31
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

Added in API level 31
public static final int ERROR_DRM_OTHER

Error code for other DRM errors

Constant Value: 30 (0x0000001e)

ERROR_DRM_PROVISIONING_FAILED

Added in API level 31
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

Added in API level 31
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

Added in API level 31
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

Added in API level 31
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

Added in API level 31
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

Added in API level 31
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

Added in API level 31
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

Added in API level 31
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

Added in API level 31
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

Added in API level 31
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

Added in API level 31
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

Added in API level 31
public static final int ERROR_IO_OTHER

Error code for other Input/Output errors

Constant Value: 9 (0x00000009)

ERROR_OTHER

Added in API level 31
public static final int ERROR_OTHER

Error code for other errors

Constant Value: 1 (0x00000001)

ERROR_PARSING_CONTAINER_MALFORMED

Added in API level 31
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

Added in API level 31
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

Added in API level 31
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

Added in API level 31
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

Added in API level 31
public static final int ERROR_PARSING_OTHER

Error code for other media parsing errors

Constant Value: 12 (0x0000000c)

ERROR_PLAYER_BEHIND_LIVE_WINDOW

Added in API level 31
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

Added in API level 31
public static final int ERROR_PLAYER_OTHER

Error code for other player errors

Constant Value: 22 (0x00000016)

ERROR_PLAYER_REMOTE

Added in API level 31
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

Added in API level 31
public static final int ERROR_RUNTIME

Error code for runtime errors

Constant Value: 2 (0x00000002)

ERROR_UNKNOWN

Added in API level 31
public static final int ERROR_UNKNOWN

Unknown error code.

Constant Value: 0 (0x00000000)

Fields

CREATOR

Added in API level 31
public static final Creator<PlaybackErrorEvent> CREATOR

Public methods

describeContents

Added in API level 31
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

Added in API level 31
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.

An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.

Parameters
o Object: This value may be null.

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

getErrorCode

Added in API level 31
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

Added in API level 31
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

Added in API level 31
public int getSubErrorCode ()

Gets sub error code.

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

getTimeSinceCreatedMillis

Added in API level 31
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

hashCode

Added in API level 31
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 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 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.

Returns
int a hash code value for this object.

toString

Added in API level 31
public String toString ()

Returns a string representation of the object.

Returns
String a string representation of the object.

writeToParcel

Added in API level 31
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