# StuckPlayerDetector.Callback

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

*** ** * ** ***


```
public interface StuckPlayerDetector.Callback
```

<br />

*** ** * ** ***

Callback notified when the player appears stuck.

## Summary

| ### Public methods |
|---|---|
| `abstract void` | `https://developer.android.com/reference/androidx/media3/common/util/StuckPlayerDetector.Callback#onStuckPlayerDetected(androidx.media3.common.util.StuckPlayerException)(https://developer.android.com/reference/androidx/media3/common/util/StuckPlayerException exception)` Called when the player appears to be stuck. |

## Public methods

### onStuckPlayerDetected

```
abstract void onStuckPlayerDetected(StuckPlayerException exception)
```

Called when the player appears to be stuck.

| Parameters |
|---|---|
| `https://developer.android.com/reference/androidx/media3/common/util/StuckPlayerException exception` | The `https://developer.android.com/reference/androidx/media3/common/util/StuckPlayerException`. |