# CompositionPlayer

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

*** ** * ** ***


```
@ExperimentalApi
public final class CompositionPlayer extends SimpleBasePlayer
```

<br />

|---|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) ||||
| ↳ | [androidx.media3.common.BasePlayer](https://developer.android.com/reference/androidx/media3/common/BasePlayer) |||
|   | ↳ | [androidx.media3.common.SimpleBasePlayer](https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer) ||
|   |   | ↳ | [androidx.media3.transformer.CompositionPlayer](https://developer.android.com/reference/androidx/media3/transformer/CompositionPlayer) |

*** ** * ** ***

A `https://developer.android.com/reference/androidx/media3/common/Player` implementation that plays `https://developer.android.com/reference/androidx/media3/transformer/Composition` of media assets. The `https://developer.android.com/reference/androidx/media3/transformer/Composition` specifies how the assets should be arranged, and the audio and video effects to apply to them.

`CompositionPlayer` instances must be accessed from a single application thread. For the vast majority of cases this should be the application's main thread. The thread on which a CompositionPlayer instance must be accessed can be explicitly specified by passing a `https://developer.android.com/reference/android/os/Looper.html` when creating the player. If no `https://developer.android.com/reference/android/os/Looper.html` is specified, then the `https://developer.android.com/reference/android/os/Looper.html` of the thread that the player is created on is used, or if that thread does not have a `https://developer.android.com/reference/android/os/Looper.html`, the `https://developer.android.com/reference/android/os/Looper.html` of the application's main thread is used. In all cases the `https://developer.android.com/reference/android/os/Looper.html` of the thread from which the player must be accessed can be queried using `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#getApplicationLooper()`.

This player only supports setting the `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#setRepeatMode(int)` as `https://developer.android.com/reference/androidx/media3/common/Player#REPEAT_MODE_ALL()` of the `https://developer.android.com/reference/androidx/media3/transformer/Composition`, or `https://developer.android.com/reference/androidx/media3/common/Player#REPEAT_MODE_OFF()`.

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/androidx/media3/transformer/CompositionPlayer.Builder` A builder for `https://developer.android.com/reference/androidx/media3/transformer/CompositionPlayer` instances. |

| ### Public fields |
|---|---|
| `final https://developer.android.com/reference/androidx/media3/common/util/Clock` | `https://developer.android.com/reference/androidx/media3/transformer/CompositionPlayer#clock()` |

| ### Public methods |
|---|---|
| `void` | `https://developer.android.com/reference/androidx/media3/transformer/CompositionPlayer#addAnalyticsListener(androidx.media3.exoplayer.analytics.AnalyticsListener)(https://developer.android.com/reference/androidx/media3/exoplayer/analytics/AnalyticsListener listener)` Adds an `https://developer.android.com/reference/androidx/media3/exoplayer/analytics/AnalyticsListener` to receive analytics events. |
| `void` | `@https://developer.android.com/reference/androidx/media3/common/util/ExperimentalApi https://developer.android.com/reference/androidx/media3/transformer/CompositionPlayer#experimentalRedrawLastFrame()()` Forces the effect pipeline to redraw the effects immediately. |
| `https://developer.android.com/reference/androidx/media3/common/util/Clock` | `https://developer.android.com/reference/androidx/media3/transformer/CompositionPlayer#getClock()()` Returns the `https://developer.android.com/reference/androidx/media3/common/util/Clock` used for playback. |
| `https://developer.android.com/reference/android/os/Looper.html` | `https://developer.android.com/reference/androidx/media3/transformer/CompositionPlayer#getPlaybackLooper()()` Returns the `https://developer.android.com/reference/android/os/Looper.html` associated with the playback thread. |
| `boolean` | `https://developer.android.com/reference/androidx/media3/transformer/CompositionPlayer#isScrubbingModeEnabled()()` Returns whether the player is optimized for scrubbing (many frequent seeks). |
| `void` | `https://developer.android.com/reference/androidx/media3/transformer/CompositionPlayer#removeAnalyticsListener(androidx.media3.exoplayer.analytics.AnalyticsListener)(https://developer.android.com/reference/androidx/media3/exoplayer/analytics/AnalyticsListener listener)` Removes an `https://developer.android.com/reference/androidx/media3/exoplayer/analytics/AnalyticsListener`. |
| `void` | `https://developer.android.com/reference/androidx/media3/transformer/CompositionPlayer#setComposition(androidx.media3.transformer.Composition)(https://developer.android.com/reference/androidx/media3/transformer/Composition composition)` Sets the `https://developer.android.com/reference/androidx/media3/transformer/Composition` to play from the beginning. |
| `void` | `https://developer.android.com/reference/androidx/media3/transformer/CompositionPlayer#setComposition(androidx.media3.transformer.Composition,long)( https://developer.android.com/reference/androidx/media3/transformer/Composition composition, @https://developer.android.com/reference/androidx/annotation/IntRange(from = 0) long startPositionMs )` Sets the `https://developer.android.com/reference/androidx/media3/transformer/Composition` to play. |
| `void` | `https://developer.android.com/reference/androidx/media3/transformer/CompositionPlayer#setScrubbingModeEnabled(boolean)(boolean scrubbingModeEnabled)` Sets whether to optimize the player for scrubbing (many frequent seeks). |
| `void` | `https://developer.android.com/reference/androidx/media3/transformer/CompositionPlayer#setVideoFrameMetadataListener(androidx.media3.exoplayer.video.VideoFrameMetadataListener)( https://developer.android.com/reference/androidx/media3/exoplayer/video/VideoFrameMetadataListener videoFrameMetadataListener )` Sets the `https://developer.android.com/reference/androidx/media3/exoplayer/video/VideoFrameMetadataListener`. |
| `void` | `https://developer.android.com/reference/androidx/media3/transformer/CompositionPlayer#setVideoSurface(android.view.Surface,androidx.media3.common.util.Size)(https://developer.android.com/reference/android/view/Surface.html surface, https://developer.android.com/reference/androidx/media3/common/util/Size videoOutputSize)` Sets the `https://developer.android.com/reference/android/view/Surface.html` and `https://developer.android.com/reference/androidx/media3/common/util/Size` to render to. |

| ### Protected methods |
|---|---|
| `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer.State` | `https://developer.android.com/reference/androidx/media3/transformer/CompositionPlayer#getState()()` Returns the current `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer.State` of the player. |
| `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<@https://developer.android.com/reference/androidx/annotation/NonNull ?>` | `https://developer.android.com/reference/androidx/media3/transformer/CompositionPlayer#handleClearVideoOutput(java.lang.Object)(@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/Object.html videoOutput)` Handles calls to clear the video output. |
| `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<@https://developer.android.com/reference/androidx/annotation/NonNull ?>` | `https://developer.android.com/reference/androidx/media3/transformer/CompositionPlayer#handlePrepare()()` Handles calls to `https://developer.android.com/reference/androidx/media3/common/Player#prepare()`. |
| `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<@https://developer.android.com/reference/androidx/annotation/NonNull ?>` | `https://developer.android.com/reference/androidx/media3/transformer/CompositionPlayer#handleRelease()()` Handles calls to `https://developer.android.com/reference/androidx/media3/common/Player#release()`. |
| `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<@https://developer.android.com/reference/androidx/annotation/NonNull ?>` | `https://developer.android.com/reference/androidx/media3/transformer/CompositionPlayer#handleSeek(int,long,int)( int mediaItemIndex, long positionMs, @https://developer.android.com/reference/androidx/media3/common/Player.Command int seekCommand )` Handles calls to `https://developer.android.com/reference/androidx/media3/common/Player#seekTo(long)` and other seek operations (for example, `https://developer.android.com/reference/androidx/media3/common/Player#seekToNext()`). |
| `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<@https://developer.android.com/reference/androidx/annotation/NonNull ?>` | `https://developer.android.com/reference/androidx/media3/transformer/CompositionPlayer#handleSetAudioAttributes(androidx.media3.common.AudioAttributes,boolean)( https://developer.android.com/reference/androidx/media3/common/AudioAttributes audioAttributes, boolean handleAudioFocus )` Handles calls to set the audio attributes. |
| `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<@https://developer.android.com/reference/androidx/annotation/NonNull ?>` | `https://developer.android.com/reference/androidx/media3/transformer/CompositionPlayer#handleSetPlayWhenReady(boolean)(boolean playWhenReady)` Handles calls to `https://developer.android.com/reference/androidx/media3/common/Player#setPlayWhenReady(boolean)`, `https://developer.android.com/reference/androidx/media3/common/Player#play()` and `https://developer.android.com/reference/androidx/media3/common/Player#pause()`. |
| `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<@https://developer.android.com/reference/androidx/annotation/NonNull ?>` | `https://developer.android.com/reference/androidx/media3/transformer/CompositionPlayer#handleSetRepeatMode(int)(@https://developer.android.com/reference/androidx/media3/common/Player.RepeatMode int repeatMode)` Handles calls to `https://developer.android.com/reference/androidx/media3/common/Player#setRepeatMode(int)`. |
| `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<@https://developer.android.com/reference/androidx/annotation/NonNull ?>` | `https://developer.android.com/reference/androidx/media3/transformer/CompositionPlayer#handleSetVideoOutput(java.lang.Object)(https://developer.android.com/reference/java/lang/Object.html videoOutput)` Handles calls to set the video output. |
| `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<@https://developer.android.com/reference/androidx/annotation/NonNull ?>` | `https://developer.android.com/reference/androidx/media3/transformer/CompositionPlayer#handleSetVolume(float,int)( float volume, @https://developer.android.com/reference/androidx/media3/common/C.VolumeOperationType int volumeOperationType )` Handles calls to `https://developer.android.com/reference/androidx/media3/common/Player#setVolume(float)`. |
| `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<@https://developer.android.com/reference/androidx/annotation/NonNull ?>` | `https://developer.android.com/reference/androidx/media3/transformer/CompositionPlayer#handleStop()()` Handles calls to `https://developer.android.com/reference/androidx/media3/common/Player#stop()`. |

### Inherited Constants

From [androidx.media3.common.Player](https://developer.android.com/reference/androidx/media3/common/Player) `static final int` `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_ADJUST_DEVICE_VOLUME() = 26`

**This field is deprecated.**

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

<br />

`static final int` `https://developer.android.com/reference/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.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_CHANGE_MEDIA_ITEMS() = 20`

Command to change the `https://developer.android.com/reference/androidx/media3/common/MediaItem` in the playlist.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_GET_AUDIO_ATTRIBUTES() = 21`

Command to get the player current `https://developer.android.com/reference/androidx/media3/common/AudioAttributes`.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_GET_CURRENT_MEDIA_ITEM() = 16`

Command to get information about the currently playing `https://developer.android.com/reference/androidx/media3/common/MediaItem`.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_GET_DEVICE_VOLUME() = 23`

Command to get the device volume and whether it is muted.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_GET_MEDIA_ITEMS_METADATA() = 18`

**This field is deprecated.**

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

<br />

`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_GET_METADATA() = 18`

Command to get metadata related to the playlist and current `https://developer.android.com/reference/androidx/media3/common/MediaItem`.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_GET_TEXT() = 28`

Command to get the text that should currently be displayed by the player.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_GET_TIMELINE() = 17`

Command to get the information about the current timeline.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_GET_TRACKS() = 30`

Command to get details of the current track selection.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_GET_VOLUME() = 22`

Command to get the player volume.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_INVALID() = -1`

Represents an invalid `https://developer.android.com/reference/androidx/media3/common/Player.Command`.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_PLAY_PAUSE() = 1`

Command to start, pause or resume playback.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_PREPARE() = 2`

Command to prepare the player.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_RELEASE() = 32`

Command to release the player.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_SEEK_BACK() = 11`

Command to seek back by a fixed increment inside the current `https://developer.android.com/reference/androidx/media3/common/MediaItem`.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_SEEK_FORWARD() = 12`

Command to seek forward by a fixed increment inside the current `https://developer.android.com/reference/androidx/media3/common/MediaItem`.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_SEEK_IN_CURRENT_MEDIA_ITEM() = 5`

Command to seek anywhere inside the current `https://developer.android.com/reference/androidx/media3/common/MediaItem`.
`static final int` `@https://developer.android.com/reference/androidx/media3/common/util/UnstableApi
https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_SEEK_IN_CURRENT_WINDOW() = 5`

**This field is deprecated.**

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

<br />

`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_SEEK_TO_DEFAULT_POSITION() = 4`

Command to seek to the default position of the current `https://developer.android.com/reference/androidx/media3/common/MediaItem`.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_SEEK_TO_MEDIA_ITEM() = 10`

Command to seek anywhere in any `https://developer.android.com/reference/androidx/media3/common/MediaItem`.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_SEEK_TO_NEXT() = 9`

Command to seek to a later position in the current `https://developer.android.com/reference/androidx/media3/common/MediaItem` or the default position of the next `https://developer.android.com/reference/androidx/media3/common/MediaItem`.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_SEEK_TO_NEXT_MEDIA_ITEM() = 8`

Command to seek to the default position of the next `https://developer.android.com/reference/androidx/media3/common/MediaItem`.
`static final int` `@https://developer.android.com/reference/androidx/media3/common/util/UnstableApi
https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_SEEK_TO_NEXT_WINDOW() = 8`

**This field is deprecated.**

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

<br />

`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_SEEK_TO_PREVIOUS() = 7`

Command to seek to an earlier position in the current `https://developer.android.com/reference/androidx/media3/common/MediaItem` or the default position of the previous `https://developer.android.com/reference/androidx/media3/common/MediaItem`.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_SEEK_TO_PREVIOUS_MEDIA_ITEM() = 6`

Command to seek to the default position of the previous `https://developer.android.com/reference/androidx/media3/common/MediaItem`.
`static final int` `@https://developer.android.com/reference/androidx/media3/common/util/UnstableApi
https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_SEEK_TO_PREVIOUS_WINDOW() = 6`

**This field is deprecated.**

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

<br />

`static final int` `@https://developer.android.com/reference/androidx/media3/common/util/UnstableApi
https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_SEEK_TO_WINDOW() = 10`

**This field is deprecated.**

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

<br />

`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_SET_AUDIO_ATTRIBUTES() = 35`

Command to set the player's audio attributes.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_SET_DEVICE_VOLUME() = 25`

**This field is deprecated.**

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

<br />

`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_SET_DEVICE_VOLUME_WITH_FLAGS() = 33`

Command to set the device volume with volume flags.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_SET_MEDIA_ITEM() = 31`

Command to set a `https://developer.android.com/reference/androidx/media3/common/MediaItem`.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_SET_MEDIA_ITEMS_METADATA() = 19`

**This field is deprecated.**

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

<br />

`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_SET_PLAYLIST_METADATA() = 19`

Command to set the playlist metadata.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_SET_REPEAT_MODE() = 15`

Command to set the repeat mode.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_SET_SHUFFLE_MODE() = 14`

Command to enable shuffling.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_SET_SPEED_AND_PITCH() = 13`

Command to set the playback speed and pitch.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_SET_TRACK_SELECTION_PARAMETERS() = 29`

Command to set the player's track selection parameters.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_SET_VIDEO_SURFACE() = 27`

Command to set and clear the surface on which to render the video.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_SET_VOLUME() = 24`

Command to set the player volume.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_STOP() = 3`

Command to stop playback.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#DISCONTINUITY_REASON_AUTO_TRANSITION() = 0`

Automatic playback transition from one period in the timeline to the next.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#DISCONTINUITY_REASON_INTERNAL() = 5`

Discontinuity introduced internally (e.g. by the source).
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#DISCONTINUITY_REASON_REMOVE() = 4`

Discontinuity caused by the removal of the current period from the `https://developer.android.com/reference/androidx/media3/common/Timeline`.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#DISCONTINUITY_REASON_SEEK() = 1`

Seek within the current period or to another period.
`static final int` `https://developer.android.com/reference/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.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#DISCONTINUITY_REASON_SILENCE_SKIP() = 6`

Discontinuity introduced by a skipped silence.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#DISCONTINUITY_REASON_SKIP() = 3`

Discontinuity introduced by a skipped period (for instance a skipped ad).
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#EVENT_AUDIO_ATTRIBUTES_CHANGED() = 20`

`https://developer.android.com/reference/androidx/media3/common/Player#getAudioAttributes()` changed.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#EVENT_AUDIO_SESSION_ID() = 21`

The audio session id was set.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#EVENT_AVAILABLE_COMMANDS_CHANGED() = 13`

`https://developer.android.com/reference/androidx/media3/common/Player#isCommandAvailable(int)` changed for at least one `https://developer.android.com/reference/androidx/media3/common/Player.Command`.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#EVENT_CUES() = 27`

`https://developer.android.com/reference/androidx/media3/common/Player#getCurrentCues()` changed.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#EVENT_DEVICE_INFO_CHANGED() = 29`

`https://developer.android.com/reference/androidx/media3/common/Player#getDeviceInfo()` changed.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#EVENT_DEVICE_VOLUME_CHANGED() = 30`

`https://developer.android.com/reference/androidx/media3/common/Player#getDeviceVolume()` or `https://developer.android.com/reference/androidx/media3/common/Player#isDeviceMuted()` changed.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#EVENT_IS_LOADING_CHANGED() = 3`

`https://developer.android.com/reference/androidx/media3/common/Player#isLoading()` ()} changed.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#EVENT_IS_PLAYING_CHANGED() = 7`

`https://developer.android.com/reference/androidx/media3/common/Player#isPlaying()` changed.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#EVENT_MAX_SEEK_TO_PREVIOUS_POSITION_CHANGED() = 18`

`https://developer.android.com/reference/androidx/media3/common/Player#getMaxSeekToPreviousPosition()` changed.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#EVENT_MEDIA_ITEM_TRANSITION() = 1`

`https://developer.android.com/reference/androidx/media3/common/Player#getCurrentMediaItem()` changed or the player started repeating the current item.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#EVENT_MEDIA_METADATA_CHANGED() = 14`

`https://developer.android.com/reference/androidx/media3/common/Player#getMediaMetadata()` changed.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#EVENT_METADATA() = 28`

Metadata associated with the current playback time changed.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#EVENT_PLAYBACK_PARAMETERS_CHANGED() = 12`

`https://developer.android.com/reference/androidx/media3/common/Player#getPlaybackParameters()` changed.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#EVENT_PLAYBACK_STATE_CHANGED() = 4`

`https://developer.android.com/reference/androidx/media3/common/Player#getPlaybackState()` changed.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#EVENT_PLAYBACK_SUPPRESSION_REASON_CHANGED() = 6`

`https://developer.android.com/reference/androidx/media3/common/Player#getPlaybackSuppressionReason()` changed.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#EVENT_PLAYER_ERROR() = 10`

`https://developer.android.com/reference/androidx/media3/common/Player#getPlayerError()` changed.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#EVENT_PLAYLIST_METADATA_CHANGED() = 15`

`https://developer.android.com/reference/androidx/media3/common/Player#getPlaylistMetadata()` changed.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#EVENT_PLAY_WHEN_READY_CHANGED() = 5`

`https://developer.android.com/reference/androidx/media3/common/Player#getPlayWhenReady()` changed.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#EVENT_POSITION_DISCONTINUITY() = 11`

A position discontinuity occurred.
`static final int` `https://developer.android.com/reference/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.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#EVENT_REPEAT_MODE_CHANGED() = 8`

`https://developer.android.com/reference/androidx/media3/common/Player#getRepeatMode()` changed.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#EVENT_SEEK_BACK_INCREMENT_CHANGED() = 16`

`https://developer.android.com/reference/androidx/media3/common/Player#getSeekBackIncrement()` changed.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#EVENT_SEEK_FORWARD_INCREMENT_CHANGED() = 17`

`https://developer.android.com/reference/androidx/media3/common/Player#getSeekForwardIncrement()` changed.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#EVENT_SHUFFLE_MODE_ENABLED_CHANGED() = 9`

`https://developer.android.com/reference/androidx/media3/common/Player#getShuffleModeEnabled()` changed.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#EVENT_SKIP_SILENCE_ENABLED_CHANGED() = 23`

Skipping silences in the audio stream is enabled or disabled.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#EVENT_SURFACE_SIZE_CHANGED() = 24`

The size of the surface onto which the video is being rendered changed.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#EVENT_TIMELINE_CHANGED() = 0`

`https://developer.android.com/reference/androidx/media3/common/Player#getCurrentTimeline()` changed.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#EVENT_TRACKS_CHANGED() = 2`

`https://developer.android.com/reference/androidx/media3/common/Player#getCurrentTracks()` changed.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#EVENT_TRACK_SELECTION_PARAMETERS_CHANGED() = 19`

`https://developer.android.com/reference/androidx/media3/common/Player#getTrackSelectionParameters()` changed.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#EVENT_VIDEO_SIZE_CHANGED() = 25`

`https://developer.android.com/reference/androidx/media3/common/Player#getVideoSize()` changed.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#EVENT_VOLUME_CHANGED() = 22`

`https://developer.android.com/reference/androidx/media3/common/Player#getVolume()` changed.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#MEDIA_ITEM_TRANSITION_REASON_AUTO() = 1`

Playback has automatically transitioned to the next media item.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#MEDIA_ITEM_TRANSITION_REASON_PLAYLIST_CHANGED() = 3`

The current media item has changed because of a change in the playlist.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#MEDIA_ITEM_TRANSITION_REASON_REPEAT() = 0`

The media item has been repeated.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#MEDIA_ITEM_TRANSITION_REASON_SEEK() = 2`

A seek to another media item has occurred.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#PLAYBACK_SUPPRESSION_REASON_NONE() = 0`

Playback is not suppressed.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#PLAYBACK_SUPPRESSION_REASON_SCRUBBING() = 4`

Playback is suppressed because the player is currently scrubbing.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#PLAYBACK_SUPPRESSION_REASON_TRANSIENT_AUDIO_FOCUS_LOSS() = 1`

Playback is suppressed due to transient audio focus loss.
`static final int` `https://developer.android.com/reference/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).
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#PLAYBACK_SUPPRESSION_REASON_UNSUITABLE_AUDIO_ROUTE() = 2`

**This field is deprecated.**

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

<br />

`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#PLAY_WHEN_READY_CHANGE_REASON_AUDIO_BECOMING_NOISY() = 3`

Playback has been paused to avoid becoming noisy.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#PLAY_WHEN_READY_CHANGE_REASON_AUDIO_FOCUS_LOSS() = 2`

Playback has been paused because of a loss of audio focus.
`static final int` `https://developer.android.com/reference/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.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#PLAY_WHEN_READY_CHANGE_REASON_REMOTE() = 4`

Playback has been started or paused because of a remote change.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#PLAY_WHEN_READY_CHANGE_REASON_SUPPRESSED_TOO_LONG() = 6`

Playback has been paused because playback has been `https://developer.android.com/reference/androidx/media3/common/Player#getPlaybackSuppressionReason()` too long.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#PLAY_WHEN_READY_CHANGE_REASON_USER_REQUEST() = 1`

Playback has been started or paused by a call to `https://developer.android.com/reference/androidx/media3/common/Player#setPlayWhenReady(boolean)`.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#REPEAT_MODE_ALL() = 2`

Repeats the entire timeline infinitely.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#REPEAT_MODE_OFF() = 0`

Normal playback without repetition.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#REPEAT_MODE_ONE() = 1`

Repeats the currently playing `https://developer.android.com/reference/androidx/media3/common/MediaItem` infinitely during ongoing playback.
`static final int` `https://developer.android.com/reference/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.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#STATE_ENDED() = 4`

The player has finished playing the media.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#STATE_IDLE() = 1`

The player is idle, meaning it holds only limited resources.
`static final int` `https://developer.android.com/reference/androidx/media3/common/Player#STATE_READY() = 3`

The player is able to immediately play from its current position.
`static final int` `https://developer.android.com/reference/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.
`static final int` `https://developer.android.com/reference/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 fields

From [androidx.media3.common.BasePlayer](https://developer.android.com/reference/androidx/media3/common/BasePlayer) `final https://developer.android.com/reference/androidx/media3/common/Timeline.Window` `https://developer.android.com/reference/androidx/media3/common/BasePlayer#window()` From [androidx.media3.common.SimpleBasePlayer](https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer) `final https://developer.android.com/reference/android/os/Looper.html` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#applicationLooper()`

### Inherited methods

From [androidx.media3.common.BasePlayer](https://developer.android.com/reference/androidx/media3/common/BasePlayer) `final void` `https://developer.android.com/reference/androidx/media3/common/BasePlayer#addMediaItem(androidx.media3.common.MediaItem)(https://developer.android.com/reference/androidx/media3/common/MediaItem mediaItem)`

Adds a media item to the end of the playlist.
`final void` `https://developer.android.com/reference/androidx/media3/common/BasePlayer#addMediaItem(int,androidx.media3.common.MediaItem)(int index, https://developer.android.com/reference/androidx/media3/common/MediaItem mediaItem)`

Adds a media item at the given index of the playlist.
`final void` `https://developer.android.com/reference/androidx/media3/common/BasePlayer#addMediaItems(java.util.List<androidx.media3.common.MediaItem>)(https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/media3/common/MediaItem> mediaItems)`

Adds a list of media items to the end of the playlist.
`final boolean` `https://developer.android.com/reference/androidx/media3/common/BasePlayer#canAdvertiseSession()()`

Returns whether the player can be used to advertise a media session.
`final void` `https://developer.android.com/reference/androidx/media3/common/BasePlayer#clearMediaItems()()`

Clears the playlist.
`final int` `https://developer.android.com/reference/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.
`final long` `https://developer.android.com/reference/androidx/media3/common/BasePlayer#getContentDuration()()`

If `https://developer.android.com/reference/androidx/media3/common/Player#isPlayingAd()` returns `true`, returns the duration of the current content in milliseconds, or `https://developer.android.com/reference/androidx/media3/common/C#TIME_UNSET()` if the duration is not known.
`final long` `https://developer.android.com/reference/androidx/media3/common/BasePlayer#getCurrentLiveOffset()()`

Returns the offset of the current playback position from the live edge in milliseconds, or `https://developer.android.com/reference/androidx/media3/common/C#TIME_UNSET()` if the current `https://developer.android.com/reference/androidx/media3/common/MediaItem``https://developer.android.com/reference/androidx/media3/common/Player#isCurrentMediaItemLive()` or the offset is unknown.
`final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/Object.html` `https://developer.android.com/reference/androidx/media3/common/BasePlayer#getCurrentManifest()()`

Returns the current manifest.
`final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/media3/common/MediaItem` `https://developer.android.com/reference/androidx/media3/common/BasePlayer#getCurrentMediaItem()()`

Returns the currently playing `https://developer.android.com/reference/androidx/media3/common/MediaItem`.
`final int` `[getCurrentWindowIndex](https://developer.android.com/reference/androidx/media3/common/BasePlayer#getCurrentWindowIndex())()`

**This method is deprecated.**

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

<br />

`final https://developer.android.com/reference/androidx/media3/common/MediaItem` `https://developer.android.com/reference/androidx/media3/common/BasePlayer#getMediaItemAt(int)(int index)`

Returns the `https://developer.android.com/reference/androidx/media3/common/MediaItem` at the given index.
`final int` `https://developer.android.com/reference/androidx/media3/common/BasePlayer#getMediaItemCount()()`

Returns the number of `https://developer.android.com/reference/androidx/media3/common/MediaItem` in the playlist.
`final int` `https://developer.android.com/reference/androidx/media3/common/BasePlayer#getNextMediaItemIndex()()`

Returns the index of the `https://developer.android.com/reference/androidx/media3/common/MediaItem` that will be played if `https://developer.android.com/reference/androidx/media3/common/Player#seekToNextMediaItem()` is called, which may depend on the current repeat mode and whether shuffle mode is enabled.
`final int` `[getNextWindowIndex](https://developer.android.com/reference/androidx/media3/common/BasePlayer#getNextWindowIndex())()`

**This method is deprecated.**

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

<br />

`final int` `https://developer.android.com/reference/androidx/media3/common/BasePlayer#getPreviousMediaItemIndex()()`

Returns the index of the `https://developer.android.com/reference/androidx/media3/common/MediaItem` that will be played if `https://developer.android.com/reference/androidx/media3/common/Player#seekToPreviousMediaItem()` is called, which may depend on the current repeat mode and whether shuffle mode is enabled.
`final int` `[getPreviousWindowIndex](https://developer.android.com/reference/androidx/media3/common/BasePlayer#getPreviousWindowIndex())()`

**This method is deprecated.**

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

<br />

`final boolean` `https://developer.android.com/reference/androidx/media3/common/BasePlayer#hasNextMediaItem()()`

Returns whether a next `https://developer.android.com/reference/androidx/media3/common/MediaItem` exists, which may depend on the current repeat mode and whether shuffle mode is enabled.
`final boolean` `https://developer.android.com/reference/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.
`final boolean` `https://developer.android.com/reference/androidx/media3/common/BasePlayer#isCommandAvailable(int)(@https://developer.android.com/reference/androidx/media3/common/Player.Command int command)`

Returns whether the provided `https://developer.android.com/reference/androidx/media3/common/Player.Command` is available.
`final boolean` `https://developer.android.com/reference/androidx/media3/common/BasePlayer#isCurrentMediaItemDynamic()()`

Returns whether the current `https://developer.android.com/reference/androidx/media3/common/MediaItem` is dynamic (may change when the `https://developer.android.com/reference/androidx/media3/common/Timeline` is updated), or `false` if the `https://developer.android.com/reference/androidx/media3/common/Timeline` is empty.
`final boolean` `https://developer.android.com/reference/androidx/media3/common/BasePlayer#isCurrentMediaItemLive()()`

Returns whether the current `https://developer.android.com/reference/androidx/media3/common/MediaItem` is live, or `false` if the `https://developer.android.com/reference/androidx/media3/common/Timeline` is empty.
`final boolean` `https://developer.android.com/reference/androidx/media3/common/BasePlayer#isCurrentMediaItemSeekable()()`

Returns whether the current `https://developer.android.com/reference/androidx/media3/common/MediaItem` is seekable, or `false` if the `https://developer.android.com/reference/androidx/media3/common/Timeline` is empty.
`final boolean` `[isCurrentWindowDynamic](https://developer.android.com/reference/androidx/media3/common/BasePlayer#isCurrentWindowDynamic())()`

**This method is deprecated.**

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

<br />

`final boolean` `[isCurrentWindowLive](https://developer.android.com/reference/androidx/media3/common/BasePlayer#isCurrentWindowLive())()`

**This method is deprecated.**

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

<br />

`final boolean` `[isCurrentWindowSeekable](https://developer.android.com/reference/androidx/media3/common/BasePlayer#isCurrentWindowSeekable())()`

**This method is deprecated.**

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

<br />

`final boolean` `https://developer.android.com/reference/androidx/media3/common/BasePlayer#isPlaying()()`

Returns whether the player is playing, i.e. `https://developer.android.com/reference/androidx/media3/common/Player#getCurrentPosition()` is advancing.
`final void` `https://developer.android.com/reference/androidx/media3/common/BasePlayer#moveMediaItem(int,int)(int currentIndex, int newIndex)`

Moves the media item at the current index to the new index.
`final void` `https://developer.android.com/reference/androidx/media3/common/BasePlayer#pause()()`

Pauses playback.
`final void` `https://developer.android.com/reference/androidx/media3/common/BasePlayer#play()()`

Resumes playback as soon as `https://developer.android.com/reference/androidx/media3/common/Player#getPlaybackState()` == `https://developer.android.com/reference/androidx/media3/common/Player#STATE_READY()`.
`final void` `https://developer.android.com/reference/androidx/media3/common/BasePlayer#removeMediaItem(int)(int index)`

Removes the media item at the given index of the playlist.
`final void` `https://developer.android.com/reference/androidx/media3/common/BasePlayer#replaceMediaItem(int,androidx.media3.common.MediaItem)(int index, https://developer.android.com/reference/androidx/media3/common/MediaItem mediaItem)`

Replaces the media item at the given index of the playlist.
`final void` `https://developer.android.com/reference/androidx/media3/common/BasePlayer#seekBack()()`

Seeks back in the current `https://developer.android.com/reference/androidx/media3/common/MediaItem` by `https://developer.android.com/reference/androidx/media3/common/Player#getSeekBackIncrement()` milliseconds.
`final void` `https://developer.android.com/reference/androidx/media3/common/BasePlayer#seekForward()()`

Seeks forward in the current `https://developer.android.com/reference/androidx/media3/common/MediaItem` by `https://developer.android.com/reference/androidx/media3/common/Player#getSeekForwardIncrement()` milliseconds.
`final void` `https://developer.android.com/reference/androidx/media3/common/BasePlayer#seekTo(long)(long positionMs)`

Seeks to a position specified in milliseconds in the current `https://developer.android.com/reference/androidx/media3/common/MediaItem`.
`final void` `https://developer.android.com/reference/androidx/media3/common/BasePlayer#seekTo(int,long)(int mediaItemIndex, long positionMs)`

Seeks to a position specified in milliseconds in the specified `https://developer.android.com/reference/androidx/media3/common/MediaItem`.
`final void` `https://developer.android.com/reference/androidx/media3/common/BasePlayer#seekToDefaultPosition()()`

Seeks to the default position associated with the current `https://developer.android.com/reference/androidx/media3/common/MediaItem`.
`final void` `https://developer.android.com/reference/androidx/media3/common/BasePlayer#seekToDefaultPosition(int)(int mediaItemIndex)`

Seeks to the default position associated with the specified `https://developer.android.com/reference/androidx/media3/common/MediaItem`.
`final void` `https://developer.android.com/reference/androidx/media3/common/BasePlayer#seekToNext()()`

Seeks to a later position in the current or next `https://developer.android.com/reference/androidx/media3/common/MediaItem` (if available).
`final void` `https://developer.android.com/reference/androidx/media3/common/BasePlayer#seekToNextMediaItem()()`

Seeks to the default position of the next `https://developer.android.com/reference/androidx/media3/common/MediaItem`, which may depend on the current repeat mode and whether shuffle mode is enabled.
`final void` `https://developer.android.com/reference/androidx/media3/common/BasePlayer#seekToPrevious()()`

Seeks to an earlier position in the current or previous `https://developer.android.com/reference/androidx/media3/common/MediaItem` (if available).
`final void` `https://developer.android.com/reference/androidx/media3/common/BasePlayer#seekToPreviousMediaItem()()`

Seeks to the default position of the previous `https://developer.android.com/reference/androidx/media3/common/MediaItem`, which may depend on the current repeat mode and whether shuffle mode is enabled.
`final void` `https://developer.android.com/reference/androidx/media3/common/BasePlayer#setMediaItem(androidx.media3.common.MediaItem)(https://developer.android.com/reference/androidx/media3/common/MediaItem mediaItem)`

Clears the playlist, adds the specified `https://developer.android.com/reference/androidx/media3/common/MediaItem` and resets the position to the default position.
`final void` `https://developer.android.com/reference/androidx/media3/common/BasePlayer#setMediaItem(androidx.media3.common.MediaItem,boolean)(https://developer.android.com/reference/androidx/media3/common/MediaItem mediaItem, boolean resetPosition)`

Clears the playlist and adds the specified `https://developer.android.com/reference/androidx/media3/common/MediaItem`.
`final void` `https://developer.android.com/reference/androidx/media3/common/BasePlayer#setMediaItem(androidx.media3.common.MediaItem,long)(https://developer.android.com/reference/androidx/media3/common/MediaItem mediaItem, long startPositionMs)`

Clears the playlist and adds the specified `https://developer.android.com/reference/androidx/media3/common/MediaItem`.
`final void` `https://developer.android.com/reference/androidx/media3/common/BasePlayer#setMediaItems(java.util.List<androidx.media3.common.MediaItem>)(https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/media3/common/MediaItem> mediaItems)`

Clears the playlist, adds the specified `https://developer.android.com/reference/androidx/media3/common/MediaItem` and resets the position to the default position.
`final void` `https://developer.android.com/reference/androidx/media3/common/BasePlayer#setPlaybackSpeed(float)(float speed)`

Changes the rate at which playback occurs.
From [androidx.media3.common.Player](https://developer.android.com/reference/androidx/media3/common/Player) `abstract void` `[setDeviceVolume](https://developer.android.com/reference/androidx/media3/common/Player#setDeviceVolume(int))(@https://developer.android.com/reference/androidx/annotation/IntRange(from = 0) int volume)`

**This method is deprecated.**

Use `https://developer.android.com/reference/androidx/media3/common/Player#setDeviceVolume(int,int)` instead.

<br />

`abstract void` `https://developer.android.com/reference/androidx/media3/common/Player#setDeviceVolume(int,int)(@https://developer.android.com/reference/androidx/annotation/IntRange(from = 0) int volume, @https://developer.android.com/reference/androidx/media3/common/C.VolumeFlags int flags)`

Sets the volume of the device with volume flags.
`abstract void` `https://developer.android.com/reference/androidx/media3/common/Player#setMediaItems(java.util.List<androidx.media3.common.MediaItem>,int,long)(
https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/media3/common/MediaItem> mediaItems,
int startIndex,
long startPositionMs
)`

Clears the playlist and adds the specified `https://developer.android.com/reference/androidx/media3/common/MediaItem`.
`abstract void` `https://developer.android.com/reference/androidx/media3/common/Player#setPlaybackSpeed(float)(@https://developer.android.com/reference/androidx/annotation/FloatRange(from = 0, fromInclusive = false) float speed)`

Changes the rate at which playback occurs.
`abstract void` `https://developer.android.com/reference/androidx/media3/common/Player#setRepeatMode(int)(@https://developer.android.com/reference/androidx/media3/common/Player.RepeatMode int repeatMode)`

Sets the `https://developer.android.com/reference/androidx/media3/common/Player.RepeatMode` to be used for playback.
`abstract void` `https://developer.android.com/reference/androidx/media3/common/Player#setVolume(float)(@https://developer.android.com/reference/androidx/annotation/FloatRange(from = 0, to = 1.0) float volume)`

Sets the audio volume, valid values are between 0 (silence) and 1 (unity gain, signal unchanged), inclusive.
From [androidx.media3.common.SimpleBasePlayer](https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer) `final void` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#addListener(androidx.media3.common.Player.Listener)(https://developer.android.com/reference/androidx/media3/common/Player.Listener listener)`

Registers a listener to receive all events from the player.
`final void` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#addMediaItems(int,java.util.List<androidx.media3.common.MediaItem>)(int index, https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/media3/common/MediaItem> mediaItems)`

Adds a list of media items at the given index of the playlist.
`final void` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#clearVideoSurface()()`

Clears any `https://developer.android.com/reference/android/view/Surface.html`, `https://developer.android.com/reference/android/view/SurfaceHolder.html`, `https://developer.android.com/reference/android/view/SurfaceView.html` or `https://developer.android.com/reference/android/view/TextureView.html` currently set on the player.
`final void` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#clearVideoSurface(android.view.Surface)(@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/android/view/Surface.html surface)`

Clears the `https://developer.android.com/reference/android/view/Surface.html` onto which video is being rendered if it matches the one passed.
`final void` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#clearVideoSurfaceHolder(android.view.SurfaceHolder)(@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/android/view/SurfaceHolder.html surfaceHolder)`

Clears the `https://developer.android.com/reference/android/view/SurfaceHolder.html` that holds the `https://developer.android.com/reference/android/view/Surface.html` onto which video is being rendered if it matches the one passed.
`final void` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#clearVideoSurfaceView(android.view.SurfaceView)(@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/android/view/SurfaceView.html surfaceView)`

Clears the `https://developer.android.com/reference/android/view/SurfaceView.html` onto which video is being rendered if it matches the one passed.
`final void` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#clearVideoTextureView(android.view.TextureView)(@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/android/view/TextureView.html textureView)`

Clears the `https://developer.android.com/reference/android/view/TextureView.html` onto which video is being rendered if it matches the one passed.
`final void` `[decreaseDeviceVolume](https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#decreaseDeviceVolume())()`

**This method is deprecated.**

Use `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#decreaseDeviceVolume(int)` instead.

<br />

`final void` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#decreaseDeviceVolume(int)(@https://developer.android.com/reference/androidx/media3/common/C.VolumeFlags int flags)`

Decreases the volume of the device.
`final https://developer.android.com/reference/android/os/Looper.html` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#getApplicationLooper()()`

Returns the `https://developer.android.com/reference/android/os/Looper.html` associated with the application thread that's used to access the player and on which player events are received.
`final https://developer.android.com/reference/androidx/media3/common/AudioAttributes` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#getAudioAttributes()()`

Returns the attributes for audio playback.
`final int` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#getAudioSessionId()()`

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

Returns the player's currently available `https://developer.android.com/reference/androidx/media3/common/Player.Commands`.
`final long` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#getBufferedPosition()()`

Returns an estimate of the position in the current content or ad up to which data is buffered, in milliseconds.
`final long` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#getContentBufferedPosition()()`

If `https://developer.android.com/reference/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.
`final long` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#getContentPosition()()`

If `https://developer.android.com/reference/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.
`final int` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#getCurrentAdGroupIndex()()`

If `https://developer.android.com/reference/androidx/media3/common/Player#isPlayingAd()` returns true, returns the index of the ad group in the period currently being played.
`final int` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#getCurrentAdIndexInAdGroup()()`

If `https://developer.android.com/reference/androidx/media3/common/Player#isPlayingAd()` returns true, returns the index of the ad in its ad group.
`final https://developer.android.com/reference/androidx/media3/common/text/CueGroup` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#getCurrentCues()()`

Returns the current `https://developer.android.com/reference/androidx/media3/common/text/CueGroup`.
`final int` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#getCurrentMediaItemIndex()()`

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

Returns the index of the period currently being played.
`final long` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#getCurrentPosition()()`

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

Returns the current `https://developer.android.com/reference/androidx/media3/common/Timeline`.
`final https://developer.android.com/reference/androidx/media3/common/Tracks` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#getCurrentTracks()()`

Returns the current tracks.
`final https://developer.android.com/reference/androidx/media3/common/DeviceInfo` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#getDeviceInfo()()`

Gets the device information.
`final int` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#getDeviceVolume()()`

Gets the current volume of the device.
`final long` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#getDuration()()`

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

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

Returns the current combined `https://developer.android.com/reference/androidx/media3/common/MediaMetadata`, or `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#EMPTY()` if not supported.
`https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer.MediaItemData` `@https://checkerframework.org/api/com/google/errorprone/annotations/ForOverride.html
https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#getPlaceholderMediaItemData(androidx.media3.common.MediaItem)(https://developer.android.com/reference/androidx/media3/common/MediaItem mediaItem)`

Returns the placeholder `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer.MediaItemData` used for a new `https://developer.android.com/reference/androidx/media3/common/MediaItem` added to the playlist.
`https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer.State` `@https://checkerframework.org/api/com/google/errorprone/annotations/ForOverride.html
https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#getPlaceholderState(androidx.media3.common.SimpleBasePlayer.State)(https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer.State suggestedPlaceholderState)`

Returns the placeholder state used while a player method is handled asynchronously.
`final boolean` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#getPlayWhenReady()()`

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

Returns the currently active playback parameters.
`final int` `@https://developer.android.com/reference/androidx/media3/common/Player.State
https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#getPlaybackState()()`

Returns the current `https://developer.android.com/reference/androidx/media3/common/Player.State` of the player.
`final int` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#getPlaybackSuppressionReason()()`

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

Returns the error that caused playback to fail.
`final https://developer.android.com/reference/androidx/media3/common/MediaMetadata` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#getPlaylistMetadata()()`

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

Returns the current `https://developer.android.com/reference/androidx/media3/common/Player.RepeatMode` used for playback.
`final long` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#getSeekBackIncrement()()`

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

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

Returns whether shuffling of media items is enabled.
`final https://developer.android.com/reference/androidx/media3/common/util/Size` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#getSurfaceSize()()`

Gets the size of the surface on which the video is rendered.
`final long` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#getTotalBufferedDuration()()`

Returns an estimate of the total buffered duration from the current position, in milliseconds.
`final https://developer.android.com/reference/androidx/media3/common/TrackSelectionParameters` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#getTrackSelectionParameters()()`

Returns the parameters constraining the track selection.
`final https://developer.android.com/reference/androidx/media3/common/VideoSize` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#getVideoSize()()`

Gets the size of the video.
`final float` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#getVolume()()`

Returns the audio volume, with 0 being silence and 1 being unity gain (signal unchanged).
`https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<@https://developer.android.com/reference/androidx/annotation/NonNull ?>` `@https://checkerframework.org/api/com/google/errorprone/annotations/ForOverride.html
https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#handleAddMediaItems(int,java.util.List<androidx.media3.common.MediaItem>)(int index, https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/media3/common/MediaItem> mediaItems)`

Handles calls to `https://developer.android.com/reference/androidx/media3/common/Player#addMediaItem(androidx.media3.common.MediaItem)` and `https://developer.android.com/reference/androidx/media3/common/Player#addMediaItems(java.util.List<androidx.media3.common.MediaItem>)`.
`https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<@https://developer.android.com/reference/androidx/annotation/NonNull ?>` `@https://checkerframework.org/api/com/google/errorprone/annotations/ForOverride.html
https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#handleDecreaseDeviceVolume(int)(@https://developer.android.com/reference/androidx/media3/common/C.VolumeFlags int flags)`

Handles calls to `https://developer.android.com/reference/androidx/media3/common/Player#decreaseDeviceVolume()` and `https://developer.android.com/reference/androidx/media3/common/Player#decreaseDeviceVolume(int)`.
`https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<@https://developer.android.com/reference/androidx/annotation/NonNull ?>` `@https://checkerframework.org/api/com/google/errorprone/annotations/ForOverride.html
https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#handleIncreaseDeviceVolume(int)(@https://developer.android.com/reference/androidx/media3/common/C.VolumeFlags int flags)`

Handles calls to `https://developer.android.com/reference/androidx/media3/common/Player#increaseDeviceVolume()` and `https://developer.android.com/reference/androidx/media3/common/Player#increaseDeviceVolume(int)`.
`https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<@https://developer.android.com/reference/androidx/annotation/NonNull ?>` `@https://checkerframework.org/api/com/google/errorprone/annotations/ForOverride.html
https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#handleMoveMediaItems(int,int,int)(int fromIndex, int toIndex, int newIndex)`

Handles calls to `https://developer.android.com/reference/androidx/media3/common/Player#moveMediaItem(int,int)` and `https://developer.android.com/reference/androidx/media3/common/Player#moveMediaItems(int,int,int)`.
`https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<@https://developer.android.com/reference/androidx/annotation/NonNull ?>` `@https://checkerframework.org/api/com/google/errorprone/annotations/ForOverride.html
https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#handleRemoveMediaItems(int,int)(int fromIndex, int toIndex)`

Handles calls to `https://developer.android.com/reference/androidx/media3/common/Player#removeMediaItem(int)` and `https://developer.android.com/reference/androidx/media3/common/Player#removeMediaItems(int,int)`.
`https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<@https://developer.android.com/reference/androidx/annotation/NonNull ?>` `@https://checkerframework.org/api/com/google/errorprone/annotations/ForOverride.html
https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#handleReplaceMediaItems(int,int,java.util.List<androidx.media3.common.MediaItem>)(
int fromIndex,
int toIndex,
https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/media3/common/MediaItem> mediaItems
)`

Handles calls to `https://developer.android.com/reference/androidx/media3/common/Player#replaceMediaItem(int,androidx.media3.common.MediaItem)` and `https://developer.android.com/reference/androidx/media3/common/Player#replaceMediaItems(int,int,java.util.List<androidx.media3.common.MediaItem>)`.
`https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<@https://developer.android.com/reference/androidx/annotation/NonNull ?>` `@https://checkerframework.org/api/com/google/errorprone/annotations/ForOverride.html
https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#handleSetDeviceMuted(boolean,int)(boolean muted, @https://developer.android.com/reference/androidx/media3/common/C.VolumeFlags int flags)`

Handles calls to `https://developer.android.com/reference/androidx/media3/common/Player#setDeviceMuted(boolean)` and `https://developer.android.com/reference/androidx/media3/common/Player#setDeviceMuted(boolean,int)`.
`https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<@https://developer.android.com/reference/androidx/annotation/NonNull ?>` `@https://checkerframework.org/api/com/google/errorprone/annotations/ForOverride.html
https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#handleSetDeviceVolume(int,int)(
@https://developer.android.com/reference/androidx/annotation/IntRange(from = 0) int deviceVolume,
@https://developer.android.com/reference/androidx/media3/common/C.VolumeFlags int flags
)`

Handles calls to `https://developer.android.com/reference/androidx/media3/common/Player#setDeviceVolume(int)` and `https://developer.android.com/reference/androidx/media3/common/Player#setDeviceVolume(int,int)`.
`https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<@https://developer.android.com/reference/androidx/annotation/NonNull ?>` `@https://checkerframework.org/api/com/google/errorprone/annotations/ForOverride.html
https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#handleSetMediaItems(java.util.List<androidx.media3.common.MediaItem>,int,long)(
https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/media3/common/MediaItem> mediaItems,
int startIndex,
long startPositionMs
)`

Handles calls to `https://developer.android.com/reference/androidx/media3/common/Player#setMediaItem(androidx.media3.common.MediaItem)` and `https://developer.android.com/reference/androidx/media3/common/Player#setMediaItems(java.util.List<androidx.media3.common.MediaItem>)`.
`https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<@https://developer.android.com/reference/androidx/annotation/NonNull ?>` `@https://checkerframework.org/api/com/google/errorprone/annotations/ForOverride.html
https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#handleSetPlaybackParameters(androidx.media3.common.PlaybackParameters)(https://developer.android.com/reference/androidx/media3/common/PlaybackParameters playbackParameters)`

Handles calls to `https://developer.android.com/reference/androidx/media3/common/Player#setPlaybackParameters(androidx.media3.common.PlaybackParameters)` or `https://developer.android.com/reference/androidx/media3/common/Player#setPlaybackSpeed(float)`.
`https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<@https://developer.android.com/reference/androidx/annotation/NonNull ?>` `@https://checkerframework.org/api/com/google/errorprone/annotations/ForOverride.html
https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#handleSetPlaylistMetadata(androidx.media3.common.MediaMetadata)(https://developer.android.com/reference/androidx/media3/common/MediaMetadata playlistMetadata)`

Handles calls to `https://developer.android.com/reference/androidx/media3/common/Player#setPlaylistMetadata(androidx.media3.common.MediaMetadata)`.
`https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<@https://developer.android.com/reference/androidx/annotation/NonNull ?>` `@https://checkerframework.org/api/com/google/errorprone/annotations/ForOverride.html
https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#handleSetShuffleModeEnabled(boolean)(boolean shuffleModeEnabled)`

Handles calls to `https://developer.android.com/reference/androidx/media3/common/Player#setShuffleModeEnabled(boolean)`.
`https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<@https://developer.android.com/reference/androidx/annotation/NonNull ?>` `@https://checkerframework.org/api/com/google/errorprone/annotations/ForOverride.html
https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#handleSetTrackSelectionParameters(androidx.media3.common.TrackSelectionParameters)(
https://developer.android.com/reference/androidx/media3/common/TrackSelectionParameters trackSelectionParameters
)`

Handles calls to `https://developer.android.com/reference/androidx/media3/common/Player#setTrackSelectionParameters(androidx.media3.common.TrackSelectionParameters)`.
`https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<@https://developer.android.com/reference/androidx/annotation/NonNull ?>` `@https://checkerframework.org/api/com/google/errorprone/annotations/ForOverride.html
[handleSetVolume](https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#handleSetVolume(float))(@https://developer.android.com/reference/androidx/annotation/FloatRange(from = 0, to = 1.0) float volume)`

**This method is deprecated.**

Use `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#handleSetVolume(float,int)` instead.

<br />

`final void` `[increaseDeviceVolume](https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#increaseDeviceVolume())()`

**This method is deprecated.**

Use `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#increaseDeviceVolume(int)` instead.

<br />

`final void` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#increaseDeviceVolume(int)(@https://developer.android.com/reference/androidx/media3/common/C.VolumeFlags int flags)`

Increases the volume of the device.
`final void` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#invalidateState()()`

Invalidates the current state.
`final boolean` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#isDeviceMuted()()`

Gets whether the device is muted or not.
`final boolean` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#isLoading()()`

Whether the player is currently loading the source.
`final boolean` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#isPlayingAd()()`

Returns whether the player is currently playing an ad.
`final void` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#moveMediaItems(int,int,int)(int fromIndex, int toIndex, int newIndex)`

Moves the media item range to the new index.
`final void` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#mute()()`

Sets the audio volume to 0.
`final void` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#prepare()()`

Prepares the player.
`final void` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#release()()`

Releases the player.
`final void` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#removeListener(androidx.media3.common.Player.Listener)(https://developer.android.com/reference/androidx/media3/common/Player.Listener listener)`

Unregister a listener registered through `https://developer.android.com/reference/androidx/media3/common/Player#addListener(androidx.media3.common.Player.Listener)`.
`final void` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#removeMediaItems(int,int)(int fromIndex, int toIndex)`

Removes a range of media items from the playlist.
`final void` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#replaceMediaItems(int,int,java.util.List<androidx.media3.common.MediaItem>)(
int fromIndex,
int toIndex,
https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/media3/common/MediaItem> mediaItems
)`

Replaces the media items at the given range of the playlist.
`final void` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#seekTo(int,long,int,boolean)(
int mediaItemIndex,
long positionMs,
@https://developer.android.com/reference/androidx/media3/common/Player.Command int seekCommand,
boolean isRepeatingCurrentItem
)`

Seeks to a position in the specified `https://developer.android.com/reference/androidx/media3/common/MediaItem`.
`final void` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#setAudioAttributes(androidx.media3.common.AudioAttributes,boolean)(
https://developer.android.com/reference/androidx/media3/common/AudioAttributes audioAttributes,
boolean handleAudioFocus
)`

Sets the attributes for audio playback, used by the underlying audio track.
`final void` `[setDeviceMuted](https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#setDeviceMuted(boolean))(boolean muted)`

**This method is deprecated.**

Use `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#setDeviceMuted(boolean,int)` instead.

<br />

`final void` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#setDeviceMuted(boolean,int)(boolean muted, @https://developer.android.com/reference/androidx/media3/common/C.VolumeFlags int flags)`

Sets the mute state of the device.
`final void` `[setDeviceVolume](https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#setDeviceVolume(int))(int volume)`

**This method is deprecated.**

Use `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#setDeviceVolume(int,int)` instead.

<br />

`final void` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#setDeviceVolume(int,int)(int volume, @https://developer.android.com/reference/androidx/media3/common/C.VolumeFlags int flags)`

Sets the volume of the device with volume flags.
`final void` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#setMediaItems(java.util.List<androidx.media3.common.MediaItem>,boolean)(https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/media3/common/MediaItem> mediaItems, boolean resetPosition)`

Clears the playlist and adds the specified `https://developer.android.com/reference/androidx/media3/common/MediaItem`.
`final void` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#setMediaItems(java.util.List<androidx.media3.common.MediaItem>,int,long)(
https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/media3/common/MediaItem> mediaItems,
int startIndex,
long startPositionMs
)`

Clears the playlist and adds the specified `https://developer.android.com/reference/androidx/media3/common/MediaItem`.
`final void` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#setPlayWhenReady(boolean)(boolean playWhenReady)`

Sets whether playback should proceed when `https://developer.android.com/reference/androidx/media3/common/Player#getPlaybackState()` == `https://developer.android.com/reference/androidx/media3/common/Player#STATE_READY()`.
`final void` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#setPlaybackParameters(androidx.media3.common.PlaybackParameters)(https://developer.android.com/reference/androidx/media3/common/PlaybackParameters playbackParameters)`

Attempts to set the playback parameters.
`final void` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#setPlaylistMetadata(androidx.media3.common.MediaMetadata)(https://developer.android.com/reference/androidx/media3/common/MediaMetadata mediaMetadata)`

Sets the playlist `https://developer.android.com/reference/androidx/media3/common/MediaMetadata`.
`final void` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#setRepeatMode(int)(@https://developer.android.com/reference/androidx/media3/common/Player.RepeatMode int repeatMode)`

Sets the `https://developer.android.com/reference/androidx/media3/common/Player.RepeatMode` to be used for playback.
`final void` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#setShuffleModeEnabled(boolean)(boolean shuffleModeEnabled)`

Sets whether shuffling of media items is enabled.
`final void` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#setTrackSelectionParameters(androidx.media3.common.TrackSelectionParameters)(https://developer.android.com/reference/androidx/media3/common/TrackSelectionParameters parameters)`

Sets the parameters constraining the track selection.
`final void` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#setVideoSurface(android.view.Surface)(@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/android/view/Surface.html surface)`

Sets the `https://developer.android.com/reference/android/view/Surface.html` onto which video will be rendered.
`final void` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#setVideoSurfaceHolder(android.view.SurfaceHolder)(@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/android/view/SurfaceHolder.html surfaceHolder)`

Sets the `https://developer.android.com/reference/android/view/SurfaceHolder.html` that holds the `https://developer.android.com/reference/android/view/Surface.html` onto which video will be rendered.
`final void` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#setVideoSurfaceView(android.view.SurfaceView)(@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/android/view/SurfaceView.html surfaceView)`

Sets the `https://developer.android.com/reference/android/view/SurfaceView.html` onto which video will be rendered.
`final void` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#setVideoTextureView(android.view.TextureView)(@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/android/view/TextureView.html textureView)`

Sets the `https://developer.android.com/reference/android/view/TextureView.html` onto which video will be rendered.
`final void` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#setVolume(float)(float volume)`

Sets the audio volume, valid values are between 0 (silence) and 1 (unity gain, signal unchanged), inclusive.
`final void` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#stop()()`

Stops playback without resetting the playlist.
`final void` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#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.
`final void` `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#verifyApplicationThread()()`

Throws an `https://developer.android.com/reference/java/lang/IllegalStateException.html` if the the thread calling this method does not match the `https://developer.android.com/reference/android/os/Looper.html` thread that was specified upon construction of this instance.

## Public fields

### clock

```
public final Clock clock
```

## Public methods

### addAnalyticsListener

```
public void addAnalyticsListener(AnalyticsListener listener)
```

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

This method can be called from any thread.

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

### experimentalRedrawLastFrame

```
@ExperimentalApi
public void experimentalRedrawLastFrame()
```

Forces the effect pipeline to redraw the effects immediately.

The player must be `https://developer.android.com/reference/androidx/media3/transformer/CompositionPlayer.Builder#experimentalSetEnableReplayableCache(boolean)`, unless using `https://developer.android.com/reference/androidx/media3/transformer/CompositionPlayer.Builder#setFrameProcessorFactory(androidx.media3.common.video.FrameProcessor.Factory)` to apply effects.

### getClock

```
public Clock getClock()
```

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

This method can be called from any thread.

### getPlaybackLooper

```
public Looper getPlaybackLooper()
```

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

This method may be called from any thread.

### isScrubbingModeEnabled

```
public boolean isScrubbingModeEnabled()
```

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

See `https://developer.android.com/reference/androidx/media3/transformer/CompositionPlayer#setScrubbingModeEnabled(boolean)`.

### removeAnalyticsListener

```
public void removeAnalyticsListener(AnalyticsListener listener)
```

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

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

### setComposition

```
public void setComposition(Composition composition)
```

Sets the `https://developer.android.com/reference/androidx/media3/transformer/Composition` to play from the beginning.

Calling this method is equivalent to calling `https://developer.android.com/reference/androidx/media3/transformer/CompositionPlayer#setComposition(androidx.media3.transformer.Composition,long)` with a start position at zero.

| Parameters |
|---|---|
| `https://developer.android.com/reference/androidx/media3/transformer/Composition composition` | The `https://developer.android.com/reference/androidx/media3/transformer/Composition` to play. Every `https://developer.android.com/reference/androidx/media3/transformer/EditedMediaItem` in the `https://developer.android.com/reference/androidx/media3/transformer/Composition` must have its `https://developer.android.com/reference/androidx/media3/transformer/EditedMediaItem#durationUs()` set. |

### setComposition

```
public void setComposition(
    Composition composition,
    @IntRange(from = 0) long startPositionMs
)
```

Sets the `https://developer.android.com/reference/androidx/media3/transformer/Composition` to play.

| Parameters |
|---|---|
| `https://developer.android.com/reference/androidx/media3/transformer/Composition composition` | The `https://developer.android.com/reference/androidx/media3/transformer/Composition` to play. Every `https://developer.android.com/reference/androidx/media3/transformer/EditedMediaItem` in the `https://developer.android.com/reference/androidx/media3/transformer/Composition` must have its `https://developer.android.com/reference/androidx/media3/transformer/EditedMediaItem#durationUs()` set. |
| `@https://developer.android.com/reference/androidx/annotation/IntRange(from = 0) long startPositionMs` | The position at which playback should start, in milliseconds. |

### setScrubbingModeEnabled

```
public void setScrubbingModeEnabled(boolean scrubbingModeEnabled)
```

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

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

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

| Parameters |
|---|---|
| `boolean scrubbingModeEnabled` | Whether scrubbing mode should be enabled. |

### setVideoFrameMetadataListener

```
public void setVideoFrameMetadataListener(
    VideoFrameMetadataListener videoFrameMetadataListener
)
```

Sets the `https://developer.android.com/reference/androidx/media3/exoplayer/video/VideoFrameMetadataListener`.

### setVideoSurface

```
public void setVideoSurface(Surface surface, Size videoOutputSize)
```

Sets the `https://developer.android.com/reference/android/view/Surface.html` and `https://developer.android.com/reference/androidx/media3/common/util/Size` to render to.

## Protected methods

### getState

```
protected SimpleBasePlayer.State getState()
```

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

The `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer.State` should include all `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer.State.Builder#setAvailableCommands(androidx.media3.common.Player.Commands)` indicating which player methods are allowed to be called.

Note that this method won't be called while asynchronous handling of player methods is in progress. This means that the implementation doesn't need to handle state changes caused by these asynchronous operations until they are done and can return the currently known state directly. The placeholder state used while these asynchronous operations are in progress can be customized by overriding `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer#getPlaceholderState(androidx.media3.common.SimpleBasePlayer.State)` if required.

### handleClearVideoOutput

```
protected ListenableFuture<@NonNull ?> handleClearVideoOutput(@Nullable Object videoOutput)
```

Handles calls to clear the video output.

Will only be called if `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_SET_VIDEO_SURFACE()` is available.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/Object.html videoOutput` | The video output to clear. If null any current output should be cleared. If non-null, the output should only be cleared if it matches the provided argument. This is either a `https://developer.android.com/reference/android/view/Surface.html`, `https://developer.android.com/reference/android/view/SurfaceHolder.html`, `https://developer.android.com/reference/android/view/TextureView.html` or `https://developer.android.com/reference/android/view/SurfaceView.html`. |

| Returns |
|---|---|
| `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<@https://developer.android.com/reference/androidx/annotation/NonNull ?>` | A `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html` indicating the completion of all immediate `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer.State` changes caused by this call. |

### handlePrepare

```
protected ListenableFuture<@NonNull ?> handlePrepare()
```

Handles calls to `https://developer.android.com/reference/androidx/media3/common/Player#prepare()`.

Will only be called if `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_PREPARE()` is available.

| Returns |
|---|---|
| `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<@https://developer.android.com/reference/androidx/annotation/NonNull ?>` | A `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html` indicating the completion of all immediate `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer.State` changes caused by this call. |

### handleRelease

```
protected ListenableFuture<@NonNull ?> handleRelease()
```

Handles calls to `https://developer.android.com/reference/androidx/media3/common/Player#release()`.

Will only be called if `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_RELEASE()` is available.

| Returns |
|---|---|
| `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<@https://developer.android.com/reference/androidx/annotation/NonNull ?>` | A `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html` indicating the completion of all immediate `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer.State` changes caused by this call. |

### handleSeek

```
protected ListenableFuture<@NonNull ?> handleSeek(
    int mediaItemIndex,
    long positionMs,
    @Player.Command int seekCommand
)
```

Handles calls to `https://developer.android.com/reference/androidx/media3/common/Player#seekTo(long)` and other seek operations (for example, `https://developer.android.com/reference/androidx/media3/common/Player#seekToNext()`).

Will only be called if the appropriate `https://developer.android.com/reference/androidx/media3/common/Player.Command`, for example `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_SEEK_TO_MEDIA_ITEM()` or `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_SEEK_TO_NEXT()`, is available.

| Parameters |
|---|---|
| `int mediaItemIndex` | The media item index to seek to. If the original seek operation did not directly specify an index, this is the most likely implied index based on the available player state. If the implied action is to do nothing, this will be `https://developer.android.com/reference/androidx/media3/common/C#INDEX_UNSET()`. |
| `long positionMs` | The position in milliseconds to start playback from, or `https://developer.android.com/reference/androidx/media3/common/C#TIME_UNSET()` to start at the default position in the media item. If the original seek operation did not directly specify a position, this is the most likely implied position based on the available player state. |
| `@https://developer.android.com/reference/androidx/media3/common/Player.Command int seekCommand` | The `https://developer.android.com/reference/androidx/media3/common/Player.Command` used to trigger the seek. |

| Returns |
|---|---|
| `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<@https://developer.android.com/reference/androidx/annotation/NonNull ?>` | A `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html` indicating the completion of all immediate `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer.State` changes caused by this call. |

### handleSetAudioAttributes

```
protected ListenableFuture<@NonNull ?> handleSetAudioAttributes(
    AudioAttributes audioAttributes,
    boolean handleAudioFocus
)
```

Handles calls to set the audio attributes.

Will only be called if `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_SET_AUDIO_ATTRIBUTES()` is available.

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

| Returns |
|---|---|
| `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<@https://developer.android.com/reference/androidx/annotation/NonNull ?>` | A `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html` indicating the completion of all immediate `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer.State` changes caused by this call. |

### handleSetPlayWhenReady

```
protected ListenableFuture<@NonNull ?> handleSetPlayWhenReady(boolean playWhenReady)
```

Handles calls to `https://developer.android.com/reference/androidx/media3/common/Player#setPlayWhenReady(boolean)`, `https://developer.android.com/reference/androidx/media3/common/Player#play()` and `https://developer.android.com/reference/androidx/media3/common/Player#pause()`.

Will only be called if `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_PLAY_PAUSE()` is available.

| Parameters |
|---|---|
| `boolean playWhenReady` | The requested `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer.State#playWhenReady()` |

| Returns |
|---|---|
| `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<@https://developer.android.com/reference/androidx/annotation/NonNull ?>` | A `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html` indicating the completion of all immediate `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer.State` changes caused by this call. |

### handleSetRepeatMode

```
protected ListenableFuture<@NonNull ?> handleSetRepeatMode(@Player.RepeatMode int repeatMode)
```

Handles calls to `https://developer.android.com/reference/androidx/media3/common/Player#setRepeatMode(int)`.

Will only be called if `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_SET_REPEAT_MODE()` is available.

| Parameters |
|---|---|
| `@https://developer.android.com/reference/androidx/media3/common/Player.RepeatMode int repeatMode` | The requested `https://developer.android.com/reference/androidx/media3/common/Player.RepeatMode`. |

| Returns |
|---|---|
| `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<@https://developer.android.com/reference/androidx/annotation/NonNull ?>` | A `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html` indicating the completion of all immediate `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer.State` changes caused by this call. |

### handleSetVideoOutput

```
protected ListenableFuture<@NonNull ?> handleSetVideoOutput(Object videoOutput)
```

Handles calls to set the video output.

Will only be called if `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_SET_VIDEO_SURFACE()` is available.

| Parameters |
|---|---|
| `https://developer.android.com/reference/java/lang/Object.html videoOutput` | The requested video output. This is either a `https://developer.android.com/reference/android/view/Surface.html`, `https://developer.android.com/reference/android/view/SurfaceHolder.html`, `https://developer.android.com/reference/android/view/TextureView.html` or `https://developer.android.com/reference/android/view/SurfaceView.html`. |

| Returns |
|---|---|
| `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<@https://developer.android.com/reference/androidx/annotation/NonNull ?>` | A `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html` indicating the completion of all immediate `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer.State` changes caused by this call. |

### handleSetVolume

```
protected ListenableFuture<@NonNull ?> handleSetVolume(
    float volume,
    @C.VolumeOperationType int volumeOperationType
)
```

Handles calls to `https://developer.android.com/reference/androidx/media3/common/Player#setVolume(float)`.

Will only be called if `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_SET_VOLUME()` is available.

| Parameters |
|---|---|
| `float volume` | The requested audio volume, with 0 being silence and 1 being unity gain (signal unchanged). |
| `@https://developer.android.com/reference/androidx/media3/common/C.VolumeOperationType int volumeOperationType` | The `https://developer.android.com/reference/androidx/media3/common/C.VolumeOperationType` that corresponds to the original command for changing of the volume. |

| Returns |
|---|---|
| `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<@https://developer.android.com/reference/androidx/annotation/NonNull ?>` | A `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html` indicating the completion of all immediate `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer.State` changes caused by this call. |

### handleStop

```
protected ListenableFuture<@NonNull ?> handleStop()
```

Handles calls to `https://developer.android.com/reference/androidx/media3/common/Player#stop()`.

Will only be called if `https://developer.android.com/reference/androidx/media3/common/Player#COMMAND_STOP()` is available.

| Returns |
|---|---|
| `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html<@https://developer.android.com/reference/androidx/annotation/NonNull ?>` | A `https://guava.dev/releases/snapshot-android/api/docs/com/google/common/util/concurrent/ListenableFuture.html` indicating the completion of all immediate `https://developer.android.com/reference/androidx/media3/common/SimpleBasePlayer.State` changes caused by this call. |