# ExoPlaybackException

Artifact: [androidx.media3:media3-exoplayer](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/exoplayer/ExoPlaybackException.java+class:androidx.media3.exoplayer.ExoPlaybackException)

*** ** * ** ***


```
class ExoPlaybackException : PlaybackException
```

<br />

|---|---|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||||
| ↳ | [kotlin.Throwable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html) ||||
|   | ↳ | [java.lang.Exception](https://developer.android.com/reference/java/lang/Exception.html) |||
|   |   | ↳ | [androidx.media3.common.PlaybackException](https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException) ||
|   |   |   | ↳ | [androidx.media3.exoplayer.ExoPlaybackException](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException) |

*** ** * ** ***

Thrown when a non locally recoverable playback failure occurs.

## Summary

| ### Nested types |
|---|
| `@https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi @https://developer.android.com/reference/java/lang/annotation/Documented.html @https://developer.android.com/reference/java/lang/annotation/Retention.html(value = https://developer.android.com/reference/java/lang/annotation/RetentionPolicy.html#SOURCE) @https://developer.android.com/reference/java/lang/annotation/Target.html(value = ) @https://developer.android.com/reference/kotlin/androidx/annotation/IntDef(value = ) annotation https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException.Type` The type of source that produced the error. |

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#TYPE_REMOTE() = 3` The error occurred in a remote component. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#TYPE_RENDERER() = 1` The error occurred in a `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/Renderer`. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#TYPE_SOURCE() = 0` The error occurred loading data from a `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource`. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#TYPE_UNEXPECTED() = 2` The error was an unexpected `https://developer.android.com/reference/java/lang/RuntimeException.html`. |

| ### Public functions |
|---|---|
| `java-static https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException!` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#createForRemote(java.lang.String)(message: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!)` Creates an instance of type `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#TYPE_REMOTE()`. |
| `java-static https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException!` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi [createForRenderer](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#createForRenderer(java.lang.Throwable,java.lang.String,int,androidx.media3.common.Format,int,boolean,int))( cause: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html!, rendererName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, rendererIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, rendererFormat: https://developer.android.com/reference/kotlin/androidx/media3/common/Format?, @https://developer.android.com/reference/kotlin/androidx/media3/common/C.FormatSupport rendererFormatSupport: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, isRecoverable: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, @https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException.ErrorCode errorCode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html )` **This function is deprecated.** Use `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#createForRenderer(java.lang.Throwable,java.lang.String,int,androidx.media3.common.Format,int,androidx.media3.exoplayer.source.MediaSource.MediaPeriodId,boolean,int)` instead. <br /> |
| `java-static https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException!` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#createForRenderer(java.lang.Throwable,java.lang.String,int,androidx.media3.common.Format,int,androidx.media3.exoplayer.source.MediaSource.MediaPeriodId,boolean,int)( cause: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html!, rendererName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!, rendererIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, rendererFormat: https://developer.android.com/reference/kotlin/androidx/media3/common/Format?, @https://developer.android.com/reference/kotlin/androidx/media3/common/C.FormatSupport rendererFormatSupport: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, mediaPeriodId: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource.MediaPeriodId?, isRecoverable: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, @https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException.ErrorCode errorCode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html )` Creates an instance of type `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#TYPE_RENDERER()`. |
| `java-static https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException!` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#createForSource(java.io.IOException,int)(cause: https://developer.android.com/reference/java/io/IOException.html!, errorCode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Creates an instance of type `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#TYPE_SOURCE()`. |
| `java-static https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException!` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi [createForUnexpected](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#createForUnexpected(java.lang.RuntimeException))(cause: https://developer.android.com/reference/java/lang/RuntimeException.html!)` **This function is deprecated.** Use `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#createForUnexpected(java.lang.RuntimeException,int)` instead. <br /> |
| `java-static https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException!` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#createForUnexpected(java.lang.RuntimeException,int)( cause: https://developer.android.com/reference/java/lang/RuntimeException.html!, @https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException.ErrorCode errorCode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html )` Creates an instance of type `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#TYPE_UNEXPECTED()`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#errorInfoEquals(androidx.media3.common.PlaybackException)(that: https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException?)` Returns whether the error data associated to this exception equals the error data associated to `other`. |
| `https://developer.android.com/reference/java/lang/Exception.html!` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#getRendererException()()` Retrieves the underlying error when `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#type()` is `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#TYPE_RENDERER()`. |
| `https://developer.android.com/reference/java/io/IOException.html!` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#getSourceException()()` Retrieves the underlying error when `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#type()` is `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#TYPE_SOURCE()`. |
| `https://developer.android.com/reference/java/lang/RuntimeException.html!` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#getUnexpectedException()()` Retrieves the underlying error when `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#type()` is `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#TYPE_UNEXPECTED()`. |

| ### Public properties |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource.MediaPeriodId?` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#mediaPeriodId()` The `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource.MediaPeriodId` of the media associated with this error, or null if undetermined. |
| `https://developer.android.com/reference/kotlin/androidx/media3/common/Format?` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#rendererFormat()` If `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#type()` is `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#TYPE_RENDERER()`, this is the `https://developer.android.com/reference/kotlin/androidx/media3/common/Format` the renderer was using at the time of the exception, or null if the renderer wasn't using a `https://developer.android.com/reference/kotlin/androidx/media3/common/Format`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi @https://developer.android.com/reference/kotlin/androidx/media3/common/C.FormatSupport https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#rendererFormatSupport()` If `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#type()` is `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#TYPE_RENDERER()`, this is the level of `https://developer.android.com/reference/kotlin/androidx/media3/common/C.FormatSupport` of the renderer for `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#rendererFormat()`. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#rendererIndex()` If `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#type()` is `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#TYPE_RENDERER()`, this is the index of the renderer. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html?` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#rendererName()` If `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#type()` is `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#TYPE_RENDERER()`, this is the name of the renderer. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi @https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException.Type https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#type()` The `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException.Type` of the playback failure. |

| ### Inherited Constants |
|---|
| From [androidx.media3.common.PlaybackException](https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException) |---|---| | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#CUSTOM_ERROR_CODE_BASE() = 1000000` Player implementations that want to surface custom errors can use error codes greater than this value, so as to avoid collision with other error codes defined in this class. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_AUDIO_TRACK_INIT_FAILED() = 5001` Caused by an AudioTrack initialization failure. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_AUDIO_TRACK_OFFLOAD_INIT_FAILED() = 5004` Caused by an AudioTrack init operation failure in offload mode. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_AUDIO_TRACK_OFFLOAD_WRITE_FAILED() = 5003` Caused by an AudioTrack write operation failure in offload mode. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_AUDIO_TRACK_WRITE_FAILED() = 5002` Caused by an AudioTrack write operation failure. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_AUTHENTICATION_EXPIRED() = -102` Caused by expired authentication. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_BAD_VALUE() = -3` Caused by an argument that is illegal. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_BEHIND_LIVE_WINDOW() = 1002` Caused by the loading position falling behind the sliding window of available live content. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_CONCURRENT_STREAM_LIMIT() = -104` Caused by too many concurrent streams. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_CONTENT_ALREADY_PLAYING() = -110` Caused by a request for content that was already playing. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_DECODER_INIT_FAILED() = 4001` Caused by a decoder initialization failure. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_DECODER_QUERY_FAILED() = 4002` Caused by a decoder query failure. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_DECODING_FAILED() = 4003` Caused by a failure while trying to decode media samples. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_DECODING_FORMAT_EXCEEDS_CAPABILITIES() = 4004` Caused by trying to decode content whose format exceeds the capabilities of the device. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_DECODING_FORMAT_UNSUPPORTED() = 4005` Caused by trying to decode content whose format is not supported. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_DECODING_RESOURCES_RECLAIMED() = 4006` Caused by higher priority task reclaiming resources needed for decoding. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_DISCONNECTED() = -100` Caused by a disconnected component. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_DRM_CONTENT_ERROR() = 6003` Caused by attempting to play incompatible DRM-protected content. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_DRM_DEVICE_REVOKED() = 6007` Caused by the device having revoked DRM privileges. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_DRM_DISALLOWED_OPERATION() = 6005` Caused by an operation being disallowed by a license policy. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_DRM_LICENSE_ACQUISITION_FAILED() = 6004` Caused by a failure while trying to obtain a license. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_DRM_LICENSE_EXPIRED() = 6008` Caused by an expired DRM license being loaded into an open DRM session. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_DRM_PROVISIONING_FAILED() = 6002` Caused by a failure while provisioning the device. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_DRM_SCHEME_UNSUPPORTED() = 6001` Caused by a chosen DRM protection scheme not being supported by the device. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_DRM_SYSTEM_ERROR() = 6006` Caused by an error in the DRM system. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_DRM_UNSPECIFIED() = 6000` Caused by an unspecified error related to DRM protection. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_END_OF_PLAYLIST() = -109` Caused by navigation that failed because the playlist was exhausted. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_FAILED_RUNTIME_CHECK() = 1004` Caused by a failed runtime check. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_INVALID_STATE() = -2` Caused by a command that cannot be completed because the current state is not valid. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_IO_BAD_HTTP_STATUS() = 2004` Caused by an HTTP server returning an unexpected HTTP response status code. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_IO_CLEARTEXT_NOT_PERMITTED() = 2007` Caused by the player trying to access cleartext HTTP traffic (meaning http:// rather than https://) when the app's Network Security Configuration does not permit it. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_IO_FILE_NOT_FOUND() = 2005` Caused by a non-existent file. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_IO_INVALID_HTTP_CONTENT_TYPE() = 2003` Caused by a server returning a resource with an invalid "Content-Type" HTTP header value. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_IO_NETWORK_CONNECTION_FAILED() = 2001` Caused by a network connection failure. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_IO_NETWORK_CONNECTION_TIMEOUT() = 2002` Caused by a network timeout, meaning the server is taking too long to fulfill a request. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_IO_NO_PERMISSION() = 2006` Caused by lack of permission to perform an IO operation. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_IO_READ_POSITION_OUT_OF_RANGE() = 2008` Caused by reading data out of the data bound. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_IO_UNSPECIFIED() = 2000` Caused by an Input/Output error which could not be identified. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_NOT_AVAILABLE_IN_REGION() = -106` Caused by the content being blocked due to being regionally unavailable. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_NOT_SUPPORTED() = -6` Caused by a command that is not supported. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_PARENTAL_CONTROL_RESTRICTED() = -105` Caused by the content being blocked due to parental controls. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_PARSING_CONTAINER_MALFORMED() = 3001` Caused by a parsing error associated with a media container format bitstream. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_PARSING_CONTAINER_UNSUPPORTED() = 3003` Caused by attempting to extract a file with an unsupported media container format, or an unsupported media container feature. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_PARSING_MANIFEST_MALFORMED() = 3002` Caused by a parsing error associated with a media manifest. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_PARSING_MANIFEST_UNSUPPORTED() = 3004` Caused by an unsupported feature in a media manifest. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_PERMISSION_DENIED() = -4` Caused by a command that is not allowed. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_PREMIUM_ACCOUNT_REQUIRED() = -103` Caused by a premium account that is required but the user is not subscribed. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_REMOTE_ERROR() = 1001` Caused by an unidentified error in a remote Player, which is a Player that runs on a different host or process. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_SETUP_REQUIRED() = -108` Caused by playback that needs manual user intervention. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_SKIP_LIMIT_REACHED() = -107` Caused by the skip limit that is exhausted. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_TIMEOUT() = 1003` Caused by a generic timeout. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_UNSPECIFIED() = 1000` Caused by an error whose cause could not be identified. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_VIDEO_FRAME_PROCESSING_FAILED() = 7001` Caused by a failure when processing a video frame. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#ERROR_CODE_VIDEO_FRAME_PROCESSOR_INIT_FAILED() = 7000` Caused by a failure when initializing a `https://developer.android.com/reference/kotlin/androidx/media3/common/VideoFrameProcessor`. | | `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#FIELD_CUSTOM_ID_BASE() = 1000` Defines a minimum field ID value for subclasses to use when implementing `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#toBundle()` and delegating to `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#PlaybackException(android.os.Bundle)`. | |

| ### Inherited functions |
|---|
| From [androidx.media3.common.PlaybackException](https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException) |---|---| | `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#areErrorInfosEqual(androidx.media3.common.PlaybackException,androidx.media3.common.PlaybackException)( playbackException1: https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException?, playbackException2: https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException? )` Returns true if both `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException` instances have `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#errorInfoEquals(androidx.media3.common.PlaybackException)` or both are null. | | `java-static https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException!` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#fromBundle(android.os.Bundle)(bundle: https://developer.android.com/reference/android/os/Bundle.html!)` Restores a `PlaybackException` from a `https://developer.android.com/reference/android/os/Bundle.html`. | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#getErrorCodeName()()` Equivalent to `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#getErrorCodeName(int)`. | | `java-static https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#getErrorCodeName(int)(@https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException.ErrorCode errorCode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Returns the name of a given `errorCode`. | | `https://developer.android.com/reference/android/os/Bundle.html!` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi @https://developer.android.com/reference/kotlin/androidx/annotation/CallSuper https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#toBundle()()` Returns a `https://developer.android.com/reference/android/os/Bundle.html` representing the information stored in this exception. | |
| From [java.lang.Throwable](https://developer.android.com/reference/java/lang/Throwable.html) |---|---| | `synchronized https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/add-suppressed.html(exception: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html!)` | | `synchronized https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html!` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/fill-in-stack-trace.html()` | | `synchronized https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html!` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/get-cause.html()` | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/get-localized-message.html()` | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/get-message.html()` | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/java/lang/StackTraceElement.html!>!` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/get-stack-trace.html()` | | `synchronized https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html!>!` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/get-suppressed.html()` | | `synchronized https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html!` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/init-cause.html(cause: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html!)` | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/print-stack-trace.html()` | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/set-stack-trace.html(stackTrace: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-array/index.html<https://developer.android.com/reference/java/lang/StackTraceElement.html!>!)` | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/to-string.html()` | |

| ### Inherited properties |
|---|
| From [androidx.media3.common.PlaybackException](https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException) |---|---| | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException.ErrorCode https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#errorCode()` An error code which identifies the cause of the playback failure. | | `https://developer.android.com/reference/android/os/Bundle.html!` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#extras()` An extras `https://developer.android.com/reference/android/os/Bundle.html`. | | `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#timestampMs()` The value of `https://developer.android.com/reference/android/os/SystemClock.html#elapsedRealtime()` when this exception was created. | |

## Constants

### TYPE_REMOTE

```
@UnstableApi
const val TYPE_REMOTE = 3: Int
```

The error occurred in a remote component.

Call `https://developer.android.com/reference/java/lang/Throwable.html#getMessage()` to retrieve the message associated with the error.

### TYPE_RENDERER

```
@UnstableApi
const val TYPE_RENDERER = 1: Int
```

The error occurred in a `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/Renderer`.

Call `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#getRendererException()` to retrieve the underlying cause.

### TYPE_SOURCE

```
@UnstableApi
const val TYPE_SOURCE = 0: Int
```

The error occurred loading data from a `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource`.

Call `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#getSourceException()` to retrieve the underlying cause.

### TYPE_UNEXPECTED

```
@UnstableApi
const val TYPE_UNEXPECTED = 2: Int
```

The error was an unexpected `https://developer.android.com/reference/java/lang/RuntimeException.html`.

Call `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#getUnexpectedException()` to retrieve the underlying cause.

## Public functions

### createForRemote

```
@UnstableApi
java-static fun createForRemote(message: String!): ExoPlaybackException!
```

Creates an instance of type `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#TYPE_REMOTE()`.

| Parameters |
|---|---|
| `message: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | The message associated with the error. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException!` | The created instance. |

### createForRenderer

```
@UnstableApi
java-static fun [createForRenderer](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#createForRenderer(java.lang.Throwable,java.lang.String,int,androidx.media3.common.Format,int,boolean,int))(
    cause: Throwable!,
    rendererName: String!,
    rendererIndex: Int,
    rendererFormat: Format?,
    @C.FormatSupport rendererFormatSupport: Int,
    isRecoverable: Boolean,
    @PlaybackException.ErrorCode errorCode: Int
): ExoPlaybackException!
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#createForRenderer(java.lang.Throwable,java.lang.String,int,androidx.media3.common.Format,int,androidx.media3.exoplayer.source.MediaSource.MediaPeriodId,boolean,int)` instead.

### createForRenderer

```
@UnstableApi
java-static fun createForRenderer(
    cause: Throwable!,
    rendererName: String!,
    rendererIndex: Int,
    rendererFormat: Format?,
    @C.FormatSupport rendererFormatSupport: Int,
    mediaPeriodId: MediaSource.MediaPeriodId?,
    isRecoverable: Boolean,
    @PlaybackException.ErrorCode errorCode: Int
): ExoPlaybackException!
```

Creates an instance of type `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#TYPE_RENDERER()`.

| Parameters |
|---|---|
| `cause: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html!` | The cause of the failure. |
| `rendererName: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!` | The `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/Renderer#getName()` of the renderer in which the failure occurred. |
| `rendererIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The index of the renderer in which the failure occurred. |
| `rendererFormat: https://developer.android.com/reference/kotlin/androidx/media3/common/Format?` | The `https://developer.android.com/reference/kotlin/androidx/media3/common/Format` the renderer was using at the time of the exception, or null if the renderer wasn't using a `https://developer.android.com/reference/kotlin/androidx/media3/common/Format`. |
| `@https://developer.android.com/reference/kotlin/androidx/media3/common/C.FormatSupport rendererFormatSupport: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The `https://developer.android.com/reference/kotlin/androidx/media3/common/C.FormatSupport` of the renderer for ` rendererFormat`. Ignored if `rendererFormat` is null. |
| `mediaPeriodId: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource.MediaPeriodId?` | The `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource.MediaPeriodId` of the media associated with this error, or null if undetermined. |
| `isRecoverable: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | If the failure can be recovered by disabling and re-enabling the renderer. |
| `@https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException.ErrorCode errorCode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | See `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#errorCode()`. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException!` | The created instance. |

### createForSource

```
@UnstableApi
java-static fun createForSource(cause: IOException!, errorCode: Int): ExoPlaybackException!
```

Creates an instance of type `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#TYPE_SOURCE()`.

| Parameters |
|---|---|
| `cause: https://developer.android.com/reference/java/io/IOException.html!` | The cause of the failure. |
| `errorCode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | See `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#errorCode()`. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException!` | The created instance. |

### createForUnexpected

```
@UnstableApi
java-static fun [createForUnexpected](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#createForUnexpected(java.lang.RuntimeException))(cause: RuntimeException!): ExoPlaybackException!
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#createForUnexpected(java.lang.RuntimeException,int)` instead.

### createForUnexpected

```
@UnstableApi
java-static fun createForUnexpected(
    cause: RuntimeException!,
    @PlaybackException.ErrorCode errorCode: Int
): ExoPlaybackException!
```

Creates an instance of type `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#TYPE_UNEXPECTED()`.

| Parameters |
|---|---|
| `cause: https://developer.android.com/reference/java/lang/RuntimeException.html!` | The cause of the failure. |
| `@https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException.ErrorCode errorCode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | See `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#errorCode()`. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException!` | The created instance. |

### errorInfoEquals

```
fun errorInfoEquals(that: PlaybackException?): Boolean
```

Returns whether the error data associated to this exception equals the error data associated to `other`.

Note that this method does not compare the exceptions' stack traces and `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException#extras()`.

### getRendererException

```
@UnstableApi
fun getRendererException(): Exception!
```

Retrieves the underlying error when `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#type()` is `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#TYPE_RENDERER()`.

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#type()` is not `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#TYPE_RENDERER()`. |

### getSourceException

```
@UnstableApi
fun getSourceException(): IOException!
```

Retrieves the underlying error when `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#type()` is `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#TYPE_SOURCE()`.

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#type()` is not `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#TYPE_SOURCE()`. |

### getUnexpectedException

```
@UnstableApi
fun getUnexpectedException(): RuntimeException!
```

Retrieves the underlying error when `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#type()` is `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#TYPE_UNEXPECTED()`.

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalStateException.html` | If `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#type()` is not `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#TYPE_UNEXPECTED()`. |

## Public properties

### mediaPeriodId

```
@UnstableApi
val mediaPeriodId: MediaSource.MediaPeriodId?
```

The `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource.MediaPeriodId` of the media associated with this error, or null if undetermined.

### rendererFormat

```
@UnstableApi
val rendererFormat: Format?
```

If `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#type()` is `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#TYPE_RENDERER()`, this is the `https://developer.android.com/reference/kotlin/androidx/media3/common/Format` the renderer was using at the time of the exception, or null if the renderer wasn't using a `https://developer.android.com/reference/kotlin/androidx/media3/common/Format`.

### rendererFormatSupport

```
@UnstableApi
@C.FormatSupport
val rendererFormatSupport: Int
```

If `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#type()` is `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#TYPE_RENDERER()`, this is the level of `https://developer.android.com/reference/kotlin/androidx/media3/common/C.FormatSupport` of the renderer for `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#rendererFormat()`. If `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#rendererFormat()` is null, this is `https://developer.android.com/reference/kotlin/androidx/media3/common/C#FORMAT_HANDLED()`.

### rendererIndex

```
@UnstableApi
val rendererIndex: Int
```

If `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#type()` is `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#TYPE_RENDERER()`, this is the index of the renderer.

### rendererName

```
@UnstableApi
val rendererName: String?
```

If `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#type()` is `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException#TYPE_RENDERER()`, this is the name of the renderer.

### type

```
@UnstableApi
@ExoPlaybackException.Type
val type: Int
```

The `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException.Type` of the playback failure.