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 |
Describe the kinds of special objects contained in this Parcelable instance's marshaled representation. |
| 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()Returns a hash code value for the object. |
| String |
toString()Returns a string representation of the object. |
| 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: 17ERROR_AUDIO_TRACK_OTHER
static val ERROR_AUDIO_TRACK_OTHER: Int
Error code for other AudioTrack errors
Value: 19ERROR_AUDIO_TRACK_WRITE_FAILED
static val ERROR_AUDIO_TRACK_WRITE_FAILED: Int
Error code for an AudioTrack write operation failure
Value: 18ERROR_DECODER_INIT_FAILED
static val ERROR_DECODER_INIT_FAILED: Int
Error code for a decoder initialization failure
Value: 13ERROR_DECODING_FAILED
static val ERROR_DECODING_FAILED: Int
Error code for a failure while trying to decode media samples
Value: 14ERROR_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: 15ERROR_DECODING_FORMAT_UNSUPPORTED
static val ERROR_DECODING_FORMAT_UNSUPPORTED: Int
Error code for trying to decode content whose format is not supported
Value: 35ERROR_DECODING_OTHER
static val ERROR_DECODING_OTHER: Int
Error code for other decoding errors
Value: 16ERROR_DRM_CONTENT_ERROR
static val ERROR_DRM_CONTENT_ERROR: Int
Error code for attempting to play incompatible DRM-protected content
Value: 28ERROR_DRM_DEVICE_REVOKED
static val ERROR_DRM_DEVICE_REVOKED: Int
Error code for the device having revoked DRM privileges
Value: 29ERROR_DRM_DISALLOWED_OPERATION
static val ERROR_DRM_DISALLOWED_OPERATION: Int
Error code an operation being disallowed by a license policy
Value: 26ERROR_DRM_LICENSE_ACQUISITION_FAILED
static val ERROR_DRM_LICENSE_ACQUISITION_FAILED: Int
Error code for a failure while trying to obtain a license
Value: 25ERROR_DRM_OTHER
static val ERROR_DRM_OTHER: Int
Error code for other DRM errors
Value: 30ERROR_DRM_PROVISIONING_FAILED
static val ERROR_DRM_PROVISIONING_FAILED: Int
Error code for a failure while provisioning the device
Value: 24ERROR_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: 23ERROR_DRM_SYSTEM_ERROR
static val ERROR_DRM_SYSTEM_ERROR: Int
Error code for an error in the DRM system
Value: 27ERROR_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: 5ERROR_IO_CONNECTION_CLOSED
static val ERROR_IO_CONNECTION_CLOSED: Int
Error code for an existing network connection being unexpectedly closed
Value: 8ERROR_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: 7ERROR_IO_DNS_FAILED
static val ERROR_IO_DNS_FAILED: Int
Error code for failing to resolve a hostname
Value: 6ERROR_IO_FILE_NOT_FOUND
static val ERROR_IO_FILE_NOT_FOUND: Int
Error code for a non-existent file
Value: 31ERROR_IO_NETWORK_CONNECTION_FAILED
static val ERROR_IO_NETWORK_CONNECTION_FAILED: Int
Error code for a failure while establishing a network connection
Value: 4ERROR_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: 3ERROR_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: 32ERROR_IO_OTHER
static val ERROR_IO_OTHER: Int
Error code for other Input/Output errors
Value: 9ERROR_PARSING_CONTAINER_MALFORMED
static val ERROR_PARSING_CONTAINER_MALFORMED: Int
Error code for a parsing error associated to a media container format bitstream
Value: 11ERROR_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: 34ERROR_PARSING_MANIFEST_MALFORMED
static val ERROR_PARSING_MANIFEST_MALFORMED: Int
Error code for a parsing error associated to a media manifest
Value: 10ERROR_PARSING_MANIFEST_UNSUPPORTED
static val ERROR_PARSING_MANIFEST_UNSUPPORTED: Int
Error code for an unsupported feature in a media manifest
Value: 33ERROR_PARSING_OTHER
static val ERROR_PARSING_OTHER: Int
Error code for other media parsing errors
Value: 12ERROR_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: 21ERROR_PLAYER_OTHER
static val ERROR_PLAYER_OTHER: Int
Error code for other player errors
Value: 22ERROR_PLAYER_REMOTE
static val ERROR_PLAYER_REMOTE: Int
Error code for an unidentified error in a remote controller or player
Value: 20ERROR_RUNTIME
static val ERROR_RUNTIME: Int
Error code for runtime errors
Value: 2Public methods
describeContents
fun describeContents(): Int
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.
| Return | |
|---|---|
Int |
a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or
|
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
xandy,x.equals(y)should returntrueif and only ify.equals(x)returnstrue. - It is transitive: for any non-null reference values
x,y, andz, ifx.equals(y)returnstrueandy.equals(z)returnstrue, thenx.equals(z)should returntrue. - It is consistent: for any non-null reference values
xandy, multiple invocations ofx.equals(y)consistently returntrueor consistently returnfalse, provided no information used inequalscomparisons 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 java.lang.Integer#MIN_VALUE and java.lang.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 |
hashCode
fun hashCode(): Int
Returns a hash code value for the object. This method is supported for the benefit of hash tables such as those provided by java.util.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
hashCodemethod must consistently return the same integer, provided no information used inequalscomparisons 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
equalsmethod, then calling thehashCodemethod 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
equalsmethod, then calling thehashCodemethod 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.
| Return | |
|---|---|
Int |
a hash code value for this object. |
toString
fun toString(): String
Returns a string representation of the object.
| 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 the following:
|