# rememberErrorState

## Functions summary

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/media3/ui/compose/state/ErrorState` | `@https://developer.android.com/reference/kotlin/androidx/media3/common/util/UnstableApi @https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/media3/ui/compose/state/rememberErrorState.composable#rememberErrorState(androidx.media3.common.Player)(player: https://developer.android.com/reference/kotlin/androidx/media3/common/Player?)` Remembers the value of `https://developer.android.com/reference/kotlin/androidx/media3/ui/compose/state/ErrorState` created based on the passed `https://developer.android.com/reference/kotlin/androidx/media3/common/Player` and launches a coroutine to listen to `https://developer.android.com/reference/kotlin/androidx/media3/common/Player` error changes. |

## Functions

### rememberErrorState

Artifact: [androidx.media3:media3-ui-compose](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/ui/compose/state/ErrorState.kt+function:rememberErrorState)

```
@UnstableApi
@Composable
fun rememberErrorState(player: Player?): ErrorState
```

Remembers the value of `https://developer.android.com/reference/kotlin/androidx/media3/ui/compose/state/ErrorState` created based on the passed `https://developer.android.com/reference/kotlin/androidx/media3/common/Player` and launches a coroutine to listen to `https://developer.android.com/reference/kotlin/androidx/media3/common/Player` error changes.