# StubPlayer

# StubPlayer

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

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/media3/test/utils/StubPlayer "View this page in Java")

<br />

```
@UnstableApi
class StubPlayer : BasePlayer
```

<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.test.utils.StubPlayer](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer) |

Known direct subclasses  
[StubExoPlayer](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubExoPlayer)  

|----------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [StubExoPlayer](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubExoPlayer) | An abstract[ExoPlayer](https://developer.android.com/reference/kotlin/androidx/media3/exoplayer/ExoPlayer)implementation that throws[UnsupportedOperationException](https://developer.android.com/reference/java/lang/UnsupportedOperationException.html)from every method. |

*** ** * ** ***

An abstract[Player](https://developer.android.com/reference/kotlin/androidx/media3/common/Player)implementation that throws[UnsupportedOperationException](https://developer.android.com/reference/java/lang/UnsupportedOperationException.html)from every method.

## Summary

|                                               ### Public constructors                                               |
|---------------------------------------------------------------------------------------------------------------------|
| [StubPlayer](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#StubPlayer())`()` |

|                                                     ### Public functions                                                      |
|-------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                 | [addListener](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#addListener(androidx.media3.common.Player.Listener))`(listener: `[Player.Listener](https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener)`!)` Registers a listener to receive all events from the player.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                 | [addMediaItems](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#addMediaItems(int,java.util.List<androidx.media3.common.MediaItem>))`(index: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, mediaItems: (`[Mutable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<`[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)`!>!)` Adds a list of media items at the given index of the playlist.                                                                                                                                                                                                   |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                 | [clearVideoSurface](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#clearVideoSurface())`()` Clears any[Surface](https://developer.android.com/reference/android/view/Surface.html),[SurfaceHolder](https://developer.android.com/reference/android/view/SurfaceHolder.html),[SurfaceView](https://developer.android.com/reference/android/view/SurfaceView.html)or[TextureView](https://developer.android.com/reference/android/view/TextureView.html)currently set on the player.                                                                                                                                                                                                                                                                                                                              |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                 | [clearVideoSurface](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#clearVideoSurface(android.view.Surface))`(surface: `[Surface](https://developer.android.com/reference/android/view/Surface.html)`?)` Clears the[Surface](https://developer.android.com/reference/android/view/Surface.html)onto which video is being rendered if it matches the one passed.                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                 | [clearVideoSurfaceHolder](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#clearVideoSurfaceHolder(android.view.SurfaceHolder))`(surfaceHolder: `[SurfaceHolder](https://developer.android.com/reference/android/view/SurfaceHolder.html)`?)` Clears the[SurfaceHolder](https://developer.android.com/reference/android/view/SurfaceHolder.html)that holds the[Surface](https://developer.android.com/reference/android/view/Surface.html)onto which video is being rendered if it matches the one passed.                                                                                                                                                                                                                                                                                                        |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                 | [clearVideoSurfaceView](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#clearVideoSurfaceView(android.view.SurfaceView))`(surfaceView: `[SurfaceView](https://developer.android.com/reference/android/view/SurfaceView.html)`?)` Clears the[SurfaceView](https://developer.android.com/reference/android/view/SurfaceView.html)onto which video is being rendered if it matches the one passed.                                                                                                                                                                                                                                                                                                                                                                                                                  |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                 | [clearVideoTextureView](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#clearVideoTextureView(android.view.TextureView))`(textureView: `[TextureView](https://developer.android.com/reference/android/view/TextureView.html)`?)` Clears the[TextureView](https://developer.android.com/reference/android/view/TextureView.html)onto which video is being rendered if it matches the one passed.                                                                                                                                                                                                                                                                                                                                                                                                                  |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                 | ~~[decreaseDeviceVolume](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#decreaseDeviceVolume())~~`()` **This function is deprecated.** Use[decreaseDeviceVolume](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#decreaseDeviceVolume(int))instead. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                 | [decreaseDeviceVolume](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#decreaseDeviceVolume(int))`(@`[C.VolumeFlags](https://developer.android.com/reference/kotlin/androidx/media3/common/C.VolumeFlags)` flags: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Decreases the volume of the device.                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| [Looper](https://developer.android.com/reference/android/os/Looper.html)`!`                                                   | [getApplicationLooper](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#getApplicationLooper())`()` Returns the[Looper](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.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| [AudioAttributes](https://developer.android.com/reference/kotlin/androidx/media3/common/AudioAttributes)`!`                   | [getAudioAttributes](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#getAudioAttributes())`()` Returns the attributes for audio playback.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [Player.Commands](https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Commands)`!`                   | [getAvailableCommands](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#getAvailableCommands())`()` Returns the player's currently available[Commands](https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Commands).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)                                                 | [getBufferedPosition](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#getBufferedPosition())`()` Returns an estimate of the position in the current content or ad up to which data is buffered, in milliseconds.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)                                                 | [getContentBufferedPosition](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#getContentBufferedPosition())`()` If[isPlayingAd](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.                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)                                                 | [getContentPosition](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#getContentPosition())`()` If[isPlayingAd](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.                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                   | [getCurrentAdGroupIndex](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#getCurrentAdGroupIndex())`()` If[isPlayingAd](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.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                   | [getCurrentAdIndexInAdGroup](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#getCurrentAdIndexInAdGroup())`()` If[isPlayingAd](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#isPlayingAd())returns true, returns the index of the ad in its ad group.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| [CueGroup](https://developer.android.com/reference/kotlin/androidx/media3/common/text/CueGroup)`!`                            | [getCurrentCues](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#getCurrentCues())`()` Returns the current[CueGroup](https://developer.android.com/reference/kotlin/androidx/media3/common/text/CueGroup).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                   | [getCurrentMediaItemIndex](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#getCurrentMediaItemIndex())`()` Returns the index of the current[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)in the[timeline](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getCurrentTimeline()), or the prospective index if the[current timeline](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getCurrentTimeline())is empty.                                                                                                                                                                                                                                                                                        |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                   | [getCurrentPeriodIndex](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#getCurrentPeriodIndex())`()` Returns the index of the period currently being played.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)                                                 | [getCurrentPosition](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#getCurrentPosition())`()` Returns the playback position in the current content or ad, in milliseconds, or the prospective position in milliseconds if the[current timeline](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getCurrentTimeline())is empty.                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| [Timeline](https://developer.android.com/reference/kotlin/androidx/media3/common/Timeline)`!`                                 | [getCurrentTimeline](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#getCurrentTimeline())`()` Returns the current[Timeline](https://developer.android.com/reference/kotlin/androidx/media3/common/Timeline).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| [Tracks](https://developer.android.com/reference/kotlin/androidx/media3/common/Tracks)`!`                                     | [getCurrentTracks](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#getCurrentTracks())`()` Returns the current tracks.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| [DeviceInfo](https://developer.android.com/reference/kotlin/androidx/media3/common/DeviceInfo)`!`                             | [getDeviceInfo](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#getDeviceInfo())`()` Gets the device information.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                   | [getDeviceVolume](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#getDeviceVolume())`()` Gets the current volume of the device.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)                                                 | [getDuration](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#getDuration())`()` Returns the duration of the current content or ad in milliseconds, or[TIME_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET())if the duration is not known.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)                                                 | [getMaxSeekToPreviousPosition](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#getMaxSeekToPreviousPosition())`()` Returns the maximum position for which[seekToPrevious](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#seekToPrevious())seeks to the previous[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem), in milliseconds.                                                                                                                                                                                                                                                                                                                                                                                                      |
| [MediaMetadata](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaMetadata)`!`                       | [getMediaMetadata](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#getMediaMetadata())`()` Returns the current combined[MediaMetadata](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaMetadata), or[EMPTY](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaMetadata#EMPTY())if not supported.                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                                           | [getPlayWhenReady](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#getPlayWhenReady())`()` Whether playback will proceed when[getPlaybackState](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getPlaybackState())==[STATE_READY](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#STATE_READY()).                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| [PlaybackParameters](https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackParameters)`!`             | [getPlaybackParameters](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#getPlaybackParameters())`()` Returns the currently active playback parameters.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                   | `@`[Player.State](https://developer.android.com/reference/kotlin/androidx/media3/common/Player.State) [getPlaybackState](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#getPlaybackState())`()` Returns the current[playback state](https://developer.android.com/reference/kotlin/androidx/media3/common/Player.State)of the player.                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                   | `@`[Player.PlaybackSuppressionReason](https://developer.android.com/reference/kotlin/androidx/media3/common/Player.PlaybackSuppressionReason) [getPlaybackSuppressionReason](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#getPlaybackSuppressionReason())`()` Returns the reason why playback is suppressed even though[getPlayWhenReady](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getPlayWhenReady())is` true`, or[PLAYBACK_SUPPRESSION_REASON_NONE](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#PLAYBACK_SUPPRESSION_REASON_NONE())if playback is not suppressed.                                                                                                                                                                      |
| [PlaybackException](https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException)`?`               | [getPlayerError](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#getPlayerError())`()` Returns the error that caused playback to fail.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| [MediaMetadata](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaMetadata)`!`                       | [getPlaylistMetadata](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#getPlaylistMetadata())`()` Returns the playlist[MediaMetadata](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaMetadata), as set by[setPlaylistMetadata](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#setPlaylistMetadata(androidx.media3.common.MediaMetadata)), or[EMPTY](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaMetadata#EMPTY())if not supported.                                                                                                                                                                                                                                                                                       |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                   | [getRepeatMode](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#getRepeatMode())`()` Returns the current[RepeatMode](https://developer.android.com/reference/kotlin/androidx/media3/common/Player.RepeatMode)used for playback.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)                                                 | [getSeekBackIncrement](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#getSeekBackIncrement())`()` Returns the[seekBack](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#seekBack())increment.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)                                                 | [getSeekForwardIncrement](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#getSeekForwardIncrement())`()` Returns the[seekForward](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#seekForward())increment.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                                           | [getShuffleModeEnabled](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#getShuffleModeEnabled())`()` Returns whether shuffling of media items is enabled.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [Size](https://developer.android.com/reference/kotlin/androidx/media3/common/util/Size)`!`                                    | [getSurfaceSize](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#getSurfaceSize())`()` Gets the size of the surface on which the video is rendered.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)                                                 | [getTotalBufferedDuration](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#getTotalBufferedDuration())`()` Returns an estimate of the total buffered duration from the current position, in milliseconds.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [TrackSelectionParameters](https://developer.android.com/reference/kotlin/androidx/media3/common/TrackSelectionParameters)`!` | [getTrackSelectionParameters](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#getTrackSelectionParameters())`()` Returns the parameters constraining the track selection.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [VideoSize](https://developer.android.com/reference/kotlin/androidx/media3/common/VideoSize)`!`                               | [getVideoSize](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#getVideoSize())`()` Gets the size of the video.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| [Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)                                               | [getVolume](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#getVolume())`()` Returns the audio volume, with 0 being silence and 1 being unity gain (signal unchanged).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                 | ~~[increaseDeviceVolume](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#increaseDeviceVolume())~~`()` **This function is deprecated.** Use[increaseDeviceVolume](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#increaseDeviceVolume(int))instead. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                 | [increaseDeviceVolume](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#increaseDeviceVolume(int))`(@`[C.VolumeFlags](https://developer.android.com/reference/kotlin/androidx/media3/common/C.VolumeFlags)` flags: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Increases the volume of the device.                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                                           | [isDeviceMuted](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#isDeviceMuted())`()` Gets whether the device is muted or not.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                                           | [isLoading](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#isLoading())`()` Whether the player is currently loading the source.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                                           | [isPlayingAd](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#isPlayingAd())`()` Returns whether the player is currently playing an ad.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                 | [moveMediaItems](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#moveMediaItems(int,int,int))`(fromIndex: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, toIndex: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, newIndex: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Moves the media item range to the new index.                                                                                                                                                                                                                                                                                                                                                                                          |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                 | [mute](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#mute())`()` Sets the audio volume to 0.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                 | [prepare](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#prepare())`()` Prepares the player.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                 | [release](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#release())`()` Releases the player.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                 | [removeListener](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#removeListener(androidx.media3.common.Player.Listener))`(listener: `[Player.Listener](https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener)`!)` Unregister a listener registered through[addListener](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#addListener(androidx.media3.common.Player.Listener)).                                                                                                                                                                                                                                                                                                                                                                       |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                 | [removeMediaItems](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#removeMediaItems(int,int))`(fromIndex: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, toIndex: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Removes a range of media items from the playlist.                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                 | [replaceMediaItems](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#replaceMediaItems(int,int,java.util.List<androidx.media3.common.MediaItem>))`(` ` fromIndex: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` toIndex: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` mediaItems: (`[Mutable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<`[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)`!>!` `)` Replaces the media items at the given range of the playlist.                                                                                |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                 | [setAudioAttributes](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#setAudioAttributes(androidx.media3.common.AudioAttributes,boolean))`(` ` audioAttributes: `[AudioAttributes](https://developer.android.com/reference/kotlin/androidx/media3/common/AudioAttributes)`!,` ` handleAudioFocus: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) `)` Sets the attributes for audio playback, used by the underlying audio track.                                                                                                                                                                                                                                                                                                                                            |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                 | ~~[setDeviceMuted](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#setDeviceMuted(boolean))~~`(muted: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`)` **This function is deprecated.** Use[setDeviceMuted](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#setDeviceMuted(boolean,int))instead. <br />                                                                                                                                                                                                                                                                                                                                                                                                                              |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                 | [setDeviceMuted](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#setDeviceMuted(boolean,int))`(muted: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`, @`[C.VolumeFlags](https://developer.android.com/reference/kotlin/androidx/media3/common/C.VolumeFlags)` flags: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Sets the mute state of the device.                                                                                                                                                                                                                                                                                                                                                                                   |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                 | ~~[setDeviceVolume](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#setDeviceVolume(int))~~`(volume: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` **This function is deprecated.** Use[setDeviceVolume](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#setDeviceVolume(int,int))instead. <br />                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                 | [setDeviceVolume](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#setDeviceVolume(int,int))`(volume: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, @`[C.VolumeFlags](https://developer.android.com/reference/kotlin/androidx/media3/common/C.VolumeFlags)` flags: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Sets the volume of the device with volume flags.                                                                                                                                                                                                                                                                                                                                                                              |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                 | [setMediaItems](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#setMediaItems(java.util.List<androidx.media3.common.MediaItem>,boolean))`(` ` mediaItems: (`[Mutable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<`[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)`!>!,` ` resetPosition: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) `)` Clears the playlist and adds the specified[media items](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem).                                                                                            |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                 | [setMediaItems](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#setMediaItems(java.util.List<androidx.media3.common.MediaItem>,int,long))`(` ` mediaItems: (`[Mutable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<`[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)`!>!,` ` startIndex: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` startPositionMs: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) `)` Clears the playlist and adds the specified[media items](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem). |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                 | [setPlayWhenReady](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#setPlayWhenReady(boolean))`(playWhenReady: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`)` Sets whether playback should proceed when[getPlaybackState](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getPlaybackState())==[STATE_READY](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#STATE_READY()).                                                                                                                                                                                                                                                                                                                                   |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                 | [setPlaybackParameters](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#setPlaybackParameters(androidx.media3.common.PlaybackParameters))`(playbackParameters: `[PlaybackParameters](https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackParameters)`!)` Attempts to set the playback parameters.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                 | [setPlaylistMetadata](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#setPlaylistMetadata(androidx.media3.common.MediaMetadata))`(mediaMetadata: `[MediaMetadata](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaMetadata)`!)` Sets the playlist[MediaMetadata](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaMetadata).                                                                                                                                                                                                                                                                                                                                                                                                                                |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                 | [setRepeatMode](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#setRepeatMode(int))`(@`[Player.RepeatMode](https://developer.android.com/reference/kotlin/androidx/media3/common/Player.RepeatMode)` repeatMode: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Sets the[RepeatMode](https://developer.android.com/reference/kotlin/androidx/media3/common/Player.RepeatMode)to be used for playback.                                                                                                                                                                                                                                                                                                                                                                           |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                 | [setShuffleModeEnabled](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#setShuffleModeEnabled(boolean))`(shuffleModeEnabled: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`)` Sets whether shuffling of media items is enabled.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                 | [setTrackSelectionParameters](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#setTrackSelectionParameters(androidx.media3.common.TrackSelectionParameters))`(parameters: `[TrackSelectionParameters](https://developer.android.com/reference/kotlin/androidx/media3/common/TrackSelectionParameters)`!)` Sets the parameters constraining the track selection.                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                 | [setVideoSurface](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#setVideoSurface(android.view.Surface))`(surface: `[Surface](https://developer.android.com/reference/android/view/Surface.html)`?)` Sets the[Surface](https://developer.android.com/reference/android/view/Surface.html)onto which video will be rendered.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                 | [setVideoSurfaceHolder](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#setVideoSurfaceHolder(android.view.SurfaceHolder))`(surfaceHolder: `[SurfaceHolder](https://developer.android.com/reference/android/view/SurfaceHolder.html)`?)` Sets the[SurfaceHolder](https://developer.android.com/reference/android/view/SurfaceHolder.html)that holds the[Surface](https://developer.android.com/reference/android/view/Surface.html)onto which video will be rendered.                                                                                                                                                                                                                                                                                                                                            |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                 | [setVideoSurfaceView](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#setVideoSurfaceView(android.view.SurfaceView))`(surfaceView: `[SurfaceView](https://developer.android.com/reference/android/view/SurfaceView.html)`?)` Sets the[SurfaceView](https://developer.android.com/reference/android/view/SurfaceView.html)onto which video will be rendered.                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                 | [setVideoTextureView](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#setVideoTextureView(android.view.TextureView))`(textureView: `[TextureView](https://developer.android.com/reference/android/view/TextureView.html)`?)` Sets the[TextureView](https://developer.android.com/reference/android/view/TextureView.html)onto which video will be rendered.                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                 | [setVolume](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#setVolume(float))`(volume: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`)` Sets the audio volume, valid values are between 0 (silence) and 1 (unity gain, signal unchanged), inclusive.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                 | [stop](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#stop())`()` Stops playback without resetting the playlist.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                 | [unmute](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#unmute())`()` If the audio volume is 0, sets the audio volume to a non-zero value decided by the Player to be the most appropriate.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |

|                            ### Protected functions                            |
|-------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html) | [seekTo](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#seekTo(int,long,int,boolean))`(` ` mediaItemIndex: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` positionMs: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`,` ` @`[Player.Command](https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Command)` seekCommand: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`,` ` isRepeatingCurrentItem: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) `)` Seeks to a position in the specified[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem). |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  ### Inherited Constants                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From[androidx.media3.common.Player](https://developer.android.com/reference/kotlin/androidx/media3/common/Player) |-------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [COMMAND_ADJUST_DEVICE_VOLUME](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_ADJUST_DEVICE_VOLUME())` = 26` **This property is deprecated.** Use[COMMAND_ADJUST_DEVICE_VOLUME_WITH_FLAGS](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_ADJUST_DEVICE_VOLUME_WITH_FLAGS())instead. <br />                                                                                                       | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [COMMAND_ADJUST_DEVICE_VOLUME_WITH_FLAGS](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_ADJUST_DEVICE_VOLUME_WITH_FLAGS())` = 34` Command to increase and decrease the device volume and mute it with volume flags.                                                                                                                                                                                                                    | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [COMMAND_CHANGE_MEDIA_ITEMS](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_CHANGE_MEDIA_ITEMS())` = 20` Command to change the[media items](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)in the playlist.                                                                                                                                                                                            | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [COMMAND_GET_AUDIO_ATTRIBUTES](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_AUDIO_ATTRIBUTES())` = 21` Command to get the player current[AudioAttributes](https://developer.android.com/reference/kotlin/androidx/media3/common/AudioAttributes).                                                                                                                                                                                 | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [COMMAND_GET_CURRENT_MEDIA_ITEM](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_CURRENT_MEDIA_ITEM())` = 16` Command to get information about the currently playing[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem).                                                                                                                                                                    | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [COMMAND_GET_DEVICE_VOLUME](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_DEVICE_VOLUME())` = 23` Command to get the device volume and whether it is muted.                                                                                                                                                                                                                                                                        | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [COMMAND_GET_MEDIA_ITEMS_METADATA](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_MEDIA_ITEMS_METADATA())` = 18` **This property is deprecated.** Use[COMMAND_GET_METADATA](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_METADATA())instead. <br />                                                                                                                                     | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [COMMAND_GET_METADATA](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_METADATA())` = 18` Command to get metadata related to the playlist and current[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem).                                                                                                                                                                                   | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [COMMAND_GET_TEXT](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_TEXT())` = 28` Command to get the text that should currently be displayed by the player.                                                                                                                                                                                                                                                                          | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [COMMAND_GET_TIMELINE](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_TIMELINE())` = 17` Command to get the information about the current timeline.                                                                                                                                                                                                                                                                                 | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [COMMAND_GET_TRACKS](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_TRACKS())` = 30` Command to get details of the current track selection.                                                                                                                                                                                                                                                                                         | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [COMMAND_GET_VOLUME](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_VOLUME())` = 22` Command to get the player volume.                                                                                                                                                                                                                                                                                                              | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [COMMAND_INVALID](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_INVALID())` = -1` Represents an invalid[Command](https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Command).                                                                                                                                                                                                                                | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [COMMAND_PLAY_PAUSE](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_PLAY_PAUSE())` = 1` Command to start, pause or resume playback.                                                                                                                                                                                                                                                                                                     | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [COMMAND_PREPARE](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_PREPARE())` = 2` Command to prepare the player.                                                                                                                                                                                                                                                                                                                        | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [COMMAND_RELEASE](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_RELEASE())` = 32` Command to release the player.                                                                                                                                                                                                                                                                                                                       | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [COMMAND_SEEK_BACK](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SEEK_BACK())` = 11` Command to seek back by a fixed increment inside the current[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem).                                                                                                                                                                                        | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [COMMAND_SEEK_FORWARD](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SEEK_FORWARD())` = 12` Command to seek forward by a fixed increment inside the current[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem).                                                                                                                                                                               | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [COMMAND_SEEK_IN_CURRENT_MEDIA_ITEM](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SEEK_IN_CURRENT_MEDIA_ITEM())` = 5` Command to seek anywhere inside the current[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem).                                                                                                                                                                        | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | `@`[UnstableApi](https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi) [COMMAND_SEEK_IN_CURRENT_WINDOW](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SEEK_IN_CURRENT_WINDOW())` = 5` **This property is deprecated.** Use[COMMAND_SEEK_IN_CURRENT_MEDIA_ITEM](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SEEK_IN_CURRENT_MEDIA_ITEM())instead. <br />     | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [COMMAND_SEEK_TO_DEFAULT_POSITION](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SEEK_TO_DEFAULT_POSITION())` = 4` Command to seek to the default position of the current[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem).                                                                                                                                                                 | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [COMMAND_SEEK_TO_MEDIA_ITEM](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SEEK_TO_MEDIA_ITEM())` = 10` Command to seek anywhere in any[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem).                                                                                                                                                                                                   | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [COMMAND_SEEK_TO_NEXT](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SEEK_TO_NEXT())` = 9` Command to seek to a later position in the current[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)or the default position of the next[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem).                                                              | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [COMMAND_SEEK_TO_NEXT_MEDIA_ITEM](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SEEK_TO_NEXT_MEDIA_ITEM())` = 8` Command to seek to the default position of the next[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem).                                                                                                                                                                      | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | `@`[UnstableApi](https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi) [COMMAND_SEEK_TO_NEXT_WINDOW](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SEEK_TO_NEXT_WINDOW())` = 8` **This property is deprecated.** Use[COMMAND_SEEK_TO_NEXT_MEDIA_ITEM](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SEEK_TO_NEXT_MEDIA_ITEM())instead. <br />                 | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [COMMAND_SEEK_TO_PREVIOUS](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SEEK_TO_PREVIOUS())` = 7` Command to seek to an earlier position in the current[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)or the default position of the previous[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem).                                               | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM())` = 6` Command to seek to the default position of the previous[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem).                                                                                                                                                          | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | `@`[UnstableApi](https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi) [COMMAND_SEEK_TO_PREVIOUS_WINDOW](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SEEK_TO_PREVIOUS_WINDOW())` = 6` **This property is deprecated.** Use[COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM())instead. <br /> | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | `@`[UnstableApi](https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi) [COMMAND_SEEK_TO_WINDOW](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SEEK_TO_WINDOW())` = 10` **This property is deprecated.** Use[COMMAND_SEEK_TO_MEDIA_ITEM](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SEEK_TO_MEDIA_ITEM())instead. <br />                                    | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [COMMAND_SET_AUDIO_ATTRIBUTES](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_AUDIO_ATTRIBUTES())` = 35` Command to set the player's audio attributes.                                                                                                                                                                                                                                                                              | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [COMMAND_SET_DEVICE_VOLUME](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_DEVICE_VOLUME())` = 25` **This property is deprecated.** Use[COMMAND_SET_DEVICE_VOLUME_WITH_FLAGS](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_DEVICE_VOLUME_WITH_FLAGS())instead. <br />                                                                                                                   | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [COMMAND_SET_DEVICE_VOLUME_WITH_FLAGS](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_DEVICE_VOLUME_WITH_FLAGS())` = 33` Command to set the device volume with volume flags.                                                                                                                                                                                                                                                        | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [COMMAND_SET_MEDIA_ITEM](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_MEDIA_ITEM())` = 31` Command to set a[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem).                                                                                                                                                                                                                          | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [COMMAND_SET_MEDIA_ITEMS_METADATA](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_MEDIA_ITEMS_METADATA())` = 19` **This property is deprecated.** Use[COMMAND_SET_PLAYLIST_METADATA](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_PLAYLIST_METADATA())instead. <br />                                                                                                                   | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [COMMAND_SET_PLAYLIST_METADATA](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_PLAYLIST_METADATA())` = 19` Command to set the playlist metadata.                                                                                                                                                                                                                                                                                    | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [COMMAND_SET_REPEAT_MODE](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_REPEAT_MODE())` = 15` Command to set the repeat mode.                                                                                                                                                                                                                                                                                                      | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [COMMAND_SET_SHUFFLE_MODE](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_SHUFFLE_MODE())` = 14` Command to enable shuffling.                                                                                                                                                                                                                                                                                                       | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [COMMAND_SET_SPEED_AND_PITCH](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_SPEED_AND_PITCH())` = 13` Command to set the playback speed and pitch.                                                                                                                                                                                                                                                                                 | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [COMMAND_SET_TRACK_SELECTION_PARAMETERS](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_TRACK_SELECTION_PARAMETERS())` = 29` Command to set the player's track selection parameters.                                                                                                                                                                                                                                                | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [COMMAND_SET_VIDEO_SURFACE](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_VIDEO_SURFACE())` = 27` Command to set and clear the surface on which to render the video.                                                                                                                                                                                                                                                               | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [COMMAND_SET_VOLUME](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_VOLUME())` = 24` Command to set the player volume.                                                                                                                                                                                                                                                                                                              | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [COMMAND_STOP](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_STOP())` = 3` Command to stop playback.                                                                                                                                                                                                                                                                                                                                   | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [DISCONTINUITY_REASON_AUTO_TRANSITION](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#DISCONTINUITY_REASON_AUTO_TRANSITION())` = 0` Automatic playback transition from one period in the timeline to the next.                                                                                                                                                                                                                                  | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [DISCONTINUITY_REASON_INTERNAL](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#DISCONTINUITY_REASON_INTERNAL())` = 5` Discontinuity introduced internally (e.g. by the source).                                                                                                                                                                                                                                                                 | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [DISCONTINUITY_REASON_REMOVE](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#DISCONTINUITY_REASON_REMOVE())` = 4` Discontinuity caused by the removal of the current period from the[Timeline](https://developer.android.com/reference/kotlin/androidx/media3/common/Timeline).                                                                                                                                                                 | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [DISCONTINUITY_REASON_SEEK](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#DISCONTINUITY_REASON_SEEK())` = 1` Seek within the current period or to another period.                                                                                                                                                                                                                                                                              | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [DISCONTINUITY_REASON_SEEK_ADJUSTMENT](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#DISCONTINUITY_REASON_SEEK_ADJUSTMENT())` = 2` Seek adjustment due to being unable to seek to the requested position or because the seek was permitted to be inexact.                                                                                                                                                                                      | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [DISCONTINUITY_REASON_SILENCE_SKIP](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#DISCONTINUITY_REASON_SILENCE_SKIP())` = 6` Discontinuity introduced by a skipped silence.                                                                                                                                                                                                                                                                    | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [DISCONTINUITY_REASON_SKIP](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#DISCONTINUITY_REASON_SKIP())` = 3` Discontinuity introduced by a skipped period (for instance a skipped ad).                                                                                                                                                                                                                                                         | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [EVENT_AUDIO_ATTRIBUTES_CHANGED](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_AUDIO_ATTRIBUTES_CHANGED())` = 20` [getAudioAttributes](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAudioAttributes())changed.                                                                                                                                                                                        | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [EVENT_AUDIO_SESSION_ID](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_AUDIO_SESSION_ID())` = 21` The audio session id was set.                                                                                                                                                                                                                                                                                                          | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [EVENT_AVAILABLE_COMMANDS_CHANGED](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_AVAILABLE_COMMANDS_CHANGED())` = 13` [isCommandAvailable](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#isCommandAvailable(int))changed for at least one[Command](https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Command).                                                                 | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [EVENT_CUES](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_CUES())` = 27` [getCurrentCues](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getCurrentCues())changed.                                                                                                                                                                                                                                        | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [EVENT_DEVICE_INFO_CHANGED](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_DEVICE_INFO_CHANGED())` = 29` [getDeviceInfo](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getDeviceInfo())changed.                                                                                                                                                                                                            | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [EVENT_DEVICE_VOLUME_CHANGED](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_DEVICE_VOLUME_CHANGED())` = 30` [getDeviceVolume](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getDeviceVolume())or[isDeviceMuted](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#isDeviceMuted())changed.                                                                                     | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [EVENT_IS_LOADING_CHANGED](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_IS_LOADING_CHANGED())` = 3` [isLoading](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#isLoading())()} changed.                                                                                                                                                                                                                   | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [EVENT_IS_PLAYING_CHANGED](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_IS_PLAYING_CHANGED())` = 7` [isPlaying](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#isPlaying())changed.                                                                                                                                                                                                                       | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [EVENT_MAX_SEEK_TO_PREVIOUS_POSITION_CHANGED](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_MAX_SEEK_TO_PREVIOUS_POSITION_CHANGED())` = 18` [getMaxSeekToPreviousPosition](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getMaxSeekToPreviousPosition())changed.                                                                                                                                          | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [EVENT_MEDIA_ITEM_TRANSITION](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_MEDIA_ITEM_TRANSITION())` = 1` [getCurrentMediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getCurrentMediaItem())changed or the player started repeating the current item.                                                                                                                                            | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [EVENT_MEDIA_METADATA_CHANGED](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_MEDIA_METADATA_CHANGED())` = 14` [getMediaMetadata](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getMediaMetadata())changed.                                                                                                                                                                                                | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [EVENT_METADATA](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_METADATA())` = 28` Metadata associated with the current playback time changed.                                                                                                                                                                                                                                                                                            | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [EVENT_PLAYBACK_PARAMETERS_CHANGED](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_PLAYBACK_PARAMETERS_CHANGED())` = 12` [getPlaybackParameters](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getPlaybackParameters())changed.                                                                                                                                                                            | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [EVENT_PLAYBACK_STATE_CHANGED](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_PLAYBACK_STATE_CHANGED())` = 4` [getPlaybackState](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getPlaybackState())changed.                                                                                                                                                                                                 | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [EVENT_PLAYBACK_SUPPRESSION_REASON_CHANGED](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_PLAYBACK_SUPPRESSION_REASON_CHANGED())` = 6` [getPlaybackSuppressionReason](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getPlaybackSuppressionReason())changed.                                                                                                                                               | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [EVENT_PLAYER_ERROR](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_PLAYER_ERROR())` = 10` [getPlayerError](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getPlayerError())changed.                                                                                                                                                                                                                        | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [EVENT_PLAYLIST_METADATA_CHANGED](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_PLAYLIST_METADATA_CHANGED())` = 15` [getPlaylistMetadata](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getPlaylistMetadata())changed.                                                                                                                                                                                    | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [EVENT_PLAY_WHEN_READY_CHANGED](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_PLAY_WHEN_READY_CHANGED())` = 5` [getPlayWhenReady](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getPlayWhenReady())changed.                                                                                                                                                                                               | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [EVENT_POSITION_DISCONTINUITY](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_POSITION_DISCONTINUITY())` = 11` A position discontinuity occurred.                                                                                                                                                                                                                                                                                         | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [EVENT_RENDERED_FIRST_FRAME](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_RENDERED_FIRST_FRAME())` = 26` A frame is rendered for the first time since setting the surface, or since the renderer was reset, or since the stream being rendered was changed.                                                                                                                                                                             | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [EVENT_REPEAT_MODE_CHANGED](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_REPEAT_MODE_CHANGED())` = 8` [getRepeatMode](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getRepeatMode())changed.                                                                                                                                                                                                             | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [EVENT_SEEK_BACK_INCREMENT_CHANGED](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_SEEK_BACK_INCREMENT_CHANGED())` = 16` [getSeekBackIncrement](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getSeekBackIncrement())changed.                                                                                                                                                                              | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [EVENT_SEEK_FORWARD_INCREMENT_CHANGED](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_SEEK_FORWARD_INCREMENT_CHANGED())` = 17` [getSeekForwardIncrement](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getSeekForwardIncrement())changed.                                                                                                                                                                  | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [EVENT_SHUFFLE_MODE_ENABLED_CHANGED](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_SHUFFLE_MODE_ENABLED_CHANGED())` = 9` [getShuffleModeEnabled](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getShuffleModeEnabled())changed.                                                                                                                                                                           | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [EVENT_SKIP_SILENCE_ENABLED_CHANGED](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_SKIP_SILENCE_ENABLED_CHANGED())` = 23` Skipping silences in the audio stream is enabled or disabled.                                                                                                                                                                                                                                                  | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [EVENT_SURFACE_SIZE_CHANGED](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_SURFACE_SIZE_CHANGED())` = 24` The size of the surface onto which the video is being rendered changed.                                                                                                                                                                                                                                                        | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [EVENT_TIMELINE_CHANGED](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_TIMELINE_CHANGED())` = 0` [getCurrentTimeline](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getCurrentTimeline())changed.                                                                                                                                                                                                         | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [EVENT_TRACKS_CHANGED](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_TRACKS_CHANGED())` = 2` [getCurrentTracks](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getCurrentTracks())changed.                                                                                                                                                                                                                 | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [EVENT_TRACK_SELECTION_PARAMETERS_CHANGED](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_TRACK_SELECTION_PARAMETERS_CHANGED())` = 19` [getTrackSelectionParameters](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getTrackSelectionParameters())changed.                                                                                                                                                  | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [EVENT_VIDEO_SIZE_CHANGED](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_VIDEO_SIZE_CHANGED())` = 25` [getVideoSize](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getVideoSize())changed.                                                                                                                                                                                                                | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [EVENT_VOLUME_CHANGED](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#EVENT_VOLUME_CHANGED())` = 22` [getVolume](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getVolume())changed.                                                                                                                                                                                                                              | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [MEDIA_ITEM_TRANSITION_REASON_AUTO](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#MEDIA_ITEM_TRANSITION_REASON_AUTO())` = 1` Playback has automatically transitioned to the next media item.                                                                                                                                                                                                                                                   | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [MEDIA_ITEM_TRANSITION_REASON_PLAYLIST_CHANGED](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#MEDIA_ITEM_TRANSITION_REASON_PLAYLIST_CHANGED())` = 3` The current media item has changed because of a change in the playlist.                                                                                                                                                                                                                   | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [MEDIA_ITEM_TRANSITION_REASON_REPEAT](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#MEDIA_ITEM_TRANSITION_REASON_REPEAT())` = 0` The media item has been repeated.                                                                                                                                                                                                                                                                             | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [MEDIA_ITEM_TRANSITION_REASON_SEEK](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#MEDIA_ITEM_TRANSITION_REASON_SEEK())` = 2` A seek to another media item has occurred.                                                                                                                                                                                                                                                                        | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [PLAYBACK_SUPPRESSION_REASON_NONE](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#PLAYBACK_SUPPRESSION_REASON_NONE())` = 0` Playback is not suppressed.                                                                                                                                                                                                                                                                                         | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [PLAYBACK_SUPPRESSION_REASON_SCRUBBING](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#PLAYBACK_SUPPRESSION_REASON_SCRUBBING())` = 4` Playback is suppressed because the player is currently scrubbing.                                                                                                                                                                                                                                         | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [PLAYBACK_SUPPRESSION_REASON_TRANSIENT_AUDIO_FOCUS_LOSS](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#PLAYBACK_SUPPRESSION_REASON_TRANSIENT_AUDIO_FOCUS_LOSS())` = 1` Playback is suppressed due to transient audio focus loss.                                                                                                                                                                                                               | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [PLAYBACK_SUPPRESSION_REASON_UNSUITABLE_AUDIO_OUTPUT](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#PLAYBACK_SUPPRESSION_REASON_UNSUITABLE_AUDIO_OUTPUT())` = 3` Playback is suppressed due to attempt to play on an unsuitable audio output (e.g. attempt to play on built-in speaker on a Wear OS device).                                                                                                                                   | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [PLAYBACK_SUPPRESSION_REASON_UNSUITABLE_AUDIO_ROUTE](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#PLAYBACK_SUPPRESSION_REASON_UNSUITABLE_AUDIO_ROUTE())` = 2` **This property is deprecated.** Use[PLAYBACK_SUPPRESSION_REASON_UNSUITABLE_AUDIO_OUTPUT](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#PLAYBACK_SUPPRESSION_REASON_UNSUITABLE_AUDIO_OUTPUT())instead. <br />                                    | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [PLAY_WHEN_READY_CHANGE_REASON_AUDIO_BECOMING_NOISY](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#PLAY_WHEN_READY_CHANGE_REASON_AUDIO_BECOMING_NOISY())` = 3` Playback has been paused to avoid becoming noisy.                                                                                                                                                                                                                               | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [PLAY_WHEN_READY_CHANGE_REASON_AUDIO_FOCUS_LOSS](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#PLAY_WHEN_READY_CHANGE_REASON_AUDIO_FOCUS_LOSS())` = 2` Playback has been paused because of a loss of audio focus.                                                                                                                                                                                                                              | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [PLAY_WHEN_READY_CHANGE_REASON_END_OF_MEDIA_ITEM](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#PLAY_WHEN_READY_CHANGE_REASON_END_OF_MEDIA_ITEM())` = 5` Playback has been paused at the end of a media item.                                                                                                                                                                                                                                  | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [PLAY_WHEN_READY_CHANGE_REASON_REMOTE](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#PLAY_WHEN_READY_CHANGE_REASON_REMOTE())` = 4` Playback has been started or paused because of a remote change.                                                                                                                                                                                                                                             | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [PLAY_WHEN_READY_CHANGE_REASON_SUPPRESSED_TOO_LONG](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#PLAY_WHEN_READY_CHANGE_REASON_SUPPRESSED_TOO_LONG())` = 6` Playback has been paused because playback has been[suppressed](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getPlaybackSuppressionReason())too long.                                                                                              | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [PLAY_WHEN_READY_CHANGE_REASON_USER_REQUEST](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#PLAY_WHEN_READY_CHANGE_REASON_USER_REQUEST())` = 1` Playback has been started or paused by a call to[setPlayWhenReady](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#setPlayWhenReady(boolean)).                                                                                                                     | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [REPEAT_MODE_ALL](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#REPEAT_MODE_ALL())` = 2` Repeats the entire timeline infinitely.                                                                                                                                                                                                                                                                                                               | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [REPEAT_MODE_OFF](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#REPEAT_MODE_OFF())` = 0` Normal playback without repetition.                                                                                                                                                                                                                                                                                                                   | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [REPEAT_MODE_ONE](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#REPEAT_MODE_ONE())` = 1` Repeats the currently playing[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)infinitely during ongoing playback.                                                                                                                                                                                          | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [STATE_BUFFERING](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#STATE_BUFFERING())` = 2` The player is not able to immediately play the media, but is doing work toward being able to do so.                                                                                                                                                                                                                                                   | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [STATE_ENDED](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#STATE_ENDED())` = 4` The player has finished playing the media.                                                                                                                                                                                                                                                                                                                    | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [STATE_IDLE](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#STATE_IDLE())` = 1` The player is idle, meaning it holds only limited resources.                                                                                                                                                                                                                                                                                                    | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [STATE_READY](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#STATE_READY())` = 3` The player is able to immediately play from its current position.                                                                                                                                                                                                                                                                                             | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [TIMELINE_CHANGE_REASON_PLAYLIST_CHANGED](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#TIMELINE_CHANGE_REASON_PLAYLIST_CHANGED())` = 0` Timeline changed as a result of a change of the playlist items or the order of the items.                                                                                                                                                                                                             | | `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [TIMELINE_CHANGE_REASON_SOURCE_UPDATE](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#TIMELINE_CHANGE_REASON_SOURCE_UPDATE())` = 1` Timeline changed as a result of a source update (e.g. result of a dynamic update by the played media).                                                                                                                                                                                                      | |

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          ### Inherited functions                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                          |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| From[androidx.media3.common.BasePlayer](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer) |-------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Unit](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: `[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)`!)` Adds a media item to the end of the playlist.                                                                                                                                                                                                                                                                                                                                                                  | | [Unit](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: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, mediaItem: `[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)`!)` Adds a media item at the given index of the playlist.                                                                                                                                                                                                                                                                | | [Unit](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: (`[Mutable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<`[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)`!>!)` Adds a list of media items to the end of the playlist.                                                                                                                                | | [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)             | [canAdvertiseSession](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#canAdvertiseSession())`()` Returns whether the player can be used to advertise a media session.                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                   | [clearMediaItems](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#clearMediaItems())`()` Clears the playlist.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | | [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                     | [getBufferedPercentage](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#getBufferedPercentage())`()` Returns an estimate of the percentage in the current content or ad up to which data is buffered, or 0 if no estimate is available.                                                                                                                                                                                                                                                                                                                                                                                                     | | [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)                   | [getContentDuration](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#getContentDuration())`()` If[isPlayingAd](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#isPlayingAd())returns`true`, returns the duration of the current content in milliseconds, or[TIME_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET())if the duration is not known.                                                                                                                                                                                                                     | | [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)                   | [getCurrentLiveOffset](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#getCurrentLiveOffset())`()` Returns the offset of the current playback position from the live edge in milliseconds, or[TIME_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET())if the current[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)[isn't live](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#isCurrentMediaItemLive())or the offset is unknown.                                                                                       | | [Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`?`                  | [getCurrentManifest](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#getCurrentManifest())`()` Returns the current manifest.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                | | [MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)`?` | [getCurrentMediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#getCurrentMediaItem())`()` Returns the currently playing[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem).                                                                                                                                                                                                                                                                                                                                                                                                                 | | [Int](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[getCurrentMediaItemIndex](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getCurrentMediaItemIndex())instead. <br />                                                                                                                                                                                                                                                                                                                                             | | [MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)`!` | [getMediaItemAt](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#getMediaItemAt(int))`(index: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Returns the[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)at the given index.                                                                                                                                                                                                                                                                                                                                    | | [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                     | [getMediaItemCount](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#getMediaItemCount())`()` Returns the number of[media items](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)in the playlist.                                                                                                                                                                                                                                                                                                                                                                                                            | | [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                     | [getNextMediaItemIndex](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#getNextMediaItemIndex())`()` Returns the index of the[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)that will be played if[seekToNextMediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#seekToNextMediaItem())is called, which may depend on the current repeat mode and whether shuffle mode is enabled.                                                                                                                                                                         | | [Int](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[getNextMediaItemIndex](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#getNextMediaItemIndex())instead. <br />                                                                                                                                                                                                                                                                                                                                                     | | [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                     | [getPreviousMediaItemIndex](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#getPreviousMediaItemIndex())`()` Returns the index of the[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)that will be played if[seekToPreviousMediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#seekToPreviousMediaItem())is called, which may depend on the current repeat mode and whether shuffle mode is enabled.                                                                                                                                                         | | [Int](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[getPreviousMediaItemIndex](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#getPreviousMediaItemIndex())instead. <br />                                                                                                                                                                                                                                                                                                                                     | | [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)             | [hasNextMediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#hasNextMediaItem())`()` Returns whether a next[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)exists, which may depend on the current repeat mode and whether shuffle mode is enabled.                                                                                                                                                                                                                                                                                                                                       | | [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)             | [hasPreviousMediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#hasPreviousMediaItem())`()` Returns whether a previous media item exists, which may depend on the current repeat mode and whether shuffle mode is enabled.                                                                                                                                                                                                                                                                                                                                                                                                           | | [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)             | [isCommandAvailable](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#isCommandAvailable(int))`(@`[Player.Command](https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Command)` command: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Returns whether the provided[Command](https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Command)is available.                                                                                                                                                                                                  | | [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)             | [isCurrentMediaItemDynamic](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#isCurrentMediaItemDynamic())`()` Returns whether the current[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)is dynamic (may change when the[Timeline](https://developer.android.com/reference/kotlin/androidx/media3/common/Timeline)is updated), or`false`if the[Timeline](https://developer.android.com/reference/kotlin/androidx/media3/common/Timeline)is empty.                                                                                                                                                | | [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)             | [isCurrentMediaItemLive](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#isCurrentMediaItemLive())`()` Returns whether the current[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)is live, or`false`if the[Timeline](https://developer.android.com/reference/kotlin/androidx/media3/common/Timeline)is empty.                                                                                                                                                                                                                                                                                   | | [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)             | [isCurrentMediaItemSeekable](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#isCurrentMediaItemSeekable())`()` Returns whether the current[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)is seekable, or`false`if the[Timeline](https://developer.android.com/reference/kotlin/androidx/media3/common/Timeline)is empty.                                                                                                                                                                                                                                                                       | | [Boolean](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[isCurrentMediaItemDynamic](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#isCurrentMediaItemDynamic())instead. <br />                                                                                                                                                                                                                                                                                                                                     | | [Boolean](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[isCurrentMediaItemLive](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#isCurrentMediaItemLive())instead. <br />                                                                                                                                                                                                                                                                                                                                                 | | [Boolean](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[isCurrentMediaItemSeekable](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#isCurrentMediaItemSeekable())instead. <br />                                                                                                                                                                                                                                                                                                                                 | | [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)             | [isPlaying](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#isPlaying())`()` Returns whether the player is playing, i.e.[getCurrentPosition](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getCurrentPosition())is advancing.                                                                                                                                                                                                                                                                                                                                                                                | | [Unit](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: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, newIndex: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Moves the media item at the current index to the new index.                                                                                                                                                                                                                                                                                                 | | [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                   | [pause](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#pause())`()` Pauses playback.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | | [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                   | [play](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#play())`()` Resumes playback as soon as[getPlaybackState](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getPlaybackState())==[STATE_READY](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#STATE_READY()).                                                                                                                                                                                                                                                                                                               | | [Unit](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: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Removes the media item at the given index of the playlist.                                                                                                                                                                                                                                                                                                                                                                                                  | | [Unit](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: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, mediaItem: `[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)`!)` Replaces the media item at the given index of the playlist.                                                                                                                                                                                                                                                  | | [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                   | [seekBack](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#seekBack())`()` Seeks back in the current[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)by[getSeekBackIncrement](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getSeekBackIncrement())milliseconds.                                                                                                                                                                                                                                                                                                  | | [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                   | [seekForward](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#seekForward())`()` Seeks forward in the current[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)by[getSeekForwardIncrement](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getSeekForwardIncrement())milliseconds.                                                                                                                                                                                                                                                                                   | | [Unit](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: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`)` Seeks to a position specified in milliseconds in the current[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem).                                                                                                                                                                                                                                                                                                             | | [Unit](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: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`, positionMs: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`)` Seeks to a position specified in milliseconds in the specified[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem).                                                                                                                                                                                                        | | [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                   | [seekToDefaultPosition](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#seekToDefaultPosition())`()` Seeks to the default position associated with the current[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem).                                                                                                                                                                                                                                                                                                                                                                                 | | [Unit](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: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Seeks to the default position associated with the specified[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem).                                                                                                                                                                                                                                                                               | | [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                   | [seekToNext](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#seekToNext())`()` Seeks to a later position in the current or next[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)(if available).                                                                                                                                                                                                                                                                                                                                                                                                  | | [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                   | [seekToNextMediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#seekToNextMediaItem())`()` Seeks to the default position of the next[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem), which may depend on the current repeat mode and whether shuffle mode is enabled.                                                                                                                                                                                                                                                                                                                    | | [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                   | [seekToPrevious](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#seekToPrevious())`()` Seeks to an earlier position in the current or previous[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)(if available).                                                                                                                                                                                                                                                                                                                                                                                   | | [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                   | [seekToPreviousMediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/BasePlayer#seekToPreviousMediaItem())`()` Seeks to the default position of the previous[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem), which may depend on the current repeat mode and whether shuffle mode is enabled.                                                                                                                                                                                                                                                                                                        | | [Unit](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: `[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)`!)` Clears the playlist, adds the specified[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)and resets the position to the default position.                                                                                                                                                                                                                            | | [Unit](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: `[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)`!, resetPosition: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`)` Clears the playlist and adds the specified[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem).                                                                                                                                                          | | [Unit](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: `[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)`!, startPositionMs: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)`)` Clears the playlist and adds the specified[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem).                                                                                                                                                                 | | [Unit](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: (`[Mutable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<`[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)`!>!)` Clears the playlist, adds the specified[media items](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)and resets the position to the default position. | | [Unit](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: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`)` Changes the rate at which playback occurs.                                                                                                                                                                                                                                                                                                                                                                                                          | |
| From[androidx.media3.common.Player](https://developer.android.com/reference/kotlin/androidx/media3/common/Player) |------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)              | `@`[UnstableApi](https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi) [getAudioSessionId](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAudioSessionId())`()` Returns the audio session identifier, or[AUDIO_SESSION_ID_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#AUDIO_SESSION_ID_UNSET())if not set. | | `abstract `[Unit](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: @`[FloatRange](https://developer.android.com/reference/kotlin/androidx/annotation/FloatRange)`(from = 0, fromInclusive = false) `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html)`)` Changes the rate at which playback occurs.                  |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |

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

## Public constructors

### StubPlayer

```
StubPlayer()
```  

## Public functions

### addListener

```
fun addListener(listener: Player.Listener!): Unit
```

Registers a listener to receive all events from the player.

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

This method can be called from any thread.  

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

### addMediaItems

```
fun addMediaItems(index: Int, mediaItems: (Mutable)List<MediaItem!>!): Unit
```

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

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

|                                                                                                                                                     Parameters                                                                                                                                                      |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------|
| `index: `[Int](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: (`[Mutable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<`[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)`!>!` | The[media items](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)to add.                                               |

### clearVideoSurface

```
fun clearVideoSurface(): Unit
```

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

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

### clearVideoSurface

```
fun clearVideoSurface(surface: Surface?): Unit
```

Clears the[Surface](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[COMMAND_SET_VIDEO_SURFACE](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_VIDEO_SURFACE())is[available](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()).  

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

### clearVideoSurfaceHolder

```
fun clearVideoSurfaceHolder(surfaceHolder: SurfaceHolder?): Unit
```

Clears the[SurfaceHolder](https://developer.android.com/reference/android/view/SurfaceHolder.html)that holds the[Surface](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[COMMAND_SET_VIDEO_SURFACE](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_VIDEO_SURFACE())is[available](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()).  

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

### clearVideoSurfaceView

```
fun clearVideoSurfaceView(surfaceView: SurfaceView?): Unit
```

Clears the[SurfaceView](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[COMMAND_SET_VIDEO_SURFACE](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_VIDEO_SURFACE())is[available](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()).  

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

### clearVideoTextureView

```
fun clearVideoTextureView(textureView: TextureView?): Unit
```

Clears the[TextureView](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[COMMAND_SET_VIDEO_SURFACE](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_VIDEO_SURFACE())is[available](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()).  

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

### decreaseDeviceVolume

```
fun [decreaseDeviceVolume](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#decreaseDeviceVolume())(): Unit
```
| **This function is deprecated.**   
|
Use[decreaseDeviceVolume](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#decreaseDeviceVolume(int))instead.  

### decreaseDeviceVolume

```
fun decreaseDeviceVolume(@C.VolumeFlags flags: Int): Unit
```

Decreases the volume of the device.

The[getDeviceVolume](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getDeviceVolume())device volume cannot be decreased below[minVolume](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[setVolume](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#setVolume(float)).

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

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

### getApplicationLooper

```
fun getApplicationLooper(): Looper!
```

Returns the[Looper](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(): AudioAttributes!
```

Returns the attributes for audio playback.

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

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

### getAvailableCommands

```
fun getAvailableCommands(): Player.Commands!
```

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

The returned[Commands](https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Commands)are not updated when available commands change. Use[onAvailableCommandsChanged](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                                                   |
|-------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------|
| [Player.Commands](https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Commands)`!` | The currently available[Commands](https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Commands). |

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

### getBufferedPosition

```
fun getBufferedPosition(): Long
```

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[COMMAND_GET_CURRENT_MEDIA_ITEM](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_CURRENT_MEDIA_ITEM())is[available](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()).  

### getContentBufferedPosition

```
fun getContentBufferedPosition(): Long
```

If[isPlayingAd](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[getBufferedPosition](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getBufferedPosition()).

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

### getContentPosition

```
fun getContentPosition(): Long
```

If[isPlayingAd](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[getCurrentPosition](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getCurrentPosition()).

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

### getCurrentAdGroupIndex

```
fun getCurrentAdGroupIndex(): Int
```

If[isPlayingAd](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[INDEX_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#INDEX_UNSET())otherwise.

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

### getCurrentAdIndexInAdGroup

```
fun getCurrentAdIndexInAdGroup(): Int
```

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

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

### getCurrentCues

```
fun getCurrentCues(): CueGroup!
```

Returns the current[CueGroup](https://developer.android.com/reference/kotlin/androidx/media3/common/text/CueGroup).

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

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

### getCurrentMediaItemIndex

```
fun getCurrentMediaItemIndex(): Int
```

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

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

### getCurrentPeriodIndex

```
fun getCurrentPeriodIndex(): Int
```

Returns the index of the period currently being played.

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

### getCurrentPosition

```
fun getCurrentPosition(): Long
```

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

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

### getCurrentTimeline

```
fun getCurrentTimeline(): Timeline!
```

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

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

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

### getCurrentTracks

```
fun getCurrentTracks(): Tracks!
```

Returns the current tracks.

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

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

### getDeviceInfo

```
fun getDeviceInfo(): DeviceInfo!
```

Gets the device information.  

### getDeviceVolume

```
fun getDeviceVolume(): Int
```

Gets the current volume of the device.

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

For devices with[remote playback](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[getVolume](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getVolume()).

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

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

### getDuration

```
fun getDuration(): Long
```

Returns the duration of the current content or ad in milliseconds, or[TIME_UNSET](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[COMMAND_GET_CURRENT_MEDIA_ITEM](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_CURRENT_MEDIA_ITEM())is[available](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()).  

### getMaxSeekToPreviousPosition

```
fun getMaxSeekToPreviousPosition(): Long
```

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

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

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

### getMediaMetadata

```
fun getMediaMetadata(): MediaMetadata!
```

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

This[MediaMetadata](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaMetadata)is a combination of the[MediaItem metadata](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem#mediaMetadata()), the static metadata in the media's[Format](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[onMetadata](https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener#onMetadata(androidx.media3.common.Metadata)). If a field is populated in the[mediaMetadata](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[COMMAND_GET_METADATA](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_METADATA())is[available](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()).  

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

### getPlayWhenReady

```
fun getPlayWhenReady(): Boolean
```

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

|                                       Returns                                       |
|-------------------------------------------------------------------------------------|-------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | Whether playback will proceed when ready. |

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

### getPlaybackParameters

```
fun getPlaybackParameters(): PlaybackParameters!
```

Returns the currently active playback parameters.  

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

### getPlaybackState

```
@Player.State
fun getPlaybackState(): Int
```

Returns the current[playback state](https://developer.android.com/reference/kotlin/androidx/media3/common/Player.State)of the player.  

|                                   Returns                                   |
|-----------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The current[playback state](https://developer.android.com/reference/kotlin/androidx/media3/common/Player.State). |

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

### getPlaybackSuppressionReason

```
@Player.PlaybackSuppressionReason
fun getPlaybackSuppressionReason(): Int
```

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

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

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

### getPlayerError

```
fun getPlayerError(): PlaybackException?
```

Returns the error that caused playback to fail. This is the same error that will have been reported via[onPlayerError](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[getPlaybackState](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getPlaybackState())is not[STATE_IDLE](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#STATE_IDLE()).  

|                                                     Returns                                                     |
|-----------------------------------------------------------------------------------------------------------------|----------------------|
| [PlaybackException](https://developer.android.com/reference/kotlin/androidx/media3/common/PlaybackException)`?` | The error, or`null`. |

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

### getPlaylistMetadata

```
fun getPlaylistMetadata(): MediaMetadata!
```

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

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

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

### getRepeatMode

```
fun getRepeatMode(): Int
```

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

|                                   Returns                                   |
|-----------------------------------------------------------------------------|--------------------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The current repeat mode. |

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

### getSeekBackIncrement

```
fun getSeekBackIncrement(): Long
```

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

|                                    Returns                                    |
|-------------------------------------------------------------------------------|-------------------------------------------|
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) | The seek back increment, in milliseconds. |

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

### getSeekForwardIncrement

```
fun getSeekForwardIncrement(): Long
```

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

|                                    Returns                                    |
|-------------------------------------------------------------------------------|----------------------------------------------|
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) | The seek forward increment, in milliseconds. |

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

### getShuffleModeEnabled

```
fun getShuffleModeEnabled(): Boolean
```

Returns whether shuffling of media items is enabled.  

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

### getSurfaceSize

```
fun getSurfaceSize(): Size!
```

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

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

### getTotalBufferedDuration

```
fun getTotalBufferedDuration(): Long
```

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

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

### getTrackSelectionParameters

```
fun getTrackSelectionParameters(): TrackSelectionParameters!
```

Returns the parameters constraining the track selection.  

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

### getVideoSize

```
fun getVideoSize(): VideoSize!
```

Gets the size of the video.

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

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

### getVolume

```
fun getVolume(): Float
```

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

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

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

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

### increaseDeviceVolume

```
fun [increaseDeviceVolume](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#increaseDeviceVolume())(): Unit
```
| **This function is deprecated.**   
|
Use[increaseDeviceVolume](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#increaseDeviceVolume(int))instead.  

### increaseDeviceVolume

```
fun increaseDeviceVolume(@C.VolumeFlags flags: Int): Unit
```

Increases the volume of the device.

The[getDeviceVolume](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getDeviceVolume())device volume cannot be increased above[maxVolume](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[setVolume](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#setVolume(float)).

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

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

### isDeviceMuted

```
fun isDeviceMuted(): Boolean
```

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[COMMAND_GET_DEVICE_VOLUME](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_GET_DEVICE_VOLUME())is[available](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()).  

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

### isLoading

```
fun isLoading(): Boolean
```

Whether the player is currently loading the source.  

|                                       Returns                                       |
|-------------------------------------------------------------------------------------|-----------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | Whether the player is currently loading the source. |

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

### isPlayingAd

```
fun isPlayingAd(): Boolean
```

Returns whether the player is currently playing an ad.

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

### moveMediaItems

```
fun moveMediaItems(fromIndex: Int, toIndex: Int, newIndex: Int): Unit
```

Moves the media item range to the new index.

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

|                                        Parameters                                        |
|------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `fromIndex: `[Int](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: `[Int](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: `[Int](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(): Unit
```

Sets the audio volume to 0.

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

### prepare

```
fun prepare(): Unit
```

Prepares the player.

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

This will move the player out of[idle state](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.  

### release

```
fun release(): Unit
```

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[COMMAND_RELEASE](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_RELEASE())is[available](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()).  

### removeListener

```
fun removeListener(listener: Player.Listener!): Unit
```

Unregister a listener registered through[addListener](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: `[Player.Listener](https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Listener)`!` | The listener to unregister. |

### removeMediaItems

```
fun removeMediaItems(fromIndex: Int, toIndex: Int): Unit
```

Removes a range of media items from the playlist.

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

|                                        Parameters                                        |
|------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `fromIndex: `[Int](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: `[Int](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. |

### replaceMediaItems

```
fun replaceMediaItems(
    fromIndex: Int,
    toIndex: Int,
    mediaItems: (Mutable)List<MediaItem!>!
): Unit
```

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[COMMAND_CHANGE_MEDIA_ITEMS](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_CHANGE_MEDIA_ITEMS())is[available](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: `[Int](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: `[Int](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: (`[Mutable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<`[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)`!>!` | The[media items](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)to replace the range with.                                         |

### setAudioAttributes

```
fun setAudioAttributes(
    audioAttributes: AudioAttributes!,
    handleAudioFocus: Boolean
): Unit
```

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[usage](https://developer.android.com/reference/kotlin/androidx/media3/common/AudioAttributes#usage())must be[USAGE_MEDIA](https://developer.android.com/reference/kotlin/androidx/media3/common/C#USAGE_MEDIA())or[USAGE_GAME](https://developer.android.com/reference/kotlin/androidx/media3/common/C#USAGE_GAME()). Other usages will throw an[IllegalArgumentException](https://developer.android.com/reference/java/lang/IllegalArgumentException.html).

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

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

### setDeviceMuted

```
fun [setDeviceMuted](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#setDeviceMuted(boolean))(muted: Boolean): Unit
```
| **This function is deprecated.**   
|
Use[setDeviceMuted](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#setDeviceMuted(boolean,int))instead.  

### setDeviceMuted

```
fun setDeviceMuted(muted: Boolean, @C.VolumeFlags flags: Int): Unit
```

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[COMMAND_ADJUST_DEVICE_VOLUME_WITH_FLAGS](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_ADJUST_DEVICE_VOLUME_WITH_FLAGS())is[available](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()).  

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

### setDeviceVolume

```
fun [setDeviceVolume](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#setDeviceVolume(int))(volume: Int): Unit
```
| **This function is deprecated.**   
|
Use[setDeviceVolume](https://developer.android.com/reference/kotlin/androidx/media3/test/utils/StubPlayer#setDeviceVolume(int,int))instead.  

### setDeviceVolume

```
fun setDeviceVolume(volume: Int, @C.VolumeFlags flags: Int): Unit
```

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[setVolume](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#setVolume(float)).

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

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

### setMediaItems

```
fun setMediaItems(
    mediaItems: (Mutable)List<MediaItem!>!,
    resetPosition: Boolean
): Unit
```

Clears the playlist and adds the specified[media items](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem).

To replace a span of media items (possibly seamlessly) without clearing the playlist, use[replaceMediaItems](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[COMMAND_CHANGE_MEDIA_ITEMS](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_CHANGE_MEDIA_ITEMS())is[available](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()).  

|                                                                                                                                                     Parameters                                                                                                                                                      |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `mediaItems: (`[Mutable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<`[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)`!>!` | The new[media items](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem).                                                                                                                                                                                                                                                                                                                                                                                                               |
| `resetPosition: `[Boolean](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[Timeline.Window](https://developer.android.com/reference/kotlin/androidx/media3/common/Timeline.Window). If false, playback will start from the position defined by[getCurrentMediaItemIndex](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getCurrentMediaItemIndex())and[getCurrentPosition](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getCurrentPosition()). |

### setMediaItems

```
fun setMediaItems(
    mediaItems: (Mutable)List<MediaItem!>!,
    startIndex: Int,
    startPositionMs: Long
): Unit
```

Clears the playlist and adds the specified[media items](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem).

To replace a span of media items (possibly seamlessly) without clearing the playlist, use[replaceMediaItems](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[COMMAND_CHANGE_MEDIA_ITEMS](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_CHANGE_MEDIA_ITEMS())is[available](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()).  

|                                                                                                                                                     Parameters                                                                                                                                                      |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `mediaItems: (`[Mutable](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-mutable-list/index.html)`)`[List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)`<`[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)`!>!` | The new[media items](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem).                                                                                                                                                                                                                                                                                                                                                                                                              |
| `startIndex: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                                                                                                                                                           | The[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)index to start playback from. If[INDEX_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#INDEX_UNSET())is passed, the current position is not reset.                                                                                                                                                                                                                                    |
| `startPositionMs: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)                                                                                                                                                                                                                    | The position in milliseconds to start playback from. If[TIME_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#TIME_UNSET())is passed, the default position of the given[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)is used. In any case, if`startIndex`is set to[INDEX_UNSET](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                                                                           |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------|
| [androidx.media3.common.IllegalSeekPositionException](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. |

### setPlayWhenReady

```
fun setPlayWhenReady(playWhenReady: Boolean): Unit
```

Sets whether playback should proceed when[getPlaybackState](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getPlaybackState())==[STATE_READY](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[COMMAND_PLAY_PAUSE](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_PLAY_PAUSE())is[available](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()).  

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

### setPlaybackParameters

```
fun setPlaybackParameters(playbackParameters: PlaybackParameters!): Unit
```

Attempts to set the playback parameters. Passing[DEFAULT](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.[onPlaybackParametersChanged](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[COMMAND_SET_SPEED_AND_PITCH](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_SPEED_AND_PITCH())is[available](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()).  

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

### setPlaylistMetadata

```
fun setPlaylistMetadata(mediaMetadata: MediaMetadata!): Unit
```

Sets the playlist[MediaMetadata](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaMetadata).

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

### setRepeatMode

```
fun setRepeatMode(@Player.RepeatMode repeatMode: Int): Unit
```

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

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

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

### setShuffleModeEnabled

```
fun setShuffleModeEnabled(shuffleModeEnabled: Boolean): Unit
```

Sets whether shuffling of media items is enabled.

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

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

### setTrackSelectionParameters

```
fun setTrackSelectionParameters(parameters: TrackSelectionParameters!): Unit
```

Sets the parameters constraining the track selection.

Unsupported parameters will be silently ignored.

Use[getTrackSelectionParameters](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[COMMAND_SET_TRACK_SELECTION_PARAMETERS](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_TRACK_SELECTION_PARAMETERS())is[available](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()).  

### setVideoSurface

```
fun setVideoSurface(surface: Surface?): Unit
```

Sets the[Surface](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[SurfaceView](https://developer.android.com/reference/android/view/SurfaceView.html),[TextureView](https://developer.android.com/reference/android/view/TextureView.html)or[SurfaceHolder](https://developer.android.com/reference/android/view/SurfaceHolder.html)then it's recommended to use[setVideoSurfaceView](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#setVideoSurfaceView(android.view.SurfaceView)),[setVideoTextureView](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#setVideoTextureView(android.view.TextureView))or[setVideoSurfaceHolder](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[COMMAND_SET_VIDEO_SURFACE](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_VIDEO_SURFACE())is[available](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()).  

|                                         Parameters                                         |
|--------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------|
| `surface: `[Surface](https://developer.android.com/reference/android/view/Surface.html)`?` | The[Surface](https://developer.android.com/reference/android/view/Surface.html). |

### setVideoSurfaceHolder

```
fun setVideoSurfaceHolder(surfaceHolder: SurfaceHolder?): Unit
```

Sets the[SurfaceHolder](https://developer.android.com/reference/android/view/SurfaceHolder.html)that holds the[Surface](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[SurfaceHolder.Callback](https://developer.android.com/reference/android/view/SurfaceHolder.Callback.html)methods must be the thread associated with[getApplicationLooper](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getApplicationLooper()).

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

|                                                  Parameters                                                  |
|--------------------------------------------------------------------------------------------------------------|---------------------|
| `surfaceHolder: `[SurfaceHolder](https://developer.android.com/reference/android/view/SurfaceHolder.html)`?` | The surface holder. |

### setVideoSurfaceView

```
fun setVideoSurfaceView(surfaceView: SurfaceView?): Unit
```

Sets the[SurfaceView](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[SurfaceHolder.Callback](https://developer.android.com/reference/android/view/SurfaceHolder.Callback.html)methods must be the thread associated with[getApplicationLooper](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getApplicationLooper()).

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

|                                               Parameters                                               |
|--------------------------------------------------------------------------------------------------------|-------------------|
| `surfaceView: `[SurfaceView](https://developer.android.com/reference/android/view/SurfaceView.html)`?` | The surface view. |

### setVideoTextureView

```
fun setVideoTextureView(textureView: TextureView?): Unit
```

Sets the[TextureView](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[SurfaceView](https://developer.android.com/reference/android/view/SurfaceView.html)via[setVideoSurfaceView](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#setVideoSurfaceView(android.view.SurfaceView))instead of[TextureView](https://developer.android.com/reference/android/view/TextureView.html).[SurfaceView](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[TextureView.SurfaceTextureListener](https://developer.android.com/reference/android/view/TextureView.SurfaceTextureListener.html)methods must be the thread associated with[getApplicationLooper](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getApplicationLooper()).

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

|                                               Parameters                                               |
|--------------------------------------------------------------------------------------------------------|-------------------|
| `textureView: `[TextureView](https://developer.android.com/reference/android/view/TextureView.html)`?` | The texture view. |

### setVolume

```
fun setVolume(volume: Float): Unit
```

Sets the audio volume, valid values are between 0 (silence) and 1 (unity gain, signal unchanged), inclusive.

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

|                                        Parameters                                         |
|-------------------------------------------------------------------------------------------|----------------------------------------------------|
| `volume: `[Float](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html) | Linear output gain to apply to all audio channels. |

### stop

```
fun stop(): Unit
```

Stops playback without resetting the playlist. Use[pause](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[STATE_IDLE](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[prepare](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#prepare())again, and[release](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[COMMAND_STOP](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_STOP())is[available](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()).  

### unmute

```
fun unmute(): Unit
```

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[COMMAND_SET_VOLUME](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#COMMAND_SET_VOLUME())is[available](https://developer.android.com/reference/kotlin/androidx/media3/common/Player#getAvailableCommands()).  

## Protected functions

### seekTo

```
protected fun seekTo(
    mediaItemIndex: Int,
    positionMs: Long,
    @Player.Command seekCommand: Int,
    isRepeatingCurrentItem: Boolean
): Unit
```

Seeks to a position in the specified[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem).  

|                                                                                              Parameters                                                                                              |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `mediaItemIndex: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                                        | The index of the[MediaItem](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[INDEX_UNSET](https://developer.android.com/reference/kotlin/androidx/media3/common/C#INDEX_UNSET()).                               |
| `positionMs: `[Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)                                                                                                          | The seek position in the specified[MediaItem](https://developer.android.com/reference/kotlin/androidx/media3/common/MediaItem)in milliseconds, or[TIME_UNSET](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. |
| `@`[Player.Command](https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Command)` seekCommand: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The[Player.Command](https://developer.android.com/reference/kotlin/androidx/media3/common/Player.Command)used to trigger the seek.                                                                                                                                                                                                                                                                                                                 |
| `isRepeatingCurrentItem: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                                                                                        | Whether this seeks repeats the current item.                                                                                                                                                                                                                                                                                                                                                                                                       |