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 |
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
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
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 returntrue
. - It is symmetric: for any non-null reference values
x
andy
,x.equals(y)
should returntrue
if and only ify.equals(x)
returnstrue
. - It is transitive: for any non-null reference values
x
,y
, andz
, ifx.equals(y)
returnstrue
andy.equals(z)
returnstrue
, thenx.equals(z)
should returntrue
. - It is consistent: for any non-null reference values
x
andy
, multiple invocations ofx.equals(y)
consistently returntrue
or consistently returnfalse
, provided no information used inequals
comparisons on the objects is modified. - For any non-null reference value
x
,x.equals(null)
should returnfalse
.
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
public int getErrorCode ()
Gets error code.
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:
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 inequals
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 thehashCode
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 thehashCode
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
public String toString ()
Returns a string representation of the object.
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 |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-04-11 UTC.