Added in API level 31

PlaybackErrorEvent


class PlaybackErrorEvent : Event, Parcelable
kotlin.Any
   ↳ android.media.metrics.Event
   ↳ android.media.metrics.PlaybackErrorEvent

Playback error event.

Summary

Nested classes

A builder for PlaybackErrorEvent

Constants
static Int

Error code for an AudioTrack initialization failure

static Int

Error code for other AudioTrack errors

static Int

Error code for an AudioTrack write operation failure

static Int

Error code for a decoder initialization failure

static Int

Error code for a failure while trying to decode media samples

static Int

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

static Int

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

static Int

Error code for other decoding errors

static Int

Error code for attempting to play incompatible DRM-protected content

static Int

Error code for the device having revoked DRM privileges

static Int

Error code an operation being disallowed by a license policy

static Int

Error code for a failure while trying to obtain a license

static Int

Error code for other DRM errors

static Int

Error code for a failure while provisioning the device

static Int

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

static Int

Error code for an error in the DRM system

static Int

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

static Int

Error code for an existing network connection being unexpectedly closed

static Int

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

static Int

Error code for failing to resolve a hostname

static Int

Error code for a non-existent file

static Int

Error code for a failure while establishing a network connection

static Int

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

static Int

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

static Int

Error code for other Input/Output errors

static Int

Error code for other errors

static Int

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

static Int

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

static Int

Error code for a parsing error associated to a media manifest

static Int

Error code for an unsupported feature in a media manifest

static Int

Error code for other media parsing errors

static Int

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

static Int

Error code for other player errors

static Int

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

static Int

Error code for runtime errors

static Int

Unknown error code.

Inherited constants
Public methods
Int

Boolean
equals(other: Any?)

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

Int

Gets error code.

Bundle

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

Int

Gets sub error code.

Long

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

Int

String

Unit
writeToParcel(dest: Parcel, flags: Int)

Flatten this object in to a Parcel.

Properties
static Parcelable.Creator<PlaybackErrorEvent!>

Constants

ERROR_AUDIO_TRACK_INIT_FAILED

Added in API level 31
static val ERROR_AUDIO_TRACK_INIT_FAILED: Int

Error code for an AudioTrack initialization failure

Value: 17

ERROR_AUDIO_TRACK_OTHER

Added in API level 31
static val ERROR_AUDIO_TRACK_OTHER: Int

Error code for other AudioTrack errors

Value: 19

ERROR_AUDIO_TRACK_WRITE_FAILED

Added in API level 31
static val ERROR_AUDIO_TRACK_WRITE_FAILED: Int

Error code for an AudioTrack write operation failure

Value: 18

ERROR_DECODER_INIT_FAILED

Added in API level 31
static val ERROR_DECODER_INIT_FAILED: Int

Error code for a decoder initialization failure

Value: 13

ERROR_DECODING_FAILED

Added in API level 31
static val ERROR_DECODING_FAILED: Int

Error code for a failure while trying to decode media samples

Value: 14

ERROR_DECODING_FORMAT_EXCEEDS_CAPABILITIES

Added in API level 31
static val ERROR_DECODING_FORMAT_EXCEEDS_CAPABILITIES: Int

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

Value: 15

ERROR_DECODING_FORMAT_UNSUPPORTED

Added in API level 31
static val ERROR_DECODING_FORMAT_UNSUPPORTED: Int

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

Value: 35

ERROR_DECODING_OTHER

Added in API level 31
static val ERROR_DECODING_OTHER: Int

Error code for other decoding errors

Value: 16

ERROR_DRM_CONTENT_ERROR

Added in API level 31
static val ERROR_DRM_CONTENT_ERROR: Int

Error code for attempting to play incompatible DRM-protected content

Value: 28

ERROR_DRM_DEVICE_REVOKED

Added in API level 31
static val ERROR_DRM_DEVICE_REVOKED: Int

Error code for the device having revoked DRM privileges

Value: 29

ERROR_DRM_DISALLOWED_OPERATION

Added in API level 31
static val ERROR_DRM_DISALLOWED_OPERATION: Int

Error code an operation being disallowed by a license policy

Value: 26

ERROR_DRM_LICENSE_ACQUISITION_FAILED

Added in API level 31
static val ERROR_DRM_LICENSE_ACQUISITION_FAILED: Int

Error code for a failure while trying to obtain a license

Value: 25

ERROR_DRM_OTHER

Added in API level 31
static val ERROR_DRM_OTHER: Int

Error code for other DRM errors

Value: 30

ERROR_DRM_PROVISIONING_FAILED

Added in API level 31
static val ERROR_DRM_PROVISIONING_FAILED: Int

Error code for a failure while provisioning the device

Value: 24

ERROR_DRM_SCHEME_UNSUPPORTED

Added in API level 31
static val ERROR_DRM_SCHEME_UNSUPPORTED: Int

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

Value: 23

ERROR_DRM_SYSTEM_ERROR

Added in API level 31
static val ERROR_DRM_SYSTEM_ERROR: Int

Error code for an error in the DRM system

Value: 27

ERROR_IO_BAD_HTTP_STATUS

Added in API level 31
static val ERROR_IO_BAD_HTTP_STATUS: Int

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

Value: 5

ERROR_IO_CONNECTION_CLOSED

Added in API level 31
static val ERROR_IO_CONNECTION_CLOSED: Int

Error code for an existing network connection being unexpectedly closed

Value: 8

ERROR_IO_CONNECTION_TIMEOUT

Added in API level 31
static val ERROR_IO_CONNECTION_TIMEOUT: Int

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

Value: 7

ERROR_IO_DNS_FAILED

Added in API level 31
static val ERROR_IO_DNS_FAILED: Int

Error code for failing to resolve a hostname

Value: 6

ERROR_IO_FILE_NOT_FOUND

Added in API level 31
static val ERROR_IO_FILE_NOT_FOUND: Int

Error code for a non-existent file

Value: 31

ERROR_IO_NETWORK_CONNECTION_FAILED

Added in API level 31
static val ERROR_IO_NETWORK_CONNECTION_FAILED: Int

Error code for a failure while establishing a network connection

Value: 4

ERROR_IO_NETWORK_UNAVAILABLE

Added in API level 31
static val ERROR_IO_NETWORK_UNAVAILABLE: Int

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

Value: 3

ERROR_IO_NO_PERMISSION

Added in API level 31
static val ERROR_IO_NO_PERMISSION: Int

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

Value: 32

ERROR_IO_OTHER

Added in API level 31
static val ERROR_IO_OTHER: Int

Error code for other Input/Output errors

Value: 9

ERROR_OTHER

Added in API level 31
static val ERROR_OTHER: Int

Error code for other errors

Value: 1

ERROR_PARSING_CONTAINER_MALFORMED

Added in API level 31
static val ERROR_PARSING_CONTAINER_MALFORMED: Int

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

Value: 11

ERROR_PARSING_CONTAINER_UNSUPPORTED

Added in API level 31
static val ERROR_PARSING_CONTAINER_UNSUPPORTED: Int

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

Value: 34

ERROR_PARSING_MANIFEST_MALFORMED

Added in API level 31
static val ERROR_PARSING_MANIFEST_MALFORMED: Int

Error code for a parsing error associated to a media manifest

Value: 10

ERROR_PARSING_MANIFEST_UNSUPPORTED

Added in API level 31
static val ERROR_PARSING_MANIFEST_UNSUPPORTED: Int

Error code for an unsupported feature in a media manifest

Value: 33

ERROR_PARSING_OTHER

Added in API level 31
static val ERROR_PARSING_OTHER: Int

Error code for other media parsing errors

Value: 12

ERROR_PLAYER_BEHIND_LIVE_WINDOW

Added in API level 31
static val ERROR_PLAYER_BEHIND_LIVE_WINDOW: Int

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

Value: 21

ERROR_PLAYER_OTHER

Added in API level 31
static val ERROR_PLAYER_OTHER: Int

Error code for other player errors

Value: 22

ERROR_PLAYER_REMOTE

Added in API level 31
static val ERROR_PLAYER_REMOTE: Int

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

Value: 20

ERROR_RUNTIME

Added in API level 31
static val ERROR_RUNTIME: Int

Error code for runtime errors

Value: 2

ERROR_UNKNOWN

Added in API level 31
static val ERROR_UNKNOWN: Int

Unknown error code.

Value: 0

Public methods

describeContents

Added in API level 31
fun describeContents(): Int
Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR

equals

Added in API level 31
fun equals(other: Any?): Boolean

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
obj the reference object with which to compare.
o This value may be null.
Return
Boolean true if this object is the same as the obj argument; false otherwise.

getErrorCode

Added in API level 31
fun getErrorCode(): Int

Gets error code.

Return
Int Value is android.media.metrics.PlaybackErrorEvent#ERROR_UNKNOWN, android.media.metrics.PlaybackErrorEvent#ERROR_OTHER, android.media.metrics.PlaybackErrorEvent#ERROR_RUNTIME, android.media.metrics.PlaybackErrorEvent#ERROR_IO_NETWORK_UNAVAILABLE, android.media.metrics.PlaybackErrorEvent#ERROR_IO_NETWORK_CONNECTION_FAILED, android.media.metrics.PlaybackErrorEvent#ERROR_IO_BAD_HTTP_STATUS, android.media.metrics.PlaybackErrorEvent#ERROR_IO_DNS_FAILED, android.media.metrics.PlaybackErrorEvent#ERROR_IO_CONNECTION_TIMEOUT, android.media.metrics.PlaybackErrorEvent#ERROR_IO_CONNECTION_CLOSED, android.media.metrics.PlaybackErrorEvent#ERROR_IO_OTHER, android.media.metrics.PlaybackErrorEvent#ERROR_PARSING_MANIFEST_MALFORMED, android.media.metrics.PlaybackErrorEvent#ERROR_PARSING_CONTAINER_MALFORMED, android.media.metrics.PlaybackErrorEvent#ERROR_PARSING_OTHER, android.media.metrics.PlaybackErrorEvent#ERROR_DECODER_INIT_FAILED, android.media.metrics.PlaybackErrorEvent#ERROR_DECODING_FAILED, android.media.metrics.PlaybackErrorEvent#ERROR_DECODING_FORMAT_EXCEEDS_CAPABILITIES, android.media.metrics.PlaybackErrorEvent#ERROR_DECODING_OTHER, android.media.metrics.PlaybackErrorEvent#ERROR_AUDIO_TRACK_INIT_FAILED, android.media.metrics.PlaybackErrorEvent#ERROR_AUDIO_TRACK_WRITE_FAILED, android.media.metrics.PlaybackErrorEvent#ERROR_AUDIO_TRACK_OTHER, android.media.metrics.PlaybackErrorEvent#ERROR_PLAYER_REMOTE, android.media.metrics.PlaybackErrorEvent#ERROR_PLAYER_BEHIND_LIVE_WINDOW, android.media.metrics.PlaybackErrorEvent#ERROR_PLAYER_OTHER, android.media.metrics.PlaybackErrorEvent#ERROR_DRM_SCHEME_UNSUPPORTED, android.media.metrics.PlaybackErrorEvent#ERROR_DRM_PROVISIONING_FAILED, android.media.metrics.PlaybackErrorEvent#ERROR_DRM_LICENSE_ACQUISITION_FAILED, android.media.metrics.PlaybackErrorEvent#ERROR_DRM_DISALLOWED_OPERATION, android.media.metrics.PlaybackErrorEvent#ERROR_DRM_SYSTEM_ERROR, android.media.metrics.PlaybackErrorEvent#ERROR_DRM_CONTENT_ERROR, android.media.metrics.PlaybackErrorEvent#ERROR_DRM_DEVICE_REVOKED, android.media.metrics.PlaybackErrorEvent#ERROR_DRM_OTHER, android.media.metrics.PlaybackErrorEvent#ERROR_IO_FILE_NOT_FOUND, android.media.metrics.PlaybackErrorEvent#ERROR_IO_NO_PERMISSION, android.media.metrics.PlaybackErrorEvent#ERROR_PARSING_MANIFEST_UNSUPPORTED, android.media.metrics.PlaybackErrorEvent#ERROR_PARSING_CONTAINER_UNSUPPORTED, or android.media.metrics.PlaybackErrorEvent#ERROR_DECODING_FORMAT_UNSUPPORTED

getMetricsBundle

Added in API level 31
fun getMetricsBundle(): Bundle

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

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

Return
Bundle This value cannot be null.

getSubErrorCode

Added in API level 31
fun getSubErrorCode(): Int

Gets sub error code.

Return
Int Value is between Integer.MIN_VALUE and Integer.MAX_VALUE inclusive

getTimeSinceCreatedMillis

Added in API level 31
fun getTimeSinceCreatedMillis(): Long

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

Return
Long the timestamp since the playback is created, or -1 if unknown. Value is -1 or greater

hashCode

Added in API level 31
fun hashCode(): Int
Return
Int a hash code value for this object.

toString

Added in API level 31
fun toString(): String
Return
String a string representation of the object.

writeToParcel

Added in API level 31
fun writeToParcel(
    dest: Parcel,
    flags: Int
): Unit

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_WRITE_RETURN_VALUE. Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES

Properties

CREATOR

Added in API level 31
static val CREATOR: Parcelable.Creator<PlaybackErrorEvent!>