# MediaControllerGlue

Artifact: [androidx.leanback:leanback](https://developer.android.com/jetpack/androidx/releases/leanback) [View Source](https://cs.android.com/search?q=file:androidx/leanback/media/MediaControllerGlue.java+class:androidx.leanback.media.MediaControllerGlue) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

*** ** * ** ***


```
public abstract class MediaControllerGlue extends PlaybackControlGlue
```

<br />

|---|---|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object.html) ||||
| ↳ | [androidx.leanback.media.PlaybackGlue](https://developer.android.com/reference/androidx/leanback/media/PlaybackGlue) |||
|   | ↳ | [androidx.leanback.media.PlaybackControlGlue](https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue) ||
|   |   | ↳ | [androidx.leanback.media.MediaControllerGlue](https://developer.android.com/reference/androidx/leanback/media/MediaControllerGlue) |

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/leanback/media/MediaControllerAdapter` with `https://developer.android.com/reference/androidx/leanback/media/PlaybackTransportControlGlue` or `https://developer.android.com/reference/androidx/leanback/media/PlaybackBannerControlGlue`.

A helper class for implementing a glue layer for `https://developer.android.com/reference/android/support/v4/media/session/MediaControllerCompat`.

## Summary

| ### Public constructors |
|---|
| `[MediaControllerGlue](https://developer.android.com/reference/androidx/leanback/media/MediaControllerGlue#MediaControllerGlue(android.content.Context,int[],int[]))( https://developer.android.com/reference/android/content/Context.html context, int[] fastForwardSpeeds, int[] rewindSpeeds )` **This method is deprecated.** Deprecated in Java |

| ### Public methods |
|---|---|
| `void` | `[attachToMediaController](https://developer.android.com/reference/androidx/leanback/media/MediaControllerGlue#attachToMediaController(android.support.v4.media.session.MediaControllerCompat))(https://developer.android.com/reference/android/support/v4/media/session/MediaControllerCompat mediaController)` **This method is deprecated.** Deprecated in Java |
| `void` | `[detach](https://developer.android.com/reference/androidx/leanback/media/MediaControllerGlue#detach())()` **This method is deprecated.** Deprecated in Java |
| `int` | `[getCurrentPosition](https://developer.android.com/reference/androidx/leanback/media/MediaControllerGlue#getCurrentPosition())()` **This method is deprecated.** Deprecated in Java |
| `int` | `[getCurrentSpeedId](https://developer.android.com/reference/androidx/leanback/media/MediaControllerGlue#getCurrentSpeedId())()` **This method is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/android/graphics/drawable/Drawable.html` | `[getMediaArt](https://developer.android.com/reference/androidx/leanback/media/MediaControllerGlue#getMediaArt())()` **This method is deprecated.** Deprecated in Java |
| `final https://developer.android.com/reference/android/support/v4/media/session/MediaControllerCompat` | `[getMediaController](https://developer.android.com/reference/androidx/leanback/media/MediaControllerGlue#getMediaController())()` **This method is deprecated.** Deprecated in Java |
| `int` | `[getMediaDuration](https://developer.android.com/reference/androidx/leanback/media/MediaControllerGlue#getMediaDuration())()` **This method is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/java/lang/CharSequence.html` | `[getMediaSubtitle](https://developer.android.com/reference/androidx/leanback/media/MediaControllerGlue#getMediaSubtitle())()` **This method is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/java/lang/CharSequence.html` | `[getMediaTitle](https://developer.android.com/reference/androidx/leanback/media/MediaControllerGlue#getMediaTitle())()` **This method is deprecated.** Deprecated in Java |
| `long` | `[getSupportedActions](https://developer.android.com/reference/androidx/leanback/media/MediaControllerGlue#getSupportedActions())()` **This method is deprecated.** Deprecated in Java |
| `boolean` | `[hasValidMedia](https://developer.android.com/reference/androidx/leanback/media/MediaControllerGlue#hasValidMedia())()` **This method is deprecated.** Deprecated in Java |
| `boolean` | `[isMediaPlaying](https://developer.android.com/reference/androidx/leanback/media/MediaControllerGlue#isMediaPlaying())()` **This method is deprecated.** Deprecated in Java |
| `void` | `[next](https://developer.android.com/reference/androidx/leanback/media/MediaControllerGlue#next())()` **This method is deprecated.** Deprecated in Java |
| `void` | `[pause](https://developer.android.com/reference/androidx/leanback/media/MediaControllerGlue#pause())()` **This method is deprecated.** Deprecated in Java |
| `void` | `[play](https://developer.android.com/reference/androidx/leanback/media/MediaControllerGlue#play(int))(int speed)` **This method is deprecated.** Deprecated in Java |
| `void` | `[previous](https://developer.android.com/reference/androidx/leanback/media/MediaControllerGlue#previous())()` **This method is deprecated.** Deprecated in Java |

### Inherited Constants

From [androidx.leanback.media.PlaybackControlGlue](https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue) `static final int` `https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#ACTION_CUSTOM_LEFT_FIRST() = 1`

**This field is deprecated.** Deprecated in Java
`static final int` `https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#ACTION_CUSTOM_RIGHT_FIRST() = 4096`

**This field is deprecated.** Deprecated in Java
`static final int` `https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#ACTION_FAST_FORWARD() = 128`

**This field is deprecated.** Deprecated in Java
`static final int` `https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#ACTION_PLAY_PAUSE() = 64`

**This field is deprecated.** Deprecated in Java
`static final int` `https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#ACTION_REWIND() = 32`

**This field is deprecated.** Deprecated in Java
`static final int` `https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#ACTION_SKIP_TO_NEXT() = 256`

**This field is deprecated.** Deprecated in Java
`static final int` `https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#ACTION_SKIP_TO_PREVIOUS() = 16`

**This field is deprecated.** Deprecated in Java
`static final int` `https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#PLAYBACK_SPEED_FAST_L0() = 10`

**This field is deprecated.** Deprecated in Java
`static final int` `https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#PLAYBACK_SPEED_FAST_L1() = 11`

**This field is deprecated.** Deprecated in Java
`static final int` `https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#PLAYBACK_SPEED_FAST_L2() = 12`

**This field is deprecated.** Deprecated in Java
`static final int` `https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#PLAYBACK_SPEED_FAST_L3() = 13`

**This field is deprecated.** Deprecated in Java
`static final int` `https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#PLAYBACK_SPEED_FAST_L4() = 14`

**This field is deprecated.** Deprecated in Java
`static final int` `https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#PLAYBACK_SPEED_INVALID() = -1`

**This field is deprecated.** Deprecated in Java
`static final int` `https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#PLAYBACK_SPEED_NORMAL() = 1`

**This field is deprecated.** Deprecated in Java
`static final int` `https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#PLAYBACK_SPEED_PAUSED() = 0`

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

### Inherited methods

From [androidx.leanback.widget.OnActionClickedListener](https://developer.android.com/reference/androidx/leanback/widget/OnActionClickedListener) `abstract void` `[onActionClicked](https://developer.android.com/reference/androidx/leanback/widget/OnActionClickedListener#onActionClicked(androidx.leanback.widget.Action))(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/leanback/widget/Action action)`

**This method is deprecated.** Deprecated in Java
From [androidx.leanback.media.PlaybackControlGlue](https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue) `void` `[enableProgressUpdating](https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#enableProgressUpdating(boolean))(boolean enable)`

**This method is deprecated.** Deprecated in Java
`https://developer.android.com/reference/androidx/leanback/widget/PlaybackControlsRow` `[getControlsRow](https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#getControlsRow())()`

**This method is deprecated.** Deprecated in Java
`https://developer.android.com/reference/androidx/leanback/widget/PlaybackControlsRowPresenter` `[getControlsRowPresenter](https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#getControlsRowPresenter())()`

**This method is deprecated.**

PlaybackControlGlue supports any PlaybackRowPresenter, use `https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#getPlaybackRowPresenter()`.

<br />

`int[]` `[getFastForwardSpeeds](https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#getFastForwardSpeeds())()`

**This method is deprecated.** Deprecated in Java
`https://developer.android.com/reference/androidx/leanback/widget/PlaybackRowPresenter` `[getPlaybackRowPresenter](https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#getPlaybackRowPresenter())()`

**This method is deprecated.** Deprecated in Java
`int[]` `[getRewindSpeeds](https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#getRewindSpeeds())()`

**This method is deprecated.** Deprecated in Java
`int` `[getUpdatePeriod](https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#getUpdatePeriod())()`

**This method is deprecated.** Deprecated in Java
`boolean` `[isFadingEnabled](https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#isFadingEnabled())()`

**This method is deprecated.** Deprecated in Java
`boolean` `[isPlaying](https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#isPlaying())()`

**This method is deprecated.** Deprecated in Java
`void` `[onActionClicked](https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#onActionClicked(androidx.leanback.widget.Action))(https://developer.android.com/reference/androidx/leanback/widget/Action action)`

**This method is deprecated.** Deprecated in Java
`void` `[onAttachedToHost](https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#onAttachedToHost(androidx.leanback.media.PlaybackGlueHost))(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/leanback/media/PlaybackGlueHost host)`

**This method is deprecated.** Deprecated in Java
`void` `[onCreateControlsRowAndPresenter](https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#onCreateControlsRowAndPresenter())()`

**This method is deprecated.** Deprecated in Java
`void` `[onCreatePrimaryActions](https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#onCreatePrimaryActions(androidx.leanback.widget.SparseArrayObjectAdapter))(https://developer.android.com/reference/androidx/leanback/widget/SparseArrayObjectAdapter primaryActionsAdapter)`

**This method is deprecated.** Deprecated in Java
`void` `[onCreateSecondaryActions](https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#onCreateSecondaryActions(androidx.leanback.widget.ArrayObjectAdapter))(https://developer.android.com/reference/androidx/leanback/widget/ArrayObjectAdapter secondaryActionsAdapter)`

**This method is deprecated.** Deprecated in Java
`void` `[onDetachedFromHost](https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#onDetachedFromHost())()`

**This method is deprecated.** Deprecated in Java
`void` `[onHostStart](https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#onHostStart())()`

**This method is deprecated.** Deprecated in Java
`void` `[onHostStop](https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#onHostStop())()`

**This method is deprecated.** Deprecated in Java
`boolean` `[onKey](https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#onKey(android.view.View,int,android.view.KeyEvent))(https://developer.android.com/reference/android/view/View.html v, int keyCode, https://developer.android.com/reference/android/view/KeyEvent.html event)`

**This method is deprecated.** Deprecated in Java
`void` `[onMetadataChanged](https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#onMetadataChanged())()`

**This method is deprecated.** Deprecated in Java
`void` `[onStateChanged](https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#onStateChanged())()`

**This method is deprecated.** Deprecated in Java
`final void` `[play](https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#play())()`

**This method is deprecated.** Deprecated in Java
`void` `[setControlsRow](https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#setControlsRow(androidx.leanback.widget.PlaybackControlsRow))(https://developer.android.com/reference/androidx/leanback/widget/PlaybackControlsRow controlsRow)`

**This method is deprecated.** Deprecated in Java
`void` `[setControlsRowPresenter](https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#setControlsRowPresenter(androidx.leanback.widget.PlaybackControlsRowPresenter))(https://developer.android.com/reference/androidx/leanback/widget/PlaybackControlsRowPresenter presenter)`

**This method is deprecated.**

PlaybackControlGlue supports any PlaybackRowPresenter, use `https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#setPlaybackRowPresenter(androidx.leanback.widget.PlaybackRowPresenter)`.

<br />

`void` `[setFadingEnabled](https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#setFadingEnabled(boolean))(boolean enable)`

**This method is deprecated.** Deprecated in Java
`void` `[setPlaybackRowPresenter](https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#setPlaybackRowPresenter(androidx.leanback.widget.PlaybackRowPresenter))(https://developer.android.com/reference/androidx/leanback/widget/PlaybackRowPresenter presenter)`

**This method is deprecated.** Deprecated in Java
`void` `[updateProgress](https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#updateProgress())()`

**This method is deprecated.** Deprecated in Java
From [androidx.leanback.media.PlaybackGlue](https://developer.android.com/reference/androidx/leanback/media/PlaybackGlue) `void` `[addPlayerCallback](https://developer.android.com/reference/androidx/leanback/media/PlaybackGlue#addPlayerCallback(androidx.leanback.media.PlaybackGlue.PlayerCallback))(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/leanback/media/PlaybackGlue.PlayerCallback playerCallback)`

**This method is deprecated.** Deprecated in Java
`@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/android/content/Context.html` `[getContext](https://developer.android.com/reference/androidx/leanback/media/PlaybackGlue#getContext())()`

**This method is deprecated.** Deprecated in Java
`@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/leanback/media/PlaybackGlueHost` `[getHost](https://developer.android.com/reference/androidx/leanback/media/PlaybackGlue#getHost())()`

**This method is deprecated.** Deprecated in Java
`@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/java/util/List.html<https://developer.android.com/reference/androidx/leanback/media/PlaybackGlue.PlayerCallback>` `[getPlayerCallbacks](https://developer.android.com/reference/androidx/leanback/media/PlaybackGlue#getPlayerCallbacks())()`

**This method is deprecated.** Deprecated in Java
`boolean` `[isPrepared](https://developer.android.com/reference/androidx/leanback/media/PlaybackGlue#isPrepared())()`

**This method is deprecated.** Deprecated in Java
`void` `[onHostPause](https://developer.android.com/reference/androidx/leanback/media/PlaybackGlue#onHostPause())()`

**This method is deprecated.** Deprecated in Java
`void` `[onHostResume](https://developer.android.com/reference/androidx/leanback/media/PlaybackGlue#onHostResume())()`

**This method is deprecated.** Deprecated in Java
`void` `[playWhenPrepared](https://developer.android.com/reference/androidx/leanback/media/PlaybackGlue#playWhenPrepared())()`

**This method is deprecated.** Deprecated in Java
`void` `[removePlayerCallback](https://developer.android.com/reference/androidx/leanback/media/PlaybackGlue#removePlayerCallback(androidx.leanback.media.PlaybackGlue.PlayerCallback))(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/leanback/media/PlaybackGlue.PlayerCallback callback)`

**This method is deprecated.** Deprecated in Java
`final void` `[setHost](https://developer.android.com/reference/androidx/leanback/media/PlaybackGlue#setHost(androidx.leanback.media.PlaybackGlueHost))(@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/leanback/media/PlaybackGlueHost host)`

**This method is deprecated.** Deprecated in Java
From [android.view.View.OnKeyListener](https://developer.android.com/reference/android/view/View.OnKeyListener.html) `abstract boolean` `[onKey](https://developer.android.com/reference/android/view/View.OnKeyListener.html#onKey(android.view.View, int, android.view.KeyEvent))(https://developer.android.com/reference/android/view/View.html p, int p1, https://developer.android.com/reference/android/view/KeyEvent.html p2)`

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

## Public constructors

### MediaControllerGlue

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

```
public [MediaControllerGlue](https://developer.android.com/reference/androidx/leanback/media/MediaControllerGlue#MediaControllerGlue(android.content.Context,int[],int[]))(
    Context context,
    int[] fastForwardSpeeds,
    int[] rewindSpeeds
)
```

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

Constructor for the glue.

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/content/Context.html context` |   |
| `int[] fastForwardSpeeds` | Array of seek speeds for fast forward. |
| `int[] rewindSpeeds` | Array of seek speeds for rewind. |

## Public methods

### attachToMediaController

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

```
public void [attachToMediaController](https://developer.android.com/reference/androidx/leanback/media/MediaControllerGlue#attachToMediaController(android.support.v4.media.session.MediaControllerCompat))(MediaControllerCompat mediaController)
```

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

Attaches to the given media controller.

### detach

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

```
public void [detach](https://developer.android.com/reference/androidx/leanback/media/MediaControllerGlue#detach())()
```

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

Detaches from the media controller. Must be called when the object is no longer needed.

### getCurrentPosition

```
public int [getCurrentPosition](https://developer.android.com/reference/androidx/leanback/media/MediaControllerGlue#getCurrentPosition())()
```

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

Returns the current position of the media item in milliseconds.

### getCurrentSpeedId

```
public int [getCurrentSpeedId](https://developer.android.com/reference/androidx/leanback/media/MediaControllerGlue#getCurrentSpeedId())()
```

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

Returns the current playback speed. When playing normally, `https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#PLAYBACK_SPEED_NORMAL()` should be returned.

### getMediaArt

```
public Drawable [getMediaArt](https://developer.android.com/reference/androidx/leanback/media/MediaControllerGlue#getMediaArt())()
```

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

Returns a bitmap of the art for the media item.

### getMediaController

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0) Deprecated in [1.1.0](https://developer.android.com/jetpack/androidx/releases/leanback#1.1.0)

```
public final MediaControllerCompat [getMediaController](https://developer.android.com/reference/androidx/leanback/media/MediaControllerGlue#getMediaController())()
```

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

Returns the media controller currently attached.

### getMediaDuration

```
public int [getMediaDuration](https://developer.android.com/reference/androidx/leanback/media/MediaControllerGlue#getMediaDuration())()
```

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

Returns the duration of the media item in milliseconds.

### getMediaSubtitle

```
public CharSequence [getMediaSubtitle](https://developer.android.com/reference/androidx/leanback/media/MediaControllerGlue#getMediaSubtitle())()
```

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

Returns the subtitle of the media item.

### getMediaTitle

```
public CharSequence [getMediaTitle](https://developer.android.com/reference/androidx/leanback/media/MediaControllerGlue#getMediaTitle())()
```

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

Returns the title of the media item.

### getSupportedActions

```
public long [getSupportedActions](https://developer.android.com/reference/androidx/leanback/media/MediaControllerGlue#getSupportedActions())()
```

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

Returns a bitmask of actions supported by the media player.

### hasValidMedia

```
public boolean [hasValidMedia](https://developer.android.com/reference/androidx/leanback/media/MediaControllerGlue#hasValidMedia())()
```

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

Returns true if there is a valid media item.

### isMediaPlaying

```
public boolean [isMediaPlaying](https://developer.android.com/reference/androidx/leanback/media/MediaControllerGlue#isMediaPlaying())()
```

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

Returns true if media is currently playing.

### next

```
public void [next](https://developer.android.com/reference/androidx/leanback/media/MediaControllerGlue#next())()
```

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

Goes to the next media item. This method is optional.

### pause

```
public void [pause](https://developer.android.com/reference/androidx/leanback/media/MediaControllerGlue#pause())()
```

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

Pauses the media player.

### play

```
public void [play](https://developer.android.com/reference/androidx/leanback/media/MediaControllerGlue#play(int))(int speed)
```

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

Start playback at the given speed.

| Parameters |
|---|---|
| `int speed` | The desired playback speed. For normal playback this will be `https://developer.android.com/reference/androidx/leanback/media/PlaybackControlGlue#PLAYBACK_SPEED_NORMAL()`; higher positive values for fast forward, and negative values for rewind. |

### previous

```
public void [previous](https://developer.android.com/reference/androidx/leanback/media/MediaControllerGlue#previous())()
```

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

Goes to the previous media item. This method is optional.