# SimpleExoPlayer

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/SimpleExoPlayer.java+class:androidx.media3.exoplayer.SimpleExoPlayer)

*** ** * ** ***


```
@UnstableApi
class SimpleExoPlayer : BasePlayer, ExoPlayer
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.media3.common.BasePlayer](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer) ||
|   | ↳ | [androidx.media3.exoplayer.SimpleExoPlayer](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer) |

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
>
> Use `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer` instead.

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer.Builder` **This class is deprecated.** Use `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer.Builder` instead. <br /> |

| ### Protected constructors |
|---|
| `[SimpleExoPlayer](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#SimpleExoPlayer(androidx.media3.exoplayer.SimpleExoPlayer.Builder))(builder: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer.Builder!)` **This function is deprecated.** Deprecated in Java |
| `[SimpleExoPlayer](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#SimpleExoPlayer(android.content.Context,androidx.media3.exoplayer.RenderersFactory,androidx.media3.exoplayer.trackselection.TrackSelector,androidx.media3.exoplayer.source.MediaSource.Factory,androidx.media3.exoplayer.LoadControl,androidx.media3.exoplayer.upstream.BandwidthMeter,androidx.media3.exoplayer.analytics.AnalyticsCollector,boolean,androidx.media3.common.util.Clock,android.os.Looper))( context: https://developer.android.com/reference/android/content/Context.html!, renderersFactory: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/RenderersFactory!, trackSelector: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/trackselection/TrackSelector!, mediaSourceFactory: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource.Factory!, loadControl: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/LoadControl!, bandwidthMeter: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/upstream/BandwidthMeter!, analyticsCollector: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/analytics/AnalyticsCollector!, useLazyPreparation: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, clock: https://developer.android.com/reference/kotlin/androidx/media3/common/util/Clock!, applicationLooper: https://developer.android.com/reference/android/os/Looper.html! )` **This function is deprecated.** Use the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer.Builder`. <br /> |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[addAnalyticsListener](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#addAnalyticsListener(androidx.media3.exoplayer.analytics.AnalyticsListener))(listener: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/analytics/AnalyticsListener!)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[addAudioCodecParametersChangeListener](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#addAudioCodecParametersChangeListener(androidx.media3.exoplayer.CodecParametersChangeListener,java.util.List<java.lang.String>))( listener: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/CodecParametersChangeListener!, keys: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!>! )` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[addAudioOffloadListener](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#addAudioOffloadListener(androidx.media3.exoplayer.ExoPlayer.AudioOffloadListener))(listener: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer.AudioOffloadListener!)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[addListener](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#addListener(androidx.media3.common.Player.Listener))(listener: https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener!)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[addMediaItems](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#addMediaItems(int,java.util.List<androidx.media3.common.MediaItem>))(index: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, mediaItems: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem!>!)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[addMediaSource](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#addMediaSource(androidx.media3.exoplayer.source.MediaSource))(mediaSource: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource!)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[addMediaSource](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#addMediaSource(int,androidx.media3.exoplayer.source.MediaSource))(index: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, mediaSource: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource!)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[addMediaSources](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#addMediaSources(java.util.List<androidx.media3.exoplayer.source.MediaSource>))(mediaSources: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource!>!)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[addMediaSources](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#addMediaSources(int,java.util.List<androidx.media3.exoplayer.source.MediaSource>))(index: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, mediaSources: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource!>!)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[addVideoCodecParametersChangeListener](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#addVideoCodecParametersChangeListener(androidx.media3.exoplayer.CodecParametersChangeListener,java.util.List<java.lang.String>))( listener: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/CodecParametersChangeListener!, keys: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!>! )` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[addVideoFrameMetadataListener](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#addVideoFrameMetadataListener(androidx.media3.exoplayer.video.VideoFrameMetadataListener))(listener: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/video/VideoFrameMetadataListener!)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[clearAuxEffectInfo](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#clearAuxEffectInfo())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[clearCameraMotionListener](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#clearCameraMotionListener(androidx.media3.exoplayer.video.spherical.CameraMotionListener))(listener: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/video/spherical/CameraMotionListener!)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[clearVideoFrameMetadataListener](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#clearVideoFrameMetadataListener(androidx.media3.exoplayer.video.VideoFrameMetadataListener))(listener: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/video/VideoFrameMetadataListener!)` **This function is deprecated.** Use `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer#removeVideoFrameMetadataListener(androidx.media3.exoplayer.video.VideoFrameMetadataListener)` instead. <br /> |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[clearVideoSurface](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#clearVideoSurface())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[clearVideoSurface](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#clearVideoSurface(android.view.Surface))(surface: https://developer.android.com/reference/android/view/Surface.html?)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[clearVideoSurfaceHolder](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#clearVideoSurfaceHolder(android.view.SurfaceHolder))(surfaceHolder: https://developer.android.com/reference/android/view/SurfaceHolder.html?)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[clearVideoSurfaceView](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#clearVideoSurfaceView(android.view.SurfaceView))(surfaceView: https://developer.android.com/reference/android/view/SurfaceView.html?)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[clearVideoTextureView](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#clearVideoTextureView(android.view.TextureView))(textureView: https://developer.android.com/reference/android/view/TextureView.html?)` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/PlayerMessage!` | `[createMessage](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#createMessage(androidx.media3.exoplayer.PlayerMessage.Target))(target: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/PlayerMessage.Target!)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[decreaseDeviceVolume](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#decreaseDeviceVolume())()` **This function is deprecated.** Use `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#decreaseDeviceVolume(int)` instead. <br /> |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[decreaseDeviceVolume](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#decreaseDeviceVolume(int))(@https://developer.android.com/reference/kotlin/androidx/media3/common/C.VolumeFlags flags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/analytics/AnalyticsCollector!` | `[getAnalyticsCollector](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getAnalyticsCollector())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/android/os/Looper.html!` | `[getApplicationLooper](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getApplicationLooper())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/media3/common/AudioAttributes!` | `[getAudioAttributes](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getAudioAttributes())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/DecoderCounters?` | `[getAudioDecoderCounters](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getAudioDecoderCounters())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/media3/common/Format?` | `[getAudioFormat](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getAudioFormat())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `[getAudioSessionId](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getAudioSessionId())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Commands!` | `[getAvailableCommands](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getAvailableCommands())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `[getBufferedPosition](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getBufferedPosition())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/media3/common/util/Clock!` | `[getClock](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getClock())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `[getContentBufferedPosition](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getContentBufferedPosition())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `[getContentPosition](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getContentPosition())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `[getCurrentAdGroupIndex](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getCurrentAdGroupIndex())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `[getCurrentAdIndexInAdGroup](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getCurrentAdIndexInAdGroup())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/media3/common/text/CueGroup!` | `[getCurrentCues](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getCurrentCues())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `[getCurrentMediaItemIndex](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getCurrentMediaItemIndex())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `[getCurrentPeriodIndex](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getCurrentPeriodIndex())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `[getCurrentPosition](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getCurrentPosition())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/media3/common/Timeline!` | `[getCurrentTimeline](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getCurrentTimeline())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/TrackGroupArray!` | `[getCurrentTrackGroups](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getCurrentTrackGroups())()` **This function is deprecated.** Use `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getCurrentTracks()`. <br /> |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/trackselection/TrackSelectionArray!` | `[getCurrentTrackSelections](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getCurrentTrackSelections())()` **This function is deprecated.** Use `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getCurrentTracks()`. <br /> |
| `https://developer.android.com/reference/kotlin/androidx/media3/common/Tracks!` | `[getCurrentTracks](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getCurrentTracks())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/media3/common/DeviceInfo!` | `[getDeviceInfo](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getDeviceInfo())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `[getDeviceVolume](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getDeviceVolume())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `[getDuration](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getDuration())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `[getMaxSeekToPreviousPosition](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getMaxSeekToPreviousPosition())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaMetadata!` | `[getMediaMetadata](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getMediaMetadata())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `[getPauseAtEndOfMediaItems](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getPauseAtEndOfMediaItems())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `[getPlayWhenReady](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getPlayWhenReady())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/android/os/Looper.html!` | `[getPlaybackLooper](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getPlaybackLooper())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackParameters!` | `[getPlaybackParameters](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getPlaybackParameters())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/Player.State [getPlaybackState](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getPlaybackState())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/Player.PlaybackSuppressionReason [getPlaybackSuppressionReason](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getPlaybackSuppressionReason())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException?` | `[getPlayerError](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getPlayerError())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaMetadata!` | `[getPlaylistMetadata](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getPlaylistMetadata())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer.PreloadConfiguration!` | `[getPreloadConfiguration](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getPreloadConfiguration())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/Renderer!` | `[getRenderer](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getRenderer(int))(index: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `[getRendererCount](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getRendererCount())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/C.TrackType [getRendererType](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getRendererType(int))(index: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/Player.RepeatMode [getRepeatMode](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getRepeatMode())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ScrubbingModeParameters!` | `[getScrubbingModeParameters](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getScrubbingModeParameters())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/Renderer?` | `[getSecondaryRenderer](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getSecondaryRenderer(int))(index: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `[getSeekBackIncrement](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getSeekBackIncrement())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `[getSeekForwardIncrement](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getSeekForwardIncrement())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SeekParameters!` | `[getSeekParameters](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getSeekParameters())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `[getShuffleModeEnabled](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getShuffleModeEnabled())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ShuffleOrder!` | `[getShuffleOrder](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getShuffleOrder())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `[getSkipSilenceEnabled](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getSkipSilenceEnabled())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/media3/common/util/Size!` | `[getSurfaceSize](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getSurfaceSize())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `[getTotalBufferedDuration](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getTotalBufferedDuration())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/media3/common/TrackSelectionParameters!` | `[getTrackSelectionParameters](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getTrackSelectionParameters())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/trackselection/TrackSelector!` | `[getTrackSelector](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getTrackSelector())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/C.VideoChangeFrameRateStrategy [getVideoChangeFrameRateStrategy](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getVideoChangeFrameRateStrategy())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/DecoderCounters?` | `[getVideoDecoderCounters](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getVideoDecoderCounters())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/media3/common/Format?` | `[getVideoFormat](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getVideoFormat())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/C.VideoScalingMode [getVideoScalingMode](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getVideoScalingMode())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/media3/common/VideoSize!` | `[getVideoSize](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getVideoSize())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `[getVolume](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getVolume())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[increaseDeviceVolume](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#increaseDeviceVolume())()` **This function is deprecated.** Use `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#increaseDeviceVolume(int)` instead. <br /> |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[increaseDeviceVolume](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#increaseDeviceVolume(int))(@https://developer.android.com/reference/kotlin/androidx/media3/common/C.VolumeFlags flags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `[isDeviceMuted](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#isDeviceMuted())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `[isLoading](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#isLoading())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `[isPlayingAd](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#isPlayingAd())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `[isReleased](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#isReleased())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `[isScrubbingModeEnabled](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#isScrubbingModeEnabled())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `[isSleepingForOffload](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#isSleepingForOffload())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `[isTunnelingEnabled](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#isTunnelingEnabled())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[moveMediaItems](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#moveMediaItems(int,int,int))(fromIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, toIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, newIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[mute](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#mute())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[prepare](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#prepare())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[prepare](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#prepare(androidx.media3.exoplayer.source.MediaSource))(mediaSource: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource!)` **This function is deprecated.** Use `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setMediaSource(androidx.media3.exoplayer.source.MediaSource)` and `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#prepare()` instead. <br /> |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[prepare](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#prepare(androidx.media3.exoplayer.source.MediaSource,boolean,boolean))( mediaSource: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource!, resetPosition: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, resetState: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html )` **This function is deprecated.** Use `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setMediaSource(androidx.media3.exoplayer.source.MediaSource,boolean)` and `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#prepare()` instead. <br /> |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[release](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#release())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[removeAnalyticsListener](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#removeAnalyticsListener(androidx.media3.exoplayer.analytics.AnalyticsListener))(listener: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/analytics/AnalyticsListener!)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[removeAudioCodecParametersChangeListener](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#removeAudioCodecParametersChangeListener(androidx.media3.exoplayer.CodecParametersChangeListener))( listener: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/CodecParametersChangeListener! )` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[removeAudioOffloadListener](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#removeAudioOffloadListener(androidx.media3.exoplayer.ExoPlayer.AudioOffloadListener))(listener: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer.AudioOffloadListener!)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[removeListener](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#removeListener(androidx.media3.common.Player.Listener))(listener: https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener!)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[removeMediaItems](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#removeMediaItems(int,int))(fromIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, toIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[removeVideoCodecParametersChangeListener](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#removeVideoCodecParametersChangeListener(androidx.media3.exoplayer.CodecParametersChangeListener))( listener: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/CodecParametersChangeListener! )` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[removeVideoFrameMetadataListener](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#removeVideoFrameMetadataListener(androidx.media3.exoplayer.video.VideoFrameMetadataListener))(listener: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/video/VideoFrameMetadataListener!)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[replaceMediaItems](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#replaceMediaItems(int,int,java.util.List<androidx.media3.common.MediaItem>))( fromIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, toIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, mediaItems: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem!>! )` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setAudioAttributes](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setAudioAttributes(androidx.media3.common.AudioAttributes,boolean))( audioAttributes: https://developer.android.com/reference/kotlin/androidx/media3/common/AudioAttributes!, handleAudioFocus: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html )` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setAudioCodecParameters](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setAudioCodecParameters(androidx.media3.exoplayer.CodecParameters))(codecParameters: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/CodecParameters!)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setAudioSessionId](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setAudioSessionId(int))(audioSessionId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setAuxEffectInfo](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setAuxEffectInfo(androidx.media3.common.AuxEffectInfo))(auxEffectInfo: https://developer.android.com/reference/kotlin/androidx/media3/common/AuxEffectInfo!)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setCameraMotionListener](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setCameraMotionListener(androidx.media3.exoplayer.video.spherical.CameraMotionListener))(listener: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/video/spherical/CameraMotionListener!)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setDeviceMuted](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setDeviceMuted(boolean))(muted: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` **This function is deprecated.** Use `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setDeviceMuted(boolean,int)` instead. <br /> |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setDeviceMuted](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setDeviceMuted(boolean,int))(muted: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html, @https://developer.android.com/reference/kotlin/androidx/media3/common/C.VolumeFlags flags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setDeviceVolume](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setDeviceVolume(int))(volume: 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/SimpleExoPlayer#setDeviceVolume(int,int)` instead. <br /> |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setDeviceVolume](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setDeviceVolume(int,int))(volume: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, @https://developer.android.com/reference/kotlin/androidx/media3/common/C.VolumeFlags flags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setEnforceAdPlaybackOnTimelineRefresh](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setEnforceAdPlaybackOnTimelineRefresh(boolean))( enforceAdPlaybackOnTimelineRefresh: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html )` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setForegroundMode](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setForegroundMode(boolean))(foregroundMode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setHandleAudioBecomingNoisy](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setHandleAudioBecomingNoisy(boolean))(handleAudioBecomingNoisy: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setImageOutput](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setImageOutput(androidx.media3.exoplayer.image.ImageOutput))(imageOutput: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/image/ImageOutput?)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setMaxSeekToPreviousPositionMs](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setMaxSeekToPreviousPositionMs(long))(maxSeekToPreviousPositionMs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setMediaItems](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setMediaItems(java.util.List<androidx.media3.common.MediaItem>,boolean))( mediaItems: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem!>!, resetPosition: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html )` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setMediaItems](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setMediaItems(java.util.List<androidx.media3.common.MediaItem>,int,long))( mediaItems: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem!>!, startIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, startPositionMs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html )` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setMediaSource](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setMediaSource(androidx.media3.exoplayer.source.MediaSource))(mediaSource: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource!)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setMediaSource](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setMediaSource(androidx.media3.exoplayer.source.MediaSource,boolean))(mediaSource: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource!, resetPosition: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setMediaSource](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setMediaSource(androidx.media3.exoplayer.source.MediaSource,long))(mediaSource: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource!, startPositionMs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setMediaSources](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setMediaSources(java.util.List<androidx.media3.exoplayer.source.MediaSource>))(mediaSources: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource!>!)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setMediaSources](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setMediaSources(java.util.List<androidx.media3.exoplayer.source.MediaSource>,boolean))( mediaSources: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource!>!, resetPosition: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html )` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setMediaSources](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setMediaSources(java.util.List<androidx.media3.exoplayer.source.MediaSource>,int,long))( mediaSources: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource!>!, startMediaItemIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, startPositionMs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html )` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setPauseAtEndOfMediaItems](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setPauseAtEndOfMediaItems(boolean))(pauseAtEndOfMediaItems: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setPlayWhenReady](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setPlayWhenReady(boolean))(playWhenReady: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setPlaybackParameters](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setPlaybackParameters(androidx.media3.common.PlaybackParameters))(playbackParameters: https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackParameters!)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setPlaylistMetadata](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setPlaylistMetadata(androidx.media3.common.MediaMetadata))(mediaMetadata: https://developer.android.com/reference/kotlin/androidx/media3/common/MediaMetadata!)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setPreferredAudioDevice](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setPreferredAudioDevice(android.media.AudioDeviceInfo))(audioDeviceInfo: https://developer.android.com/reference/android/media/AudioDeviceInfo.html?)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setPreloadConfiguration](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setPreloadConfiguration(androidx.media3.exoplayer.ExoPlayer.PreloadConfiguration))( preloadConfiguration: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer.PreloadConfiguration! )` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setPriority](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setPriority(int))(@https://developer.android.com/reference/kotlin/androidx/media3/common/C.Priority priority: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setPriorityTaskManager](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setPriorityTaskManager(androidx.media3.common.PriorityTaskManager))(priorityTaskManager: https://developer.android.com/reference/kotlin/androidx/media3/common/PriorityTaskManager?)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setRepeatMode](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setRepeatMode(int))(@https://developer.android.com/reference/kotlin/androidx/media3/common/Player.RepeatMode repeatMode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setScrubbingModeEnabled](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setScrubbingModeEnabled(boolean))(scrubbingModeEnabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setScrubbingModeParameters](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setScrubbingModeParameters(androidx.media3.exoplayer.ScrubbingModeParameters))( scrubbingModeParameters: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ScrubbingModeParameters! )` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setSeekBackIncrementMs](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setSeekBackIncrementMs(long))(seekBackIncrementMs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setSeekForwardIncrementMs](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setSeekForwardIncrementMs(long))(seekForwardIncrementMs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setSeekParameters](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setSeekParameters(androidx.media3.exoplayer.SeekParameters))(seekParameters: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SeekParameters?)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setShuffleModeEnabled](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setShuffleModeEnabled(boolean))(shuffleModeEnabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setShuffleOrder](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setShuffleOrder(androidx.media3.exoplayer.source.ShuffleOrder))(shuffleOrder: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ShuffleOrder!)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setSkipSilenceEnabled](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setSkipSilenceEnabled(boolean))(skipSilenceEnabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setTrackSelectionParameters](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setTrackSelectionParameters(androidx.media3.common.TrackSelectionParameters))(parameters: https://developer.android.com/reference/kotlin/androidx/media3/common/TrackSelectionParameters!)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setVideoChangeFrameRateStrategy](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setVideoChangeFrameRateStrategy(int))( @https://developer.android.com/reference/kotlin/androidx/media3/common/C.VideoChangeFrameRateStrategy videoChangeFrameRateStrategy: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html )` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setVideoCodecParameters](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setVideoCodecParameters(androidx.media3.exoplayer.CodecParameters))(codecParameters: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/CodecParameters!)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setVideoEffects](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setVideoEffects(java.util.List<androidx.media3.common.Effect>))(videoEffects: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/common/Effect!>!)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setVideoFrameMetadataListener](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setVideoFrameMetadataListener(androidx.media3.exoplayer.video.VideoFrameMetadataListener))(listener: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/video/VideoFrameMetadataListener!)` **This function is deprecated.** Use `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer#addVideoFrameMetadataListener(androidx.media3.exoplayer.video.VideoFrameMetadataListener)` and `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer#removeVideoFrameMetadataListener(androidx.media3.exoplayer.video.VideoFrameMetadataListener)` instead. <br /> |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setVideoScalingMode](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setVideoScalingMode(int))(@https://developer.android.com/reference/kotlin/androidx/media3/common/C.VideoScalingMode videoScalingMode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setVideoSurface](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setVideoSurface(android.view.Surface))(surface: https://developer.android.com/reference/android/view/Surface.html?)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setVideoSurfaceHolder](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setVideoSurfaceHolder(android.view.SurfaceHolder))(surfaceHolder: https://developer.android.com/reference/android/view/SurfaceHolder.html?)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setVideoSurfaceView](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setVideoSurfaceView(android.view.SurfaceView))(surfaceView: https://developer.android.com/reference/android/view/SurfaceView.html?)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setVideoTextureView](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setVideoTextureView(android.view.TextureView))(textureView: https://developer.android.com/reference/android/view/TextureView.html?)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setVirtualDeviceId](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setVirtualDeviceId(int))(virtualDeviceId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setVolume](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setVolume(float))(volume: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[setWakeMode](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setWakeMode(int))(@https://developer.android.com/reference/kotlin/androidx/media3/common/C.WakeMode wakeMode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[stop](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#stop())()` **This function is deprecated.** Deprecated in Java |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[unmute](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#unmute())()` **This function is deprecated.** Deprecated in Java |

| ### Protected functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `[seekTo](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#seekTo(int,long,int,boolean))( mediaItemIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, positionMs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html, @https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Command seekCommand: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, isRepeatingCurrentItem: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html )` **This function is deprecated.** Deprecated in Java |

### Inherited Constants

From [androidx.media3.exoplayer.ExoPlayer](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer) `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` `@https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi
https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer#DEFAULT_DETACH_SURFACE_TIMEOUT_MS() = 2000`

**This property is deprecated.**

Use `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer.Builder#DEFAULT_DETACH_SURFACE_TIMEOUT_MS()` instead.

<br />

`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` `@https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi
https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer#DEFAULT_RELEASE_TIMEOUT_MS() = 500`

**This property is deprecated.**

Use `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer.Builder#DEFAULT_RELEASE_TIMEOUT_MS()` instead.

<br />

`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/ExoPlayer#DEFAULT_STUCK_BUFFERING_DETECTION_TIMEOUT_MS() = 600000`

**This property is deprecated.**

Use `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer.Builder#DEFAULT_STUCK_BUFFERING_DETECTION_TIMEOUT_MS()` instead.

<br />

`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/ExoPlayer#DEFAULT_STUCK_PLAYING_NOT_ENDING_TIMEOUT_MS() = 60000`

**This property is deprecated.**

Use `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer.Builder#DEFAULT_STUCK_PLAYING_NOT_ENDING_TIMEOUT_MS()` instead.

<br />

`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/ExoPlayer#DEFAULT_STUCK_SUPPRESSED_DETECTION_TIMEOUT_MS() = 600000`

**This property is deprecated.**

Use `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer.Builder#DEFAULT_STUCK_SUPPRESSED_DETECTION_TIMEOUT_MS()` instead.

<br />

From [androidx.media3.common.Player](https://developer.android.com/reference/kotlin/androidx/media3/common/Player) `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_ADJUST_DEVICE_VOLUME() = 26`

**This property is deprecated.**

Use `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_ADJUST_DEVICE_VOLUME_WITH_FLAGS()` instead.

<br />

`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_ADJUST_DEVICE_VOLUME_WITH_FLAGS() = 34`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_CHANGE_MEDIA_ITEMS() = 20`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_AUDIO_ATTRIBUTES() = 21`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_CURRENT_MEDIA_ITEM() = 16`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_DEVICE_VOLUME() = 23`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_MEDIA_ITEMS_METADATA() = 18`

**This property is deprecated.**

Use `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_METADATA()` instead.

<br />

`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_METADATA() = 18`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_TEXT() = 28`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_TIMELINE() = 17`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_TRACKS() = 30`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_VOLUME() = 22`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_INVALID() = -1`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_PLAY_PAUSE() = 1`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_PREPARE() = 2`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_RELEASE() = 32`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SEEK_BACK() = 11`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SEEK_FORWARD() = 12`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SEEK_IN_CURRENT_MEDIA_ITEM() = 5`

**This property is deprecated.** Deprecated in Java
`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/Player#COMMAND_SEEK_IN_CURRENT_WINDOW() = 5`

**This property is deprecated.**

Use `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SEEK_IN_CURRENT_MEDIA_ITEM()` instead.

<br />

`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SEEK_TO_DEFAULT_POSITION() = 4`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SEEK_TO_MEDIA_ITEM() = 10`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SEEK_TO_NEXT() = 9`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SEEK_TO_NEXT_MEDIA_ITEM() = 8`

**This property is deprecated.** Deprecated in Java
`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/Player#COMMAND_SEEK_TO_NEXT_WINDOW() = 8`

**This property is deprecated.**

Use `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SEEK_TO_NEXT_MEDIA_ITEM()` instead.

<br />

`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SEEK_TO_PREVIOUS() = 7`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM() = 6`

**This property is deprecated.** Deprecated in Java
`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/Player#COMMAND_SEEK_TO_PREVIOUS_WINDOW() = 6`

**This property is deprecated.**

Use `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM()` instead.

<br />

`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/Player#COMMAND_SEEK_TO_WINDOW() = 10`

**This property is deprecated.**

Use `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SEEK_TO_MEDIA_ITEM()` instead.

<br />

`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_AUDIO_ATTRIBUTES() = 35`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_DEVICE_VOLUME() = 25`

**This property is deprecated.**

Use `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_DEVICE_VOLUME_WITH_FLAGS()` instead.

<br />

`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_DEVICE_VOLUME_WITH_FLAGS() = 33`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_MEDIA_ITEM() = 31`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_MEDIA_ITEMS_METADATA() = 19`

**This property is deprecated.**

Use `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_PLAYLIST_METADATA()` instead.

<br />

`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_PLAYLIST_METADATA() = 19`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_REPEAT_MODE() = 15`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_SHUFFLE_MODE() = 14`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_SPEED_AND_PITCH() = 13`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_TRACK_SELECTION_PARAMETERS() = 29`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_VIDEO_SURFACE() = 27`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_VOLUME() = 24`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_STOP() = 3`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#DISCONTINUITY_REASON_AUTO_TRANSITION() = 0`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#DISCONTINUITY_REASON_INTERNAL() = 5`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#DISCONTINUITY_REASON_REMOVE() = 4`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#DISCONTINUITY_REASON_SEEK() = 1`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#DISCONTINUITY_REASON_SEEK_ADJUSTMENT() = 2`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#DISCONTINUITY_REASON_SILENCE_SKIP() = 6`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#DISCONTINUITY_REASON_SKIP() = 3`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_AUDIO_ATTRIBUTES_CHANGED() = 20`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_AUDIO_SESSION_ID() = 21`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_AVAILABLE_COMMANDS_CHANGED() = 13`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_CUES() = 27`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_DEVICE_INFO_CHANGED() = 29`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_DEVICE_VOLUME_CHANGED() = 30`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_IS_LOADING_CHANGED() = 3`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_IS_PLAYING_CHANGED() = 7`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_MAX_SEEK_TO_PREVIOUS_POSITION_CHANGED() = 18`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_MEDIA_ITEM_TRANSITION() = 1`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_MEDIA_METADATA_CHANGED() = 14`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_METADATA() = 28`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_PLAYBACK_PARAMETERS_CHANGED() = 12`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_PLAYBACK_STATE_CHANGED() = 4`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_PLAYBACK_SUPPRESSION_REASON_CHANGED() = 6`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_PLAYER_ERROR() = 10`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_PLAYLIST_METADATA_CHANGED() = 15`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_PLAY_WHEN_READY_CHANGED() = 5`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_POSITION_DISCONTINUITY() = 11`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_RENDERED_FIRST_FRAME() = 26`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_REPEAT_MODE_CHANGED() = 8`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_SEEK_BACK_INCREMENT_CHANGED() = 16`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_SEEK_FORWARD_INCREMENT_CHANGED() = 17`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_SHUFFLE_MODE_ENABLED_CHANGED() = 9`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_SKIP_SILENCE_ENABLED_CHANGED() = 23`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_SURFACE_SIZE_CHANGED() = 24`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_TIMELINE_CHANGED() = 0`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_TRACKS_CHANGED() = 2`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_TRACK_SELECTION_PARAMETERS_CHANGED() = 19`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_VIDEO_SIZE_CHANGED() = 25`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_VOLUME_CHANGED() = 22`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#MEDIA_ITEM_TRANSITION_REASON_AUTO() = 1`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#MEDIA_ITEM_TRANSITION_REASON_PLAYLIST_CHANGED() = 3`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#MEDIA_ITEM_TRANSITION_REASON_REPEAT() = 0`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#MEDIA_ITEM_TRANSITION_REASON_SEEK() = 2`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#PLAYBACK_SUPPRESSION_REASON_NONE() = 0`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#PLAYBACK_SUPPRESSION_REASON_SCRUBBING() = 4`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#PLAYBACK_SUPPRESSION_REASON_TRANSIENT_AUDIO_FOCUS_LOSS() = 1`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#PLAYBACK_SUPPRESSION_REASON_UNSUITABLE_AUDIO_OUTPUT() = 3`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#PLAYBACK_SUPPRESSION_REASON_UNSUITABLE_AUDIO_ROUTE() = 2`

**This property is deprecated.**

Use `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#PLAYBACK_SUPPRESSION_REASON_UNSUITABLE_AUDIO_OUTPUT()` instead.

<br />

`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#PLAY_WHEN_READY_CHANGE_REASON_AUDIO_BECOMING_NOISY() = 3`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#PLAY_WHEN_READY_CHANGE_REASON_AUDIO_FOCUS_LOSS() = 2`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#PLAY_WHEN_READY_CHANGE_REASON_END_OF_MEDIA_ITEM() = 5`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#PLAY_WHEN_READY_CHANGE_REASON_REMOTE() = 4`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#PLAY_WHEN_READY_CHANGE_REASON_SUPPRESSED_TOO_LONG() = 6`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#PLAY_WHEN_READY_CHANGE_REASON_USER_REQUEST() = 1`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#REPEAT_MODE_ALL() = 2`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#REPEAT_MODE_OFF() = 0`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#REPEAT_MODE_ONE() = 1`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#STATE_BUFFERING() = 2`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#STATE_ENDED() = 4`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#STATE_IDLE() = 1`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#STATE_READY() = 3`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#TIMELINE_CHANGE_REASON_PLAYLIST_CHANGED() = 0`

**This property is deprecated.** Deprecated in Java
`const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#TIMELINE_CHANGE_REASON_SOURCE_UPDATE() = 1`

**This property is deprecated.** Deprecated in Java

### Inherited functions

From [androidx.media3.common.BasePlayer](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer) `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[addMediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#addMediaItem(androidx.media3.common.MediaItem))(mediaItem: https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[addMediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#addMediaItem(int,androidx.media3.common.MediaItem))(index: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, mediaItem: https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[addMediaItems](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#addMediaItems(java.util.List<androidx.media3.common.MediaItem>))(mediaItems: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem!>!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[canAdvertiseSession](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#canAdvertiseSession())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[clearMediaItems](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#clearMediaItems())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `[getBufferedPercentage](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#getBufferedPercentage())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` `[getContentDuration](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#getContentDuration())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` `[getCurrentLiveOffset](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#getCurrentLiveOffset())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html?` `[getCurrentManifest](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#getCurrentManifest())()`

**This function is deprecated.** Deprecated in Java
`https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem?` `[getCurrentMediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#getCurrentMediaItem())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `[getCurrentWindowIndex](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#getCurrentWindowIndex())()`

**This function is deprecated.**

Use `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getCurrentMediaItemIndex()` instead.

<br />

`https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem!` `[getMediaItemAt](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#getMediaItemAt(int))(index: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `[getMediaItemCount](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#getMediaItemCount())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `[getNextMediaItemIndex](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#getNextMediaItemIndex())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `[getNextWindowIndex](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#getNextWindowIndex())()`

**This function is deprecated.**

Use `https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#getNextMediaItemIndex()` instead.

<br />

`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `[getPreviousMediaItemIndex](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#getPreviousMediaItemIndex())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` `[getPreviousWindowIndex](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#getPreviousWindowIndex())()`

**This function is deprecated.**

Use `https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#getPreviousMediaItemIndex()` instead.

<br />

`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[hasNextMediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#hasNextMediaItem())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[hasPreviousMediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#hasPreviousMediaItem())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[isCommandAvailable](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#isCommandAvailable(int))(@https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Command command: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[isCurrentMediaItemDynamic](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#isCurrentMediaItemDynamic())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[isCurrentMediaItemLive](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#isCurrentMediaItemLive())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[isCurrentMediaItemSeekable](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#isCurrentMediaItemSeekable())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[isCurrentWindowDynamic](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#isCurrentWindowDynamic())()`

**This function is deprecated.**

Use `https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#isCurrentMediaItemDynamic()` instead.

<br />

`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[isCurrentWindowLive](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#isCurrentWindowLive())()`

**This function is deprecated.**

Use `https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#isCurrentMediaItemLive()` instead.

<br />

`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[isCurrentWindowSeekable](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#isCurrentWindowSeekable())()`

**This function is deprecated.**

Use `https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#isCurrentMediaItemSeekable()` instead.

<br />

`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` `[isPlaying](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#isPlaying())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[moveMediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#moveMediaItem(int,int))(currentIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, newIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[pause](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#pause())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[play](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#play())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[removeMediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#removeMediaItem(int))(index: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[replaceMediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#replaceMediaItem(int,androidx.media3.common.MediaItem))(index: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, mediaItem: https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[seekBack](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#seekBack())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[seekForward](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#seekForward())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[seekTo](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#seekTo(long))(positionMs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[seekTo](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#seekTo(int,long))(mediaItemIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html, positionMs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[seekToDefaultPosition](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#seekToDefaultPosition())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[seekToDefaultPosition](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#seekToDefaultPosition(int))(mediaItemIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[seekToNext](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#seekToNext())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[seekToNextMediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#seekToNextMediaItem())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[seekToPrevious](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#seekToPrevious())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[seekToPreviousMediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#seekToPreviousMediaItem())()`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setMediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#setMediaItem(androidx.media3.common.MediaItem))(mediaItem: https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setMediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#setMediaItem(androidx.media3.common.MediaItem,boolean))(mediaItem: https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem!, resetPosition: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setMediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#setMediaItem(androidx.media3.common.MediaItem,long))(mediaItem: https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem!, startPositionMs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setMediaItems](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#setMediaItems(java.util.List<androidx.media3.common.MediaItem>))(mediaItems: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem!>!)`

**This function is deprecated.** Deprecated in Java
`https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setPlaybackSpeed](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#setPlaybackSpeed(float))(speed: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`

**This function is deprecated.** Deprecated in Java
From [androidx.media3.common.Player](https://developer.android.com/reference/kotlin/androidx/media3/common/Player) `abstract https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` `[setPlaybackSpeed](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#setPlaybackSpeed(float))(speed: @https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange(from = 0, fromInclusive = false) https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`

**This function is deprecated.** Deprecated in Java

### Inherited properties

From [androidx.media3.common.BasePlayer](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer) `https://developer.android.com/reference/kotlin/androidx/media3/common/Timeline.Window!` `https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#window()`

**This property is deprecated.** Deprecated in Java

## Protected constructors

### SimpleExoPlayer

```
protected [SimpleExoPlayer](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#SimpleExoPlayer(androidx.media3.exoplayer.SimpleExoPlayer.Builder))(builder: SimpleExoPlayer.Builder!)
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

| Parameters |
|---|---|
| `builder: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer.Builder!` | The `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer.Builder` to obtain all construction parameters. |

### SimpleExoPlayer

```
protected [SimpleExoPlayer](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#SimpleExoPlayer(android.content.Context,androidx.media3.exoplayer.RenderersFactory,androidx.media3.exoplayer.trackselection.TrackSelector,androidx.media3.exoplayer.source.MediaSource.Factory,androidx.media3.exoplayer.LoadControl,androidx.media3.exoplayer.upstream.BandwidthMeter,androidx.media3.exoplayer.analytics.AnalyticsCollector,boolean,androidx.media3.common.util.Clock,android.os.Looper))(
    context: Context!,
    renderersFactory: RenderersFactory!,
    trackSelector: TrackSelector!,
    mediaSourceFactory: MediaSource.Factory!,
    loadControl: LoadControl!,
    bandwidthMeter: BandwidthMeter!,
    analyticsCollector: AnalyticsCollector!,
    useLazyPreparation: Boolean,
    clock: Clock!,
    applicationLooper: Looper!
)
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer.Builder`.

## Public functions

### addAnalyticsListener

```
fun [addAnalyticsListener](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#addAnalyticsListener(androidx.media3.exoplayer.analytics.AnalyticsListener))(listener: AnalyticsListener!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Adds an `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/analytics/AnalyticsListener` to receive analytics events.

This method can be called from any thread.

| Parameters |
|---|---|
| `listener: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/analytics/AnalyticsListener!` | The listener to be added. |

### addAudioCodecParametersChangeListener

```
fun [addAudioCodecParametersChangeListener](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#addAudioCodecParametersChangeListener(androidx.media3.exoplayer.CodecParametersChangeListener,java.util.List<java.lang.String>))(
    listener: CodecParametersChangeListener!,
    keys: (Mutable)List<String!>!
): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Adds a listener for audio codec parameter changes.

The listener will be called on the application thread. Upon registration, the listener will be immediately called with the last known values for the subscribed keys.

The default `https://developer.android.com/reference/android/media/MediaCodec.html` based renderers only support this feature on API level 29 and above.

**Note:** When used with `https://developer.android.com/reference/android/media/MediaCodec.html`, observing vendor-specific parameter changes requires API level 31 or higher. On API levels 29 and 30, any requested vendor-specific keys will be ignored.

| Parameters |
|---|---|
| `listener: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/CodecParametersChangeListener!` | The `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/CodecParametersChangeListener` to add. |
| `keys: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!>!` | The list of parameter keys to subscribe to. |

### addAudioOffloadListener

```
fun [addAudioOffloadListener](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#addAudioOffloadListener(androidx.media3.exoplayer.ExoPlayer.AudioOffloadListener))(listener: ExoPlayer.AudioOffloadListener!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Adds a listener to receive audio offload events.

This method can be called from any thread.

| Parameters |
|---|---|
| `listener: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer.AudioOffloadListener!` | The listener to register. |

### addListener

```
fun [addListener](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#addListener(androidx.media3.common.Player.Listener))(listener: Player.Listener!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Registers a listener to receive all events from the player.

The listener's methods will be called on the thread associated with `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getApplicationLooper()`.

This method can be called from any thread.

| Parameters |
|---|---|
| `listener: https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener!` | The listener to register. |

### addMediaItems

```
fun [addMediaItems](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#addMediaItems(int,java.util.List<androidx.media3.common.MediaItem>))(index: Int, mediaItems: (Mutable)List<MediaItem!>!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Adds a list of media items at the given index of the playlist.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_CHANGE_MEDIA_ITEMS()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

| Parameters |
|---|---|
| `index: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The index at which to add the media items. If the index is larger than the size of the playlist, the media items are added to the end of the playlist. |
| `mediaItems: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem!>!` | The `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem` to add. |

### addMediaSource

```
fun [addMediaSource](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#addMediaSource(androidx.media3.exoplayer.source.MediaSource))(mediaSource: MediaSource!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Adds a media source to the end of the playlist.

| Parameters |
|---|---|
| `mediaSource: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource!` | The `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource` to add. |

### addMediaSource

```
fun [addMediaSource](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#addMediaSource(int,androidx.media3.exoplayer.source.MediaSource))(index: Int, mediaSource: MediaSource!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Adds a media source at the given index of the playlist.

| Parameters |
|---|---|
| `index: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The index at which to add the source. |
| `mediaSource: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource!` | The `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource` to add. |

### addMediaSources

```
fun [addMediaSources](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#addMediaSources(java.util.List<androidx.media3.exoplayer.source.MediaSource>))(mediaSources: (Mutable)List<MediaSource!>!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Adds a list of media sources to the end of the playlist.

| Parameters |
|---|---|
| `mediaSources: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource!>!` | The `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource` to add. |

### addMediaSources

```
fun [addMediaSources](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#addMediaSources(int,java.util.List<androidx.media3.exoplayer.source.MediaSource>))(index: Int, mediaSources: (Mutable)List<MediaSource!>!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Adds a list of media sources at the given index of the playlist.

| Parameters |
|---|---|
| `index: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The index at which to add the media sources. |
| `mediaSources: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource!>!` | The `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource` to add. |

### addVideoCodecParametersChangeListener

```
fun [addVideoCodecParametersChangeListener](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#addVideoCodecParametersChangeListener(androidx.media3.exoplayer.CodecParametersChangeListener,java.util.List<java.lang.String>))(
    listener: CodecParametersChangeListener!,
    keys: (Mutable)List<String!>!
): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Adds a listener for video codec parameter changes.

The listener will be called on the application thread. Upon registration, the listener will be immediately called with the last known values for the subscribed keys.

The default `https://developer.android.com/reference/android/media/MediaCodec.html` based renderers only support this feature on API level 29 and above.

**Note:** When used with `https://developer.android.com/reference/android/media/MediaCodec.html`, observing vendor-specific parameter changes requires API level 31 or higher. On API levels 29 and 30, any requested vendor-specific keys will be ignored.

| Parameters |
|---|---|
| `listener: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/CodecParametersChangeListener!` | The `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/CodecParametersChangeListener` to add. |
| `keys: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html!>!` | The list of parameter keys to subscribe to. |

### addVideoFrameMetadataListener

```
fun [addVideoFrameMetadataListener](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#addVideoFrameMetadataListener(androidx.media3.exoplayer.video.VideoFrameMetadataListener))(listener: VideoFrameMetadataListener!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Adds a listener to receive video frame metadata events.

| Parameters |
|---|---|
| `listener: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/video/VideoFrameMetadataListener!` | The listener to add. |

### clearAuxEffectInfo

```
fun [clearAuxEffectInfo](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#clearAuxEffectInfo())(): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Detaches any previously attached auxiliary audio effect from the underlying audio track.

### clearCameraMotionListener

```
fun [clearCameraMotionListener](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#clearCameraMotionListener(androidx.media3.exoplayer.video.spherical.CameraMotionListener))(listener: CameraMotionListener!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Clears the listener which receives camera motion events if it matches the one passed. Else does nothing.

| Parameters |
|---|---|
| `listener: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/video/spherical/CameraMotionListener!` | The listener to clear. |

### clearVideoFrameMetadataListener

```
fun [clearVideoFrameMetadataListener](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#clearVideoFrameMetadataListener(androidx.media3.exoplayer.video.VideoFrameMetadataListener))(listener: VideoFrameMetadataListener!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer#removeVideoFrameMetadataListener(androidx.media3.exoplayer.video.VideoFrameMetadataListener)` instead.

Clears the listener which receives video frame metadata events.

Calling this method is equivalent to calling `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer#removeVideoFrameMetadataListener(androidx.media3.exoplayer.video.VideoFrameMetadataListener)`.

| Parameters |
|---|---|
| `listener: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/video/VideoFrameMetadataListener!` | The listener to clear. |

### clearVideoSurface

```
fun [clearVideoSurface](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#clearVideoSurface())(): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Clears any `https://developer.android.com/reference/android/view/Surface.html`, `https://developer.android.com/reference/android/view/SurfaceHolder.html`, `https://developer.android.com/reference/android/view/SurfaceView.html` or `https://developer.android.com/reference/android/view/TextureView.html` currently set on the player.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_VIDEO_SURFACE()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

### clearVideoSurface

```
fun [clearVideoSurface](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#clearVideoSurface(android.view.Surface))(surface: Surface?): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Clears the `https://developer.android.com/reference/android/view/Surface.html` onto which video is being rendered if it matches the one passed. Else does nothing.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_VIDEO_SURFACE()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

| Parameters |
|---|---|
| `surface: https://developer.android.com/reference/android/view/Surface.html?` | The surface to clear. |

### clearVideoSurfaceHolder

```
fun [clearVideoSurfaceHolder](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#clearVideoSurfaceHolder(android.view.SurfaceHolder))(surfaceHolder: SurfaceHolder?): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Clears the `https://developer.android.com/reference/android/view/SurfaceHolder.html` that holds the `https://developer.android.com/reference/android/view/Surface.html` onto which video is being rendered if it matches the one passed. Else does nothing.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_VIDEO_SURFACE()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

| Parameters |
|---|---|
| `surfaceHolder: https://developer.android.com/reference/android/view/SurfaceHolder.html?` | The surface holder to clear. |

### clearVideoSurfaceView

```
fun [clearVideoSurfaceView](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#clearVideoSurfaceView(android.view.SurfaceView))(surfaceView: SurfaceView?): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Clears the `https://developer.android.com/reference/android/view/SurfaceView.html` onto which video is being rendered if it matches the one passed. Else does nothing.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_VIDEO_SURFACE()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

| Parameters |
|---|---|
| `surfaceView: https://developer.android.com/reference/android/view/SurfaceView.html?` | The texture view to clear. |

### clearVideoTextureView

```
fun [clearVideoTextureView](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#clearVideoTextureView(android.view.TextureView))(textureView: TextureView?): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Clears the `https://developer.android.com/reference/android/view/TextureView.html` onto which video is being rendered if it matches the one passed. Else does nothing.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_VIDEO_SURFACE()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

| Parameters |
|---|---|
| `textureView: https://developer.android.com/reference/android/view/TextureView.html?` | The texture view to clear. |

### createMessage

```
fun [createMessage](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#createMessage(androidx.media3.exoplayer.PlayerMessage.Target))(target: PlayerMessage.Target!): PlayerMessage!
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Creates a message that can be sent to a `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/PlayerMessage.Target`. By default, the message will be delivered immediately without blocking on the playback thread. The default `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/PlayerMessage#getType()` is 0 and the default `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/PlayerMessage#getPayload()` is null. If a position is specified with `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/PlayerMessage#setPosition(long)`, the message will be delivered at this position in the current media item defined by `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getCurrentMediaItemIndex()`. Alternatively, the message can be sent at a specific mediaItem using `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/PlayerMessage#setPosition(int,long)`.

### decreaseDeviceVolume

```
fun [decreaseDeviceVolume](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#decreaseDeviceVolume())(): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#decreaseDeviceVolume(int)` instead.

### decreaseDeviceVolume

```
fun [decreaseDeviceVolume](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#decreaseDeviceVolume(int))(@C.VolumeFlags flags: Int): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Decreases the volume of the device.

The `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getDeviceVolume()` device volume cannot be decreased below `https://developer.android.com/reference/kotlin/androidx/media3/common/DeviceInfo#minVolume()`.

Note that this method affects the device volume. To change the volume of the current stream only, use `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#setVolume(float)`.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_ADJUST_DEVICE_VOLUME_WITH_FLAGS()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/kotlin/androidx/media3/common/C.VolumeFlags flags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Either 0 or a bitwise combination of one or more `https://developer.android.com/reference/kotlin/androidx/media3/common/C.VolumeFlags`. |

### getAnalyticsCollector

```
fun [getAnalyticsCollector](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getAnalyticsCollector())(): AnalyticsCollector!
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/analytics/AnalyticsCollector` used for collecting analytics events.

### getApplicationLooper

```
fun [getApplicationLooper](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getApplicationLooper())(): Looper!
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the `https://developer.android.com/reference/android/os/Looper.html` associated with the application thread that's used to access the player and on which player events are received.

This method can be called from any thread.

### getAudioAttributes

```
fun [getAudioAttributes](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getAudioAttributes())(): AudioAttributes!
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the attributes for audio playback.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_AUDIO_ATTRIBUTES()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener#onAudioAttributesChanged(androidx.media3.common.AudioAttributes)` |   |

### getAudioDecoderCounters

```
fun [getAudioDecoderCounters](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getAudioDecoderCounters())(): DecoderCounters?
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/DecoderCounters` for audio, or null if no audio is being played.

### getAudioFormat

```
fun [getAudioFormat](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getAudioFormat())(): Format?
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the audio format currently being played, or null if no audio is being played.

### getAudioSessionId

```
fun [getAudioSessionId](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getAudioSessionId())(): Int
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the audio session identifier, or `https://developer.android.com/reference/kotlin/androidx/media3/common/C#AUDIO_SESSION_ID_UNSET()` if not set.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener#onAudioSessionIdChanged(int)` |   |

### getAvailableCommands

```
fun [getAvailableCommands](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getAvailableCommands())(): Player.Commands!
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the player's currently available `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Commands`.

The returned `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Commands` are not updated when available commands change. Use `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener#onAvailableCommandsChanged(androidx.media3.common.Player.Commands)` to get an update when the available commands change.

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Commands!` | The currently available `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Commands`. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener#onAvailableCommandsChanged(androidx.media3.common.Player.Commands)` |   |

### getBufferedPosition

```
fun [getBufferedPosition](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getBufferedPosition())(): Long
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns an estimate of the position in the current content or ad up to which data is buffered, in milliseconds.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_CURRENT_MEDIA_ITEM()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

### getClock

```
fun [getClock](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getClock())(): Clock!
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the `https://developer.android.com/reference/kotlin/androidx/media3/common/util/Clock` used for playback.

This method can be called from any thread.

### getContentBufferedPosition

```
fun [getContentBufferedPosition](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getContentBufferedPosition())(): Long
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

If `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#isPlayingAd()` returns `true`, returns an estimate of the content position in the current content up to which data is buffered, in milliseconds. If there is no ad playing, the returned position is the same as that returned by `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getBufferedPosition()`.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_CURRENT_MEDIA_ITEM()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

### getContentPosition

```
fun [getContentPosition](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getContentPosition())(): Long
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

If `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#isPlayingAd()` returns `true`, returns the content position that will be played once all ads in the ad group have finished playing, in milliseconds. If there is no ad playing, the returned position is the same as that returned by `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getCurrentPosition()`.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_CURRENT_MEDIA_ITEM()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

### getCurrentAdGroupIndex

```
fun [getCurrentAdGroupIndex](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getCurrentAdGroupIndex())(): Int
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

If `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#isPlayingAd()` returns true, returns the index of the ad group in the period currently being played. Returns `https://developer.android.com/reference/kotlin/androidx/media3/common/C#INDEX_UNSET()` otherwise.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_CURRENT_MEDIA_ITEM()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

### getCurrentAdIndexInAdGroup

```
fun [getCurrentAdIndexInAdGroup](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getCurrentAdIndexInAdGroup())(): Int
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

If `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#isPlayingAd()` returns true, returns the index of the ad in its ad group. Returns `https://developer.android.com/reference/kotlin/androidx/media3/common/C#INDEX_UNSET()` otherwise.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_CURRENT_MEDIA_ITEM()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

### getCurrentCues

```
fun [getCurrentCues](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getCurrentCues())(): CueGroup!
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the current `https://developer.android.com/reference/kotlin/androidx/media3/common/text/CueGroup`.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_TEXT()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener#onCues(androidx.media3.common.text.CueGroup)` |   |

### getCurrentMediaItemIndex

```
fun [getCurrentMediaItemIndex](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getCurrentMediaItemIndex())(): Int
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the index of the current `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem` in the `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getCurrentTimeline()`, or the prospective index if the `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getCurrentTimeline()` is empty.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_TIMELINE()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

### getCurrentPeriodIndex

```
fun [getCurrentPeriodIndex](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getCurrentPeriodIndex())(): Int
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the index of the period currently being played.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_TIMELINE()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

### getCurrentPosition

```
fun [getCurrentPosition](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getCurrentPosition())(): Long
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the playback position in the current content or ad, in milliseconds, or the prospective position in milliseconds if the `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getCurrentTimeline()` is empty.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_CURRENT_MEDIA_ITEM()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

### getCurrentTimeline

```
fun [getCurrentTimeline](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getCurrentTimeline())(): Timeline!
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the current `https://developer.android.com/reference/kotlin/androidx/media3/common/Timeline`. Never null, but may be empty.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_TIMELINE()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener#onTimelineChanged(androidx.media3.common.Timeline,int)` |   |

### getCurrentTrackGroups

```
fun [getCurrentTrackGroups](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getCurrentTrackGroups())(): TrackGroupArray!
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getCurrentTracks()`.

### getCurrentTrackSelections

```
fun [getCurrentTrackSelections](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getCurrentTrackSelections())(): TrackSelectionArray!
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getCurrentTracks()`.

### getCurrentTracks

```
fun [getCurrentTracks](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getCurrentTracks())(): Tracks!
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the current tracks.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_TRACKS()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener#onTracksChanged(androidx.media3.common.Tracks)` |   |

### getDeviceInfo

```
fun [getDeviceInfo](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getDeviceInfo())(): DeviceInfo!
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Gets the device information.

### getDeviceVolume

```
fun [getDeviceVolume](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getDeviceVolume())(): Int
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Gets the current volume of the device.

For devices with `https://developer.android.com/reference/kotlin/androidx/media3/common/DeviceInfo#PLAYBACK_TYPE_LOCAL()`, the volume returned by this method varies according to the current `https://developer.android.com/reference/kotlin/androidx/media3/common/C.StreamType`. The stream type is determined by `https://developer.android.com/reference/kotlin/androidx/media3/common/AudioAttributes#getStreamType()`.

For devices with `https://developer.android.com/reference/kotlin/androidx/media3/common/DeviceInfo#PLAYBACK_TYPE_REMOTE()`, the volume of the remote device is returned.

Note that this method returns the volume of the device. To check the current stream volume, use `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getVolume()`.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_DEVICE_VOLUME()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener#onDeviceVolumeChanged(int,boolean)` |   |

### getDuration

```
fun [getDuration](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getDuration())(): Long
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the duration of the current content or ad in milliseconds, or `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()` if the duration is not known.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_CURRENT_MEDIA_ITEM()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

### getMaxSeekToPreviousPosition

```
fun [getMaxSeekToPreviousPosition](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getMaxSeekToPreviousPosition())(): Long
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the maximum position for which `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#seekToPrevious()` seeks to the previous `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem`, in milliseconds.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The maximum seek to previous position, in milliseconds. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener#onMaxSeekToPreviousPositionChanged(long)` |   |

### getMediaMetadata

```
fun [getMediaMetadata](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getMediaMetadata())(): MediaMetadata!
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the current combined `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaMetadata`, or `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaMetadata#EMPTY()` if not supported.

This `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaMetadata` is a combination of the `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem#mediaMetadata()`, the static metadata in the media's `https://developer.android.com/reference/kotlin/androidx/media3/common/Format#metadata()`, and any timed metadata that has been parsed from the media and output via `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener#onMetadata(androidx.media3.common.Metadata)`. If a field is populated in the `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem#mediaMetadata()`, it will be prioritised above the same field coming from static or timed metadata.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_METADATA()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener#onMediaMetadataChanged(androidx.media3.common.MediaMetadata)` |   |

### getPauseAtEndOfMediaItems

```
fun [getPauseAtEndOfMediaItems](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getPauseAtEndOfMediaItems())(): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns whether the player pauses playback at the end of each media item.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer#setPauseAtEndOfMediaItems(boolean)` |   |

### getPlayWhenReady

```
fun [getPlayWhenReady](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getPlayWhenReady())(): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Whether playback will proceed when `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getPlaybackState()` == `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#STATE_READY()`.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Whether playback will proceed when ready. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener#onPlayWhenReadyChanged(boolean,int)` |   |

### getPlaybackLooper

```
fun [getPlaybackLooper](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getPlaybackLooper())(): Looper!
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the `https://developer.android.com/reference/android/os/Looper.html` associated with the playback thread.

This method may be called from any thread.

### getPlaybackParameters

```
fun [getPlaybackParameters](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getPlaybackParameters())(): PlaybackParameters!
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the currently active playback parameters.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener#onPlaybackParametersChanged(androidx.media3.common.PlaybackParameters)` |   |

### getPlaybackState

```
@Player.State
fun [getPlaybackState](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getPlaybackState())(): Int
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the current `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.State` of the player.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The current `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.State`. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener#onPlaybackStateChanged(int)` |   |

### getPlaybackSuppressionReason

```
@Player.PlaybackSuppressionReason
fun [getPlaybackSuppressionReason](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getPlaybackSuppressionReason())(): Int
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the reason why playback is suppressed even though `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getPlayWhenReady()` is `
true`, or `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#PLAYBACK_SUPPRESSION_REASON_NONE()` if playback is not suppressed.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The current `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.PlaybackSuppressionReason`. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener#onPlaybackSuppressionReasonChanged(int)` |   |

### getPlayerError

```
fun [getPlayerError](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getPlayerError())(): ExoPlaybackException?
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the error that caused playback to fail. This is the same error that will have been reported via `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener#onPlayerError(androidx.media3.common.PlaybackException)` at the time of failure. It can be queried using this method until the player is re-prepared.

Note that this method will always return `null` if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getPlaybackState()` is not `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#STATE_IDLE()`.

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlaybackException?` | The error, or `null`. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener#onPlayerError(androidx.media3.common.PlaybackException)` |   |

### getPlaylistMetadata

```
fun [getPlaylistMetadata](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getPlaylistMetadata())(): MediaMetadata!
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the playlist `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaMetadata`, as set by `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#setPlaylistMetadata(androidx.media3.common.MediaMetadata)`, or `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaMetadata#EMPTY()` if not supported.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_METADATA()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener#onPlaylistMetadataChanged(androidx.media3.common.MediaMetadata)` |   |

### getPreloadConfiguration

```
fun [getPreloadConfiguration](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getPreloadConfiguration())(): ExoPlayer.PreloadConfiguration!
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer.PreloadConfiguration`.

### getRenderer

```
fun [getRenderer](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getRenderer(int))(index: Int): Renderer!
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the renderer at the given index.

| Parameters |
|---|---|
| `index: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The index of the renderer. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/Renderer!` | The renderer at this index. |

### getRendererCount

```
fun [getRendererCount](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getRendererCount())(): Int
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the number of renderers.

### getRendererType

```
@C.TrackType
fun [getRendererType](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getRendererType(int))(index: Int): Int
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the track type that the renderer at a given index handles.

For example, a video renderer will return `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TRACK_TYPE_VIDEO()`, an audio renderer will return `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TRACK_TYPE_AUDIO()` and a text renderer will return `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TRACK_TYPE_TEXT()`.

| Parameters |
|---|---|
| `index: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The index of the renderer. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The `https://developer.android.com/reference/kotlin/androidx/media3/common/C.TrackType` that the renderer handles. |

### getRepeatMode

```
@Player.RepeatMode
fun [getRepeatMode](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getRepeatMode())(): Int
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the current `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.RepeatMode` used for playback.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The current repeat mode. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener#onRepeatModeChanged(int)` |   |

### getScrubbingModeParameters

```
fun [getScrubbingModeParameters](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getScrubbingModeParameters())(): ScrubbingModeParameters!
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Gets the parameters that control behavior in `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer#setScrubbingModeEnabled(boolean)`.

### getSecondaryRenderer

```
fun [getSecondaryRenderer](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getSecondaryRenderer(int))(index: Int): Renderer?
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the secondary renderer at the given index.

| Parameters |
|---|---|
| `index: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The index of the secondary renderer. |

| Returns |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/Renderer?` | The secondary renderer at this index, or null if there is no secondary renderer at this index. |

### getSeekBackIncrement

```
fun [getSeekBackIncrement](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getSeekBackIncrement())(): Long
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#seekBack()` increment.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The seek back increment, in milliseconds. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener#onSeekBackIncrementChanged(long)` |   |

### getSeekForwardIncrement

```
fun [getSeekForwardIncrement](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getSeekForwardIncrement())(): Long
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#seekForward()` increment.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The seek forward increment, in milliseconds. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener#onSeekForwardIncrementChanged(long)` |   |

### getSeekParameters

```
fun [getSeekParameters](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getSeekParameters())(): SeekParameters!
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the currently active `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SeekParameters` of the player.

### getShuffleModeEnabled

```
fun [getShuffleModeEnabled](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getShuffleModeEnabled())(): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns whether shuffling of media items is enabled.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener#onShuffleModeEnabledChanged(boolean)` |   |

### getShuffleOrder

```
fun [getShuffleOrder](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getShuffleOrder())(): ShuffleOrder!
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the shuffle order.

The `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ShuffleOrder` returned will have the same length as the current playlist (`https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getMediaItemCount()`).

### getSkipSilenceEnabled

```
fun [getSkipSilenceEnabled](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getSkipSilenceEnabled())(): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns whether skipping silences in the audio stream is enabled.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener#onSkipSilenceEnabledChanged(boolean)` |   |

### getSurfaceSize

```
fun [getSurfaceSize](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getSurfaceSize())(): Size!
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Gets the size of the surface on which the video is rendered.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener#onSurfaceSizeChanged(int,int)` |   |

### getTotalBufferedDuration

```
fun [getTotalBufferedDuration](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getTotalBufferedDuration())(): Long
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns an estimate of the total buffered duration from the current position, in milliseconds. This includes pre-buffered data for subsequent ads and `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem`.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_CURRENT_MEDIA_ITEM()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

### getTrackSelectionParameters

```
fun [getTrackSelectionParameters](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getTrackSelectionParameters())(): TrackSelectionParameters!
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the parameters constraining the track selection.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener#onTrackSelectionParametersChanged(androidx.media3.common.TrackSelectionParameters)` | } |

### getTrackSelector

```
fun [getTrackSelector](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getTrackSelector())(): TrackSelector!
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the track selector that this player uses, or null if track selection is not supported.

### getVideoChangeFrameRateStrategy

```
@C.VideoChangeFrameRateStrategy
fun [getVideoChangeFrameRateStrategy](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getVideoChangeFrameRateStrategy())(): Int
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the `https://developer.android.com/reference/kotlin/androidx/media3/common/C.VideoChangeFrameRateStrategy`.

### getVideoDecoderCounters

```
fun [getVideoDecoderCounters](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getVideoDecoderCounters())(): DecoderCounters?
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/DecoderCounters` for video, or null if no video is being played.

### getVideoFormat

```
fun [getVideoFormat](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getVideoFormat())(): Format?
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the video format currently being played, or null if no video is being played.

### getVideoScalingMode

```
@C.VideoScalingMode
fun [getVideoScalingMode](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getVideoScalingMode())(): Int
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the `https://developer.android.com/reference/kotlin/androidx/media3/common/C.VideoScalingMode`.

### getVideoSize

```
fun [getVideoSize](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getVideoSize())(): VideoSize!
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Gets the size of the video.

The video's width and height are `0` if there is `https://developer.android.com/reference/kotlin/androidx/media3/common/Tracks#isTypeSupported(int)` or its size has not been determined yet.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener#onVideoSizeChanged(androidx.media3.common.VideoSize)` |   |

### getVolume

```
fun [getVolume](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#getVolume())(): Float
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns the audio volume, with 0 being silence and 1 being unity gain (signal unchanged).

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_VOLUME()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | The linear gain applied to all audio channels. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener#onVolumeChanged(float)` |   |

### increaseDeviceVolume

```
fun [increaseDeviceVolume](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#increaseDeviceVolume())(): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#increaseDeviceVolume(int)` instead.

### increaseDeviceVolume

```
fun [increaseDeviceVolume](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#increaseDeviceVolume(int))(@C.VolumeFlags flags: Int): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Increases the volume of the device.

The `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getDeviceVolume()` device volume cannot be increased above `https://developer.android.com/reference/kotlin/androidx/media3/common/DeviceInfo#maxVolume()`, if defined.

Note that this method affects the device volume. To change the volume of the current stream only, use `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#setVolume(float)`.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_ADJUST_DEVICE_VOLUME_WITH_FLAGS()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/kotlin/androidx/media3/common/C.VolumeFlags flags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Either 0 or a bitwise combination of one or more `https://developer.android.com/reference/kotlin/androidx/media3/common/C.VolumeFlags`. |

### isDeviceMuted

```
fun [isDeviceMuted](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#isDeviceMuted())(): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Gets whether the device is muted or not.

Note that this method returns the mute state of the device. To check if the current stream is muted, use `getVolume() == 0`.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_DEVICE_VOLUME()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener#onDeviceVolumeChanged(int,boolean)` |   |

### isLoading

```
fun [isLoading](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#isLoading())(): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Whether the player is currently loading the source.

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Whether the player is currently loading the source. |

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener#onIsLoadingChanged(boolean)` |   |

### isPlayingAd

```
fun [isPlayingAd](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#isPlayingAd())(): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns whether the player is currently playing an ad.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_CURRENT_MEDIA_ITEM()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

### isReleased

```
fun [isReleased](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#isReleased())(): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns whether `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer#release()` has been called on the player.

This method is allowed to be called after `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer#release()`.

### isScrubbingModeEnabled

```
fun [isScrubbingModeEnabled](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#isScrubbingModeEnabled())(): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns whether the player is optimized for scrubbing (many frequent seeks).

See `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer#setScrubbingModeEnabled(boolean)`.

### isSleepingForOffload

```
fun [isSleepingForOffload](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#isSleepingForOffload())(): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns whether the player has paused its main loop to save power in offload scheduling mode.

Offload scheduling mode should save significant power when the phone is playing offload audio with the screen off.

Offload scheduling is only enabled when playing an audio track in offload mode, which requires all the following:

- Audio offload rendering is enabled through `https://developer.android.com/reference/kotlin/androidx/media3/common/TrackSelectionParameters.Builder#setAudioOffloadPreferences(androidx.media3.common.TrackSelectionParameters.AudioOffloadPreferences)`.
- An audio track is playing in a format that the device supports offloading (for example, MP3 or AAC).
- The `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/audio/AudioSink` is playing with an offload `https://developer.android.com/reference/android/media/AudioTrack.html`.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer.AudioOffloadListener#onSleepingForOffloadChanged(boolean)` |   |

### isTunnelingEnabled

```
fun [isTunnelingEnabled](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#isTunnelingEnabled())(): Boolean
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Returns whether [tunneling](https://source.android.com/devices/tv/multimedia-tunneling) is enabled for the currently selected tracks.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener#onTracksChanged(androidx.media3.common.Tracks)` |   |

### moveMediaItems

```
fun [moveMediaItems](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#moveMediaItems(int,int,int))(fromIndex: Int, toIndex: Int, newIndex: Int): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Moves the media item range to the new index.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_CHANGE_MEDIA_ITEMS()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

| Parameters |
|---|---|
| `fromIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The start of the range to move. If the index is larger than the size of the playlist, the request is ignored. |
| `toIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The first item not to be included in the range (exclusive). If the index is larger than the size of the playlist, items up to the end of the playlist are moved. |
| `newIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The new index of the first media item of the range. If the new index is larger than the size of the remaining playlist after removing the range, the range is moved to the end of the playlist. |

### mute

```
fun [mute](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#mute())(): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets the audio volume to 0.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_VOLUME()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

### prepare

```
fun [prepare](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#prepare())(): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Prepares the player.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_PREPARE()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

This will move the player out of `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#STATE_IDLE()` and the player will start loading media and acquire resources needed for playback.

### prepare

```
fun [prepare](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#prepare(androidx.media3.exoplayer.source.MediaSource))(mediaSource: MediaSource!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setMediaSource(androidx.media3.exoplayer.source.MediaSource)` and `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#prepare()` instead.

### prepare

```
fun [prepare](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#prepare(androidx.media3.exoplayer.source.MediaSource,boolean,boolean))(
    mediaSource: MediaSource!,
    resetPosition: Boolean,
    resetState: Boolean
): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setMediaSource(androidx.media3.exoplayer.source.MediaSource,boolean)` and `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#prepare()` instead.

### release

```
fun [release](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#release())(): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Releases the player. This method must be called when the player is no longer required. The player must not be used after calling this method.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_RELEASE()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

### removeAnalyticsListener

```
fun [removeAnalyticsListener](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#removeAnalyticsListener(androidx.media3.exoplayer.analytics.AnalyticsListener))(listener: AnalyticsListener!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Removes an `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/analytics/AnalyticsListener`.

| Parameters |
|---|---|
| `listener: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/analytics/AnalyticsListener!` | The listener to be removed. |

### removeAudioCodecParametersChangeListener

```
fun [removeAudioCodecParametersChangeListener](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#removeAudioCodecParametersChangeListener(androidx.media3.exoplayer.CodecParametersChangeListener))(
    listener: CodecParametersChangeListener!
): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Removes a listener for audio codec parameter changes.

| Parameters |
|---|---|
| `listener: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/CodecParametersChangeListener!` | The `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/CodecParametersChangeListener` to remove. |

### removeAudioOffloadListener

```
fun [removeAudioOffloadListener](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#removeAudioOffloadListener(androidx.media3.exoplayer.ExoPlayer.AudioOffloadListener))(listener: ExoPlayer.AudioOffloadListener!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Removes a listener of audio offload events.

| Parameters |
|---|---|
| `listener: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer.AudioOffloadListener!` | The listener to unregister. |

### removeListener

```
fun [removeListener](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#removeListener(androidx.media3.common.Player.Listener))(listener: Player.Listener!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Unregister a listener registered through `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#addListener(androidx.media3.common.Player.Listener)`. The listener will no longer receive events.

| Parameters |
|---|---|
| `listener: https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener!` | The listener to unregister. |

### removeMediaItems

```
fun [removeMediaItems](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#removeMediaItems(int,int))(fromIndex: Int, toIndex: Int): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Removes a range of media items from the playlist.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_CHANGE_MEDIA_ITEMS()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

| Parameters |
|---|---|
| `fromIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The index at which to start removing media items. If the index is larger than the size of the playlist, the request is ignored. |
| `toIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The index of the first item to be kept (exclusive). If the index is larger than the size of the playlist, media items up to the end of the playlist are removed. |

### removeVideoCodecParametersChangeListener

```
fun [removeVideoCodecParametersChangeListener](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#removeVideoCodecParametersChangeListener(androidx.media3.exoplayer.CodecParametersChangeListener))(
    listener: CodecParametersChangeListener!
): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Removes a listener for video codec parameter changes.

| Parameters |
|---|---|
| `listener: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/CodecParametersChangeListener!` | The `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/CodecParametersChangeListener` to remove. |

### removeVideoFrameMetadataListener

```
fun [removeVideoFrameMetadataListener](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#removeVideoFrameMetadataListener(androidx.media3.exoplayer.video.VideoFrameMetadataListener))(listener: VideoFrameMetadataListener!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Removes a listener to receive video frame metadata events.

| Parameters |
|---|---|
| `listener: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/video/VideoFrameMetadataListener!` | The listener to remove. |

### replaceMediaItems

```
fun [replaceMediaItems](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#replaceMediaItems(int,int,java.util.List<androidx.media3.common.MediaItem>))(
    fromIndex: Int,
    toIndex: Int,
    mediaItems: (Mutable)List<MediaItem!>!
): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Replaces the media items at the given range of the playlist.

Implementations of this method may attempt to seamlessly continue playback if the currently playing media item is replaced with a compatible one (e.g. same URL, only metadata has changed).

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_CHANGE_MEDIA_ITEMS()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

Note that it is possible to replace a range with an arbitrary number of new items, so that the number of removed items defined by `fromIndex` and `toIndex` does not have to match the number of added items defined by `mediaItems`. As result, it may also change the index of subsequent items not touched by this operation.

| Parameters |
|---|---|
| `fromIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The start of the range. If the index is larger than the size of the playlist, the request is ignored. |
| `toIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The first item not to be included in the range (exclusive). If the index is larger than the size of the playlist, items up to the end of the playlist are replaced. |
| `mediaItems: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem!>!` | The `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem` to replace the range with. |

### setAudioAttributes

```
fun [setAudioAttributes](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setAudioAttributes(androidx.media3.common.AudioAttributes,boolean))(
    audioAttributes: AudioAttributes!,
    handleAudioFocus: Boolean
): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets the attributes for audio playback, used by the underlying audio track. If not set, the default audio attributes will be used. They are suitable for general media playback.

Setting the audio attributes during playback may introduce a short gap in audio output as the audio track is recreated. A new audio session id will also be generated.

If tunneling is enabled by the track selector, the specified audio attributes will be ignored, but they will take effect if audio is later played without tunneling.

If audio focus should be handled, the `https://developer.android.com/reference/kotlin/androidx/media3/common/AudioAttributes#usage()` must be `https://developer.android.com/reference/kotlin/androidx/media3/common/C#USAGE_MEDIA()` or `https://developer.android.com/reference/kotlin/androidx/media3/common/C#USAGE_GAME()`. Other usages will throw an `https://developer.android.com/reference/java/lang/IllegalArgumentException.html`.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_AUDIO_ATTRIBUTES()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

| Parameters |
|---|---|
| `audioAttributes: https://developer.android.com/reference/kotlin/androidx/media3/common/AudioAttributes!` | The attributes to use for audio playback. |
| `handleAudioFocus: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | True if the player should handle audio focus, false otherwise. |

### setAudioCodecParameters

```
fun [setAudioCodecParameters](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setAudioCodecParameters(androidx.media3.exoplayer.CodecParameters))(codecParameters: CodecParameters!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets a collection of parameters on the underlying audio codecs.

This method is asynchronous. The parameters will be applied to the audio renderers on the playback thread.

The default `https://developer.android.com/reference/android/media/MediaCodec.html` based renderers only support this feature on API level 29 and above. If an underlying decoder does not support a parameter, it will be ignored.

| Parameters |
|---|---|
| `codecParameters: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/CodecParameters!` | The `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/CodecParameters` to set. |

### setAudioSessionId

```
fun [setAudioSessionId](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setAudioSessionId(int))(audioSessionId: Int): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets the ID of the audio session to attach to the underlying `https://developer.android.com/reference/android/media/AudioTrack.html`.

The audio session ID can be generated using `https://developer.android.com/reference/kotlin/androidx/media3/common/util/Util#generateAudioSessionId(android.content.Context)`.

| Parameters |
|---|---|
| `audioSessionId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The audio session ID, or `https://developer.android.com/reference/kotlin/androidx/media3/common/C#AUDIO_SESSION_ID_UNSET()` if it should be generated by the framework. |

### setAuxEffectInfo

```
fun [setAuxEffectInfo](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setAuxEffectInfo(androidx.media3.common.AuxEffectInfo))(auxEffectInfo: AuxEffectInfo!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets information on an auxiliary audio effect to attach to the underlying audio track.

### setCameraMotionListener

```
fun [setCameraMotionListener](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setCameraMotionListener(androidx.media3.exoplayer.video.spherical.CameraMotionListener))(listener: CameraMotionListener!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets a listener of camera motion events.

| Parameters |
|---|---|
| `listener: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/video/spherical/CameraMotionListener!` | The listener. |

### setDeviceMuted

```
fun [setDeviceMuted](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setDeviceMuted(boolean))(muted: Boolean): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setDeviceMuted(boolean,int)` instead.

### setDeviceMuted

```
fun [setDeviceMuted](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setDeviceMuted(boolean,int))(muted: Boolean, @C.VolumeFlags flags: Int): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets the mute state of the device.

Note that this method affects the device volume. To mute just the current stream, use `
setVolume(0)` instead.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_ADJUST_DEVICE_VOLUME_WITH_FLAGS()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

| Parameters |
|---|---|
| `muted: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Whether to set the device to be muted or not |
| `@https://developer.android.com/reference/kotlin/androidx/media3/common/C.VolumeFlags flags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Either 0 or a bitwise combination of one or more `https://developer.android.com/reference/kotlin/androidx/media3/common/C.VolumeFlags`. |

### setDeviceVolume

```
fun [setDeviceVolume](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setDeviceVolume(int))(volume: Int): Unit
```

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

### setDeviceVolume

```
fun [setDeviceVolume](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setDeviceVolume(int,int))(volume: Int, @C.VolumeFlags flags: Int): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets the volume of the device with volume flags.

Note that this method affects the device volume. To change the volume of the current stream only, use `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#setVolume(float)`.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_DEVICE_VOLUME_WITH_FLAGS()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

| Parameters |
|---|---|
| `volume: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The volume to set. |
| `@https://developer.android.com/reference/kotlin/androidx/media3/common/C.VolumeFlags flags: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | Either 0 or a bitwise combination of one or more `https://developer.android.com/reference/kotlin/androidx/media3/common/C.VolumeFlags`. |

### setEnforceAdPlaybackOnTimelineRefresh

```
fun [setEnforceAdPlaybackOnTimelineRefresh](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setEnforceAdPlaybackOnTimelineRefresh(boolean))(
    enforceAdPlaybackOnTimelineRefresh: Boolean
): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets whether to enforce ad playback on timeline refresh.

If `true`, then an ad group resolved at or before the current playback position during a timeline refresh will be played. If `false`, then the resolved ad group will not play.

The default is `true`.

| Parameters |
|---|---|
| `enforceAdPlaybackOnTimelineRefresh: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Whether to enforce ad playback on timeline refresh. |

### setForegroundMode

```
fun [setForegroundMode](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setForegroundMode(boolean))(foregroundMode: Boolean): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets whether the player is allowed to keep holding limited resources such as video decoders, even when in the idle state. By doing so, the player may be able to reduce latency when starting to play another piece of content for which the same resources are required.

This mode should be used with caution, since holding limited resources may prevent other players of media components from acquiring them. It should only be enabled when *both* of the following conditions are true:

- The application that owns the player is in the foreground.
- The player is used in a way that may benefit from foreground mode. For this to be true, the same player instance must be used to play multiple pieces of content, and there must be gaps between the playbacks (i.e. `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#stop()` is called to halt one playback, and `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer#prepare(androidx.media3.exoplayer.source.MediaSource)` is called some time later to start a new one).

Note that foreground mode is *not* useful for switching between content without gaps between the playbacks. For this use case `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#stop()` does not need to be called, and simply calling `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer#prepare(androidx.media3.exoplayer.source.MediaSource)` for the new media will cause limited resources to be retained even if foreground mode is not enabled.

If foreground mode is enabled, it's the application's responsibility to disable it when the conditions described above no longer hold.

| Parameters |
|---|---|
| `foregroundMode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Whether the player is allowed to keep limited resources even when in the idle state. |

### setHandleAudioBecomingNoisy

```
fun [setHandleAudioBecomingNoisy](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setHandleAudioBecomingNoisy(boolean))(handleAudioBecomingNoisy: Boolean): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets whether the player should pause automatically when audio is rerouted from a headset to device speakers. See the [audio becoming noisy](https://developer.android.com/guide/topics/media-apps/volume-and-earphones#becoming-noisy) documentation for more information.

| Parameters |
|---|---|
| `handleAudioBecomingNoisy: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Whether the player should pause automatically when audio is rerouted from a headset to device speakers. |

### setImageOutput

```
fun [setImageOutput](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setImageOutput(androidx.media3.exoplayer.image.ImageOutput))(imageOutput: ImageOutput?): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/image/ImageOutput` where rendered images will be forwarded.

| Parameters |
|---|---|
| `imageOutput: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/image/ImageOutput?` | The `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/image/ImageOutput`. May be null to clear a previously set image output. |

### setMaxSeekToPreviousPositionMs

```
fun [setMaxSeekToPreviousPositionMs](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setMaxSeekToPreviousPositionMs(long))(maxSeekToPreviousPositionMs: Long): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets the maximum position for which `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#seekToPrevious()` seeks to the previous `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem`.

| Parameters |
|---|---|
| `maxSeekToPreviousPositionMs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The maximum position, in milliseconds. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | If `maxSeekToPreviousPositionMs` is negative. |

### setMediaItems

```
fun [setMediaItems](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setMediaItems(java.util.List<androidx.media3.common.MediaItem>,boolean))(
    mediaItems: (Mutable)List<MediaItem!>!,
    resetPosition: Boolean
): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Clears the playlist and adds the specified `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem`.

To replace a span of media items (possibly seamlessly) without clearing the playlist, use `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#replaceMediaItems(int,int,java.util.List<androidx.media3.common.MediaItem>)`.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_CHANGE_MEDIA_ITEMS()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

| Parameters |
|---|---|
| `mediaItems: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem!>!` | The new `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem`. |
| `resetPosition: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Whether the playback position should be reset to the default position in the first `https://developer.android.com/reference/kotlin/androidx/media3/common/Timeline.Window`. If false, playback will start from the position defined by `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getCurrentMediaItemIndex()` and `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getCurrentPosition()`. |

### setMediaItems

```
fun [setMediaItems](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setMediaItems(java.util.List<androidx.media3.common.MediaItem>,int,long))(
    mediaItems: (Mutable)List<MediaItem!>!,
    startIndex: Int,
    startPositionMs: Long
): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Clears the playlist and adds the specified `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem`.

To replace a span of media items (possibly seamlessly) without clearing the playlist, use `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#replaceMediaItems(int,int,java.util.List<androidx.media3.common.MediaItem>)`.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_CHANGE_MEDIA_ITEMS()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

| Parameters |
|---|---|
| `mediaItems: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem!>!` | The new `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem`. |
| `startIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem` index to start playback from. If `https://developer.android.com/reference/kotlin/androidx/media3/common/C#INDEX_UNSET()` is passed, the current position is not reset. |
| `startPositionMs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The position in milliseconds to start playback from. If `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()` is passed, the default position of the given `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem` is used. In any case, if `startIndex` is set to `https://developer.android.com/reference/kotlin/androidx/media3/common/C#INDEX_UNSET()`, this parameter is ignored and the position is not reset at all. |

| Throws |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/common/IllegalSeekPositionException` | If the provided `startIndex` is not within the bounds of the list of media items. |

### setMediaSource

```
fun [setMediaSource](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setMediaSource(androidx.media3.exoplayer.source.MediaSource))(mediaSource: MediaSource!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Clears the playlist, adds the specified `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource` and resets the position to the default position.

| Parameters |
|---|---|
| `mediaSource: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource!` | The new `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource`. |

### setMediaSource

```
fun [setMediaSource](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setMediaSource(androidx.media3.exoplayer.source.MediaSource,boolean))(mediaSource: MediaSource!, resetPosition: Boolean): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Clears the playlist and adds the specified `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource`.

| Parameters |
|---|---|
| `mediaSource: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource!` | The new `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource`. |
| `resetPosition: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Whether the playback position should be reset to the default position. If false, playback will start from the position defined by `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getCurrentMediaItemIndex()` and `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getCurrentPosition()`. |

### setMediaSource

```
fun [setMediaSource](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setMediaSource(androidx.media3.exoplayer.source.MediaSource,long))(mediaSource: MediaSource!, startPositionMs: Long): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Clears the playlist and adds the specified `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource`.

| Parameters |
|---|---|
| `mediaSource: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource!` | The new `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource`. |
| `startPositionMs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The position in milliseconds to start playback from. If `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()` is passed, the default position of the given media source is used. |

### setMediaSources

```
fun [setMediaSources](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setMediaSources(java.util.List<androidx.media3.exoplayer.source.MediaSource>))(mediaSources: (Mutable)List<MediaSource!>!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Clears the playlist, adds the specified `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource` and resets the position to the default position.

| Parameters |
|---|---|
| `mediaSources: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource!>!` | The new `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource`. |

### setMediaSources

```
fun [setMediaSources](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setMediaSources(java.util.List<androidx.media3.exoplayer.source.MediaSource>,boolean))(
    mediaSources: (Mutable)List<MediaSource!>!,
    resetPosition: Boolean
): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Clears the playlist and adds the specified `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource`.

| Parameters |
|---|---|
| `mediaSources: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource!>!` | The new `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource`. |
| `resetPosition: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Whether the playback position should be reset to the default position in the first `https://developer.android.com/reference/kotlin/androidx/media3/common/Timeline.Window`. If false, playback will start from the position defined by `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getCurrentMediaItemIndex()` and `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getCurrentPosition()`. |

### setMediaSources

```
fun [setMediaSources](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setMediaSources(java.util.List<androidx.media3.exoplayer.source.MediaSource>,int,long))(
    mediaSources: (Mutable)List<MediaSource!>!,
    startMediaItemIndex: Int,
    startPositionMs: Long
): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Clears the playlist and adds the specified `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource`.

| Parameters |
|---|---|
| `mediaSources: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource!>!` | The new `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/MediaSource`. |
| `startMediaItemIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The media item index to start playback from. If `https://developer.android.com/reference/kotlin/androidx/media3/common/C#INDEX_UNSET()` is passed, the current position is not reset. |
| `startPositionMs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The position in milliseconds to start playback from. If `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()` is passed, the default position of the given media source is used. In any case, if `startMediaItemIndex` is set to `https://developer.android.com/reference/kotlin/androidx/media3/common/C#INDEX_UNSET()`, this parameter is ignored and the position is not reset at all. |

### setPauseAtEndOfMediaItems

```
fun [setPauseAtEndOfMediaItems](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setPauseAtEndOfMediaItems(boolean))(pauseAtEndOfMediaItems: Boolean): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets whether to pause playback at the end of each media item.

This means the player will pause at the end of each window in the current `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getCurrentTimeline()`. Listeners will be informed by a call to `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener#onPlayWhenReadyChanged(boolean,int)` with the reason `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#PLAY_WHEN_READY_CHANGE_REASON_END_OF_MEDIA_ITEM()` when this happens.

| Parameters |
|---|---|
| `pauseAtEndOfMediaItems: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Whether to pause playback at the end of each media item. |

### setPlayWhenReady

```
fun [setPlayWhenReady](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setPlayWhenReady(boolean))(playWhenReady: Boolean): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets whether playback should proceed when `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getPlaybackState()` == `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#STATE_READY()`.

If the player is already in the ready state then this method pauses and resumes playback.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_PLAY_PAUSE()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

| Parameters |
|---|---|
| `playWhenReady: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Whether playback should proceed when ready. |

### setPlaybackParameters

```
fun [setPlaybackParameters](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setPlaybackParameters(androidx.media3.common.PlaybackParameters))(playbackParameters: PlaybackParameters!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Attempts to set the playback parameters. Passing `https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackParameters#DEFAULT()` resets the player to the default, which means there is no speed or pitch adjustment.

Playback parameters changes may cause the player to buffer. `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener#onPlaybackParametersChanged(androidx.media3.common.PlaybackParameters)` will be called whenever the currently active playback parameters change.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_SPEED_AND_PITCH()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

| Parameters |
|---|---|
| `playbackParameters: https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackParameters!` | The playback parameters. |

### setPlaylistMetadata

```
fun [setPlaylistMetadata](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setPlaylistMetadata(androidx.media3.common.MediaMetadata))(mediaMetadata: MediaMetadata!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets the playlist `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaMetadata`.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_PLAYLIST_METADATA()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

### setPreferredAudioDevice

```
fun [setPreferredAudioDevice](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setPreferredAudioDevice(android.media.AudioDeviceInfo))(audioDeviceInfo: AudioDeviceInfo?): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets the preferred audio device.

| Parameters |
|---|---|
| `audioDeviceInfo: https://developer.android.com/reference/android/media/AudioDeviceInfo.html?` | The preferred `https://developer.android.com/reference/android/media/AudioDeviceInfo.html`, or null to restore the default. |

### setPreloadConfiguration

```
fun [setPreloadConfiguration](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setPreloadConfiguration(androidx.media3.exoplayer.ExoPlayer.PreloadConfiguration))(
    preloadConfiguration: ExoPlayer.PreloadConfiguration!
): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer.PreloadConfiguration` to configure playlist preloading.

| Parameters |
|---|---|
| `preloadConfiguration: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer.PreloadConfiguration!` | The preload configuration. |

### setPriority

```
fun [setPriority](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setPriority(int))(@C.Priority priority: Int): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets the `https://developer.android.com/reference/kotlin/androidx/media3/common/C.Priority` for this player.

The priority may influence resource allocation between multiple players or other components running in the same app.

This priority is used for the `https://developer.android.com/reference/kotlin/androidx/media3/common/PriorityTaskManager`, if `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer#setPriorityTaskManager(androidx.media3.common.PriorityTaskManager)`.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/kotlin/androidx/media3/common/C.Priority priority: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The `https://developer.android.com/reference/kotlin/androidx/media3/common/C.Priority`. |

### setPriorityTaskManager

```
fun [setPriorityTaskManager](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setPriorityTaskManager(androidx.media3.common.PriorityTaskManager))(priorityTaskManager: PriorityTaskManager?): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets a `https://developer.android.com/reference/kotlin/androidx/media3/common/PriorityTaskManager`, or null to clear a previously set priority task manager.

The priority set via `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer#setPriority(int)` (or `https://developer.android.com/reference/kotlin/androidx/media3/common/C#PRIORITY_PLAYBACK()` will be set while the player is loading.

| Parameters |
|---|---|
| `priorityTaskManager: https://developer.android.com/reference/kotlin/androidx/media3/common/PriorityTaskManager?` | The `https://developer.android.com/reference/kotlin/androidx/media3/common/PriorityTaskManager`, or null to clear a previously set priority task manager. |

### setRepeatMode

```
fun [setRepeatMode](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setRepeatMode(int))(@Player.RepeatMode repeatMode: Int): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets the `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.RepeatMode` to be used for playback.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_REPEAT_MODE()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/kotlin/androidx/media3/common/Player.RepeatMode repeatMode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The repeat mode. |

### setScrubbingModeEnabled

```
fun [setScrubbingModeEnabled](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setScrubbingModeEnabled(boolean))(scrubbingModeEnabled: Boolean): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets whether to optimize the player for scrubbing (many frequent seeks).

The player may consume more resources in this mode, so it should only be used for short periods of time in response to user interaction (e.g. dragging on a progress bar UI element).

During scrubbing mode playback is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getPlaybackSuppressionReason()` with `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#PLAYBACK_SUPPRESSION_REASON_SCRUBBING()`.

| Parameters |
|---|---|
| `scrubbingModeEnabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Whether scrubbing mode should be enabled. |

### setScrubbingModeParameters

```
fun [setScrubbingModeParameters](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setScrubbingModeParameters(androidx.media3.exoplayer.ScrubbingModeParameters))(
    scrubbingModeParameters: ScrubbingModeParameters!
): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets the parameters that control behavior in `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer#setScrubbingModeEnabled(boolean)`.

### setSeekBackIncrementMs

```
fun [setSeekBackIncrementMs](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setSeekBackIncrementMs(long))(seekBackIncrementMs: Long): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets the `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#seekBack()` increment.

| Parameters |
|---|---|
| `seekBackIncrementMs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The seek back increment, in milliseconds. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | If `seekBackIncrementMs` is non-positive. |

### setSeekForwardIncrementMs

```
fun [setSeekForwardIncrementMs](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setSeekForwardIncrementMs(long))(seekForwardIncrementMs: Long): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets the `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#seekForward()` increment.

| Parameters |
|---|---|
| `seekForwardIncrementMs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The seek forward increment, in milliseconds. |

| Throws |
|---|---|
| `https://developer.android.com/reference/java/lang/IllegalArgumentException.html` | If `seekForwardIncrementMs` is non-positive. |

### setSeekParameters

```
fun [setSeekParameters](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setSeekParameters(androidx.media3.exoplayer.SeekParameters))(seekParameters: SeekParameters?): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets the parameters that control how seek operations are performed.

| Parameters |
|---|---|
| `seekParameters: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SeekParameters?` | The seek parameters, or `null` to use the defaults. |

### setShuffleModeEnabled

```
fun [setShuffleModeEnabled](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setShuffleModeEnabled(boolean))(shuffleModeEnabled: Boolean): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets whether shuffling of media items is enabled.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_SHUFFLE_MODE()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

| Parameters |
|---|---|
| `shuffleModeEnabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Whether shuffling is enabled. |

### setShuffleOrder

```
fun [setShuffleOrder](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setShuffleOrder(androidx.media3.exoplayer.source.ShuffleOrder))(shuffleOrder: ShuffleOrder!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets the shuffle order.

The `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ShuffleOrder` passed must have the same length as the current playlist (`https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getMediaItemCount()`).

| Parameters |
|---|---|
| `shuffleOrder: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/source/ShuffleOrder!` | The shuffle order. |

### setSkipSilenceEnabled

```
fun [setSkipSilenceEnabled](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setSkipSilenceEnabled(boolean))(skipSilenceEnabled: Boolean): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets whether skipping silences in the audio stream is enabled.

| Parameters |
|---|---|
| `skipSilenceEnabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Whether skipping silences in the audio stream is enabled. |

### setTrackSelectionParameters

```
fun [setTrackSelectionParameters](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setTrackSelectionParameters(androidx.media3.common.TrackSelectionParameters))(parameters: TrackSelectionParameters!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets the parameters constraining the track selection.

Unsupported parameters will be silently ignored.

Use `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getTrackSelectionParameters()` to retrieve the current parameters. For example, the following snippet restricts video to SD whilst keep other track selection parameters unchanged:

```kotlin
player.setTrackSelectionParameters(
  player.getTrackSelectionParameters()
        .buildUpon()
        .setMaxVideoSizeSd()
        .build())
```

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_TRACK_SELECTION_PARAMETERS()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

### setVideoChangeFrameRateStrategy

```
fun [setVideoChangeFrameRateStrategy](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setVideoChangeFrameRateStrategy(int))(
    @C.VideoChangeFrameRateStrategy videoChangeFrameRateStrategy: Int
): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets a `https://developer.android.com/reference/kotlin/androidx/media3/common/C.VideoChangeFrameRateStrategy` that will be used by the player when provided with a video output `https://developer.android.com/reference/android/view/Surface.html`.

The strategy only applies if a `https://developer.android.com/reference/android/media/MediaCodec.html`-based video `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/Renderer` is enabled. Applications wishing to use `https://developer.android.com/reference/android/view/Surface.html#CHANGE_FRAME_RATE_ALWAYS` should set the mode to `https://developer.android.com/reference/kotlin/androidx/media3/common/C#VIDEO_CHANGE_FRAME_RATE_STRATEGY_OFF()` to disable calls to `https://developer.android.com/reference/android/view/Surface.html#setFrameRate(float, int)` from ExoPlayer, and should then call `https://developer.android.com/reference/android/view/Surface.html#setFrameRate(float, int)` directly from application code.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/kotlin/androidx/media3/common/C.VideoChangeFrameRateStrategy videoChangeFrameRateStrategy: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | A `https://developer.android.com/reference/kotlin/androidx/media3/common/C.VideoChangeFrameRateStrategy`. |

### setVideoCodecParameters

```
fun [setVideoCodecParameters](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setVideoCodecParameters(androidx.media3.exoplayer.CodecParameters))(codecParameters: CodecParameters!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets a collection of parameters on the underlying video codecs.

This method is asynchronous. The parameters will be applied to the video renderers on the playback thread.

The default `https://developer.android.com/reference/android/media/MediaCodec.html` based renderers only support this feature on API level 29 and above. If an underlying decoder does not support a parameter, it will be ignored.

| Parameters |
|---|---|
| `codecParameters: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/CodecParameters!` | The `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/CodecParameters` to set. |

### setVideoEffects

```
fun [setVideoEffects](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setVideoEffects(java.util.List<androidx.media3.common.Effect>))(videoEffects: (Mutable)List<Effect!>!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets a `https://developer.android.com/reference/java/util/List.html` of `https://developer.android.com/reference/kotlin/androidx/media3/common/Effect` that will be applied to each video frame.

If `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#setVideoSurface(android.view.Surface)`, the output resolution needs to be signaled by passing a `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer#createMessage(androidx.media3.exoplayer.PlayerMessage.Target)` to the `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/Renderer` with type `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/Renderer#MSG_SET_VIDEO_OUTPUT_RESOLUTION()` after calling this method. For `https://developer.android.com/reference/android/view/SurfaceView.html`, `https://developer.android.com/reference/android/view/TextureView.html` and `https://developer.android.com/reference/android/view/SurfaceHolder.html` output this happens automatically.

Pass `https://developer.android.com/reference/kotlin/androidx/media3/common/VideoFrameProcessor#REDRAW()` to force the effect pipeline to redraw the effects immediately. To accurately interleave redraws, listen to `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/video/VideoFrameMetadataListener#onVideoFrameAboutToBeRendered(long,long,androidx.media3.common.Format,android.media.MediaFormat)` events.

The following limitations exist for using `https://developer.android.com/reference/kotlin/androidx/media3/common/Effect`:

- The `androidx.media3:media3-effect` module must be available on the runtime classpath. `androidx.media3:media3-exoplayer` does not explicitly depend on the effect module, so apps must make sure it's available themselves. It must be the same version as the rest of the `androidx.media3` modules being used by the app.
- This feature works only with the default `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/video/MediaCodecVideoRenderer` and not custom or extension `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/Renderer`.
- This feature does not work with `https://developer.android.com/reference/kotlin/androidx/media3/common/Effect` that update the frame timestamps.
- This feature does not work with DRM-protected content.
- This method must be called at least once before calling `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#prepare()` (in order to set up the effects pipeline). The effects can be changed during playback by subsequent calls to this method after `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#prepare()`.

| Parameters |
|---|---|
| `videoEffects: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html<https://developer.android.com/reference/kotlin/androidx/media3/common/Effect!>!` | The `https://developer.android.com/reference/java/util/List.html` of `https://developer.android.com/reference/kotlin/androidx/media3/common/Effect` to apply. |

### setVideoFrameMetadataListener

```
fun [setVideoFrameMetadataListener](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setVideoFrameMetadataListener(androidx.media3.exoplayer.video.VideoFrameMetadataListener))(listener: VideoFrameMetadataListener!): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
>
> Use `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer#addVideoFrameMetadataListener(androidx.media3.exoplayer.video.VideoFrameMetadataListener)` and `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer#removeVideoFrameMetadataListener(androidx.media3.exoplayer.video.VideoFrameMetadataListener)` instead.

Sets a listener to receive video frame metadata events.

Calling this method is equivalent to calling `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer#removeVideoFrameMetadataListener(androidx.media3.exoplayer.video.VideoFrameMetadataListener)` for the listener previously set with this method (if any), and then calling `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer#addVideoFrameMetadataListener(androidx.media3.exoplayer.video.VideoFrameMetadataListener)` with `listener` (if non-null).

| Parameters |
|---|---|
| `listener: https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/video/VideoFrameMetadataListener!` | The listener. |

### setVideoScalingMode

```
fun [setVideoScalingMode](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setVideoScalingMode(int))(@C.VideoScalingMode videoScalingMode: Int): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets the `https://developer.android.com/reference/kotlin/androidx/media3/common/C.VideoScalingMode`.

The scaling mode only applies if a `https://developer.android.com/reference/android/media/MediaCodec.html`-based video `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/Renderer` is enabled and if the output surface is owned by a `https://developer.android.com/reference/android/view/SurfaceView.html`.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/kotlin/androidx/media3/common/C.VideoScalingMode videoScalingMode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The `https://developer.android.com/reference/kotlin/androidx/media3/common/C.VideoScalingMode`. |

### setVideoSurface

```
fun [setVideoSurface](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setVideoSurface(android.view.Surface))(surface: Surface?): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets the `https://developer.android.com/reference/android/view/Surface.html` onto which video will be rendered. The caller is responsible for tracking the lifecycle of the surface, and must clear the surface by calling `
setVideoSurface(null)` if the surface is destroyed.

If the surface is held by a `https://developer.android.com/reference/android/view/SurfaceView.html`, `https://developer.android.com/reference/android/view/TextureView.html` or `https://developer.android.com/reference/android/view/SurfaceHolder.html` then it's recommended to use `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#setVideoSurfaceView(android.view.SurfaceView)`, `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#setVideoTextureView(android.view.TextureView)` or `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#setVideoSurfaceHolder(android.view.SurfaceHolder)` rather than this method, since passing the holder allows the player to track the lifecycle of the surface automatically.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_VIDEO_SURFACE()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

| Parameters |
|---|---|
| `surface: https://developer.android.com/reference/android/view/Surface.html?` | The `https://developer.android.com/reference/android/view/Surface.html`. |

### setVideoSurfaceHolder

```
fun [setVideoSurfaceHolder](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setVideoSurfaceHolder(android.view.SurfaceHolder))(surfaceHolder: SurfaceHolder?): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets the `https://developer.android.com/reference/android/view/SurfaceHolder.html` that holds the `https://developer.android.com/reference/android/view/Surface.html` onto which video will be rendered. The player will track the lifecycle of the surface automatically.

The thread that calls the `https://developer.android.com/reference/android/view/SurfaceHolder.Callback.html` methods must be the thread associated with `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getApplicationLooper()`.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_VIDEO_SURFACE()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

| Parameters |
|---|---|
| `surfaceHolder: https://developer.android.com/reference/android/view/SurfaceHolder.html?` | The surface holder. |

### setVideoSurfaceView

```
fun [setVideoSurfaceView](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setVideoSurfaceView(android.view.SurfaceView))(surfaceView: SurfaceView?): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets the `https://developer.android.com/reference/android/view/SurfaceView.html` onto which video will be rendered. The player will track the lifecycle of the surface automatically.

The thread that calls the `https://developer.android.com/reference/android/view/SurfaceHolder.Callback.html` methods must be the thread associated with `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getApplicationLooper()`.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_VIDEO_SURFACE()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

| Parameters |
|---|---|
| `surfaceView: https://developer.android.com/reference/android/view/SurfaceView.html?` | The surface view. |

### setVideoTextureView

```
fun [setVideoTextureView](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setVideoTextureView(android.view.TextureView))(textureView: TextureView?): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets the `https://developer.android.com/reference/android/view/TextureView.html` onto which video will be rendered. The player will track the lifecycle of the surface automatically.

Consider using `https://developer.android.com/reference/android/view/SurfaceView.html` via `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#setVideoSurfaceView(android.view.SurfaceView)` instead of `https://developer.android.com/reference/android/view/TextureView.html`. `https://developer.android.com/reference/android/view/SurfaceView.html` generally causes lower battery consumption, and has better handling for HDR and secure content. See [Choosing a surface type](https://developer.android.com/guide/topics/media/ui/playerview#surfacetype) for more information.

The thread that calls the `https://developer.android.com/reference/android/view/TextureView.SurfaceTextureListener.html` methods must be the thread associated with `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getApplicationLooper()`.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_VIDEO_SURFACE()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

| Parameters |
|---|---|
| `textureView: https://developer.android.com/reference/android/view/TextureView.html?` | The texture view. |

### setVirtualDeviceId

```
fun [setVirtualDeviceId](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setVirtualDeviceId(int))(virtualDeviceId: Int): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets the virtual device id to be used for playback.

Note that the initial value is obtained from `https://developer.android.com/reference/android/content/Context.html#getDeviceId()` from the `https://developer.android.com/reference/android/content/Context.html` passed to `https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer.Builder#Builder(android.content.Context)`.

| Parameters |
|---|---|
| `virtualDeviceId: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The `https://developer.android.com/reference/android/companion/virtual/VirtualDevice.html#getDeviceId()`, or `https://developer.android.com/reference/kotlin/androidx/media3/common/C#INDEX_UNSET()` if unspecified. |

### setVolume

```
fun [setVolume](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setVolume(float))(volume: Float): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets the audio volume, valid values are between 0 (silence) and 1 (unity gain, signal unchanged), inclusive.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_VOLUME()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

| Parameters |
|---|---|
| `volume: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | Linear output gain to apply to all audio channels. |

### setWakeMode

```
fun [setWakeMode](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#setWakeMode(int))(@C.WakeMode wakeMode: Int): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets how the player should keep the device awake for playback when the screen is off.

Enabling this feature requires the `https://developer.android.com/reference/android/Manifest.permission.html#WAKE_LOCK` permission. It should be used together with a foreground `https://developer.android.com/reference/android/app/Service.html` for use cases where playback occurs and the screen is off (e.g. background audio playback). It is not useful when the screen will be kept on during playback (e.g. foreground video playback).

When enabled, the locks (`https://developer.android.com/reference/android/os/PowerManager.WakeLock.html` / `https://developer.android.com/reference/android/net/wifi/WifiManager.WifiLock.html`) will be held whenever the player is in the `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#STATE_READY()` or `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#STATE_BUFFERING()` states with `playWhenReady = true`. The locks held depends on the specified `https://developer.android.com/reference/kotlin/androidx/media3/common/C.WakeMode`.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/kotlin/androidx/media3/common/C.WakeMode wakeMode: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The `https://developer.android.com/reference/kotlin/androidx/media3/common/C.WakeMode` option to keep the device awake during playback. |

### stop

```
fun [stop](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#stop())(): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Stops playback without resetting the playlist. Use `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#pause()` rather than this method if the intention is to pause playback.

Calling this method will cause the playback state to transition to `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#STATE_IDLE()` and the player will release the loaded media and resources required for playback. The player instance can still be used by calling `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#prepare()` again, and `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#release()` must still be called on the player if it's no longer required.

Calling this method does not clear the playlist, reset the playback position or the playback error.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_STOP()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

### unmute

```
fun [unmute](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#unmute())(): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

If the audio volume is 0, sets the audio volume to a non-zero value decided by the Player to be the most appropriate.

This method must only be called if `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_VOLUME()` is `https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()`.

## Protected functions

### seekTo

```
protected fun [seekTo](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/SimpleExoPlayer#seekTo(int,long,int,boolean))(
    mediaItemIndex: Int,
    positionMs: Long,
    @Player.Command seekCommand: Int,
    isRepeatingCurrentItem: Boolean
): Unit
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Seeks to a position in the specified `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem`.

| Parameters |
|---|---|
| `mediaItemIndex: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The index of the `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem`. If the original seek operation did not directly specify an index, this is the most likely implied index based on the available player state. If the implied action is to do nothing, this will be `https://developer.android.com/reference/kotlin/androidx/media3/common/C#INDEX_UNSET()`. |
| `positionMs: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | The seek position in the specified `https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem` in milliseconds, or `https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET()` to seek to the media item's default position. If the original seek operation did not directly specify a position, this is the most likely implied position based on the available player state. |
| `@https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Command seekCommand: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | The `https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Command` used to trigger the seek. |
| `isRepeatingCurrentItem: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | Whether this seeks repeats the current item. |