PlaybackErrorEvent
class PlaybackErrorEvent : Event, Parcelable
kotlin.Any | ||
↳ | android.media.metrics.Event | |
↳ | android.media.metrics.PlaybackErrorEvent |
Playback error event.
Summary
Nested classes | |
---|---|
A builder for |
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 |
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 |
hashCode() |
String |
toString() |
Unit |
writeToParcel(dest: Parcel, flags: Int) Flatten this object in to a Parcel. |
Properties | |
---|---|
static Parcelable.Creator<PlaybackErrorEvent!> |
Constants
ERROR_AUDIO_TRACK_INIT_FAILED
static val ERROR_AUDIO_TRACK_INIT_FAILED: Int
Error code for an AudioTrack initialization failure
Value: 17
ERROR_AUDIO_TRACK_OTHER
static val ERROR_AUDIO_TRACK_OTHER: Int
Error code for other AudioTrack errors
Value: 19
ERROR_AUDIO_TRACK_WRITE_FAILED
static val ERROR_AUDIO_TRACK_WRITE_FAILED: Int
Error code for an AudioTrack write operation failure
Value: 18
ERROR_DECODER_INIT_FAILED
static val ERROR_DECODER_INIT_FAILED: Int
Error code for a decoder initialization failure
Value: 13
ERROR_DECODING_FAILED
static val ERROR_DECODING_FAILED: Int
Error code for a failure while trying to decode media samples
Value: 14
ERROR_DECODING_FORMAT_EXCEEDS_CAPABILITIES
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
static val ERROR_DECODING_FORMAT_UNSUPPORTED: Int
Error code for trying to decode content whose format is not supported
Value: 35
ERROR_DECODING_OTHER
static val ERROR_DECODING_OTHER: Int
Error code for other decoding errors
Value: 16
ERROR_DRM_CONTENT_ERROR
static val ERROR_DRM_CONTENT_ERROR: Int
Error code for attempting to play incompatible DRM-protected content
Value: 28
ERROR_DRM_DEVICE_REVOKED
static val ERROR_DRM_DEVICE_REVOKED: Int
Error code for the device having revoked DRM privileges
Value: 29
ERROR_DRM_DISALLOWED_OPERATION
static val ERROR_DRM_DISALLOWED_OPERATION: Int
Error code an operation being disallowed by a license policy
Value: 26
ERROR_DRM_LICENSE_ACQUISITION_FAILED
static val ERROR_DRM_LICENSE_ACQUISITION_FAILED: Int
Error code for a failure while trying to obtain a license
Value: 25
ERROR_DRM_OTHER
static val ERROR_DRM_OTHER: Int
Error code for other DRM errors
Value: 30
ERROR_DRM_PROVISIONING_FAILED
static val ERROR_DRM_PROVISIONING_FAILED: Int
Error code for a failure while provisioning the device
Value: 24
ERROR_DRM_SCHEME_UNSUPPORTED
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
static val ERROR_DRM_SYSTEM_ERROR: Int
Error code for an error in the DRM system
Value: 27
ERROR_IO_BAD_HTTP_STATUS
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
static val ERROR_IO_CONNECTION_CLOSED: Int
Error code for an existing network connection being unexpectedly closed
Value: 8
ERROR_IO_CONNECTION_TIMEOUT
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
static val ERROR_IO_DNS_FAILED: Int
Error code for failing to resolve a hostname
Value: 6
ERROR_IO_FILE_NOT_FOUND
static val ERROR_IO_FILE_NOT_FOUND: Int
Error code for a non-existent file
Value: 31
ERROR_IO_NETWORK_CONNECTION_FAILED
static val ERROR_IO_NETWORK_CONNECTION_FAILED: Int
Error code for a failure while establishing a network connection
Value: 4
ERROR_IO_NETWORK_UNAVAILABLE
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
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
static val ERROR_IO_OTHER: Int
Error code for other Input/Output errors
Value: 9
ERROR_PARSING_CONTAINER_MALFORMED
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
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
static val ERROR_PARSING_MANIFEST_MALFORMED: Int
Error code for a parsing error associated to a media manifest
Value: 10
ERROR_PARSING_MANIFEST_UNSUPPORTED
static val ERROR_PARSING_MANIFEST_UNSUPPORTED: Int
Error code for an unsupported feature in a media manifest
Value: 33
ERROR_PARSING_OTHER
static val ERROR_PARSING_OTHER: Int
Error code for other media parsing errors
Value: 12
ERROR_PLAYER_BEHIND_LIVE_WINDOW
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
static val ERROR_PLAYER_OTHER: Int
Error code for other player errors
Value: 22
ERROR_PLAYER_REMOTE
static val ERROR_PLAYER_REMOTE: Int
Error code for an unidentified error in a remote controller or player
Value: 20
ERROR_RUNTIME
static val ERROR_RUNTIME: Int
Error code for runtime errors
Value: 2
Public methods
describeContents
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
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 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 | |
---|---|
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
fun getErrorCode(): Int
Gets error code.
getMetricsBundle
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
fun getSubErrorCode(): Int
Gets sub error code.
Return | |
---|---|
Int |
Value is between Integer.MIN_VALUE and Integer.MAX_VALUE inclusive |
getTimeSinceCreatedMillis
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 |
toString
fun toString(): String
Return | |
---|---|
String |
a string representation of the object. |
writeToParcel
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 |