# A2uiVideoRenderer

Artifact: [androidx.compose.material3:material3-a2ui](https://developer.android.com/jetpack/androidx/releases/compose-material3) [View Source](https://cs.android.com/search?q=file:androidx/compose/material3/a2ui/catalog/MaterialA2uiBasicCatalogV1Video.kt+class:androidx.compose.material3.a2ui.catalog.A2uiVideoRenderer) Added in [1.0.0-alpha02](https://developer.android.com/jetpack/androidx/releases/compose-material3#1.0.0-alpha02)


```
fun interface A2uiVideoRenderer
```

<br />

*** ** * ** ***

An abstraction of an asynchronous video player which should be implemented using the application's media loading library (such as Media3/ExoPlayer), used for rendering video playback for `https://developer.android.com/reference/kotlin/androidx/a2ui/compose/ui/catalog/A2uiBasicCatalogV1.Video`.

## Summary

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/compose/material3/a2ui/catalog/A2uiVideoRenderer#Video(kotlin.String,androidx.compose.ui.Modifier,kotlin.Function1)(url: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html, modifier: https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier, onError: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html?) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)` Displays a video player from a URL. |

## Public functions

### Video

```
@Composable
fun Video(url: String, modifier: Modifier, onError: (Throwable?) -> Unit): Unit
```

Displays a video player from a URL.

| Parameters |
|---|---|
| `url: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | The URL of the video to load and play. |
| `modifier: https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier` | The modifier to be applied to the layout. |
| `onError: (https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-throwable/index.html?) -> https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | The callback to be invoked when the video fails to load or play. |