fun interface A2uiVideoRenderer


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 A2uiBasicCatalogV1.Video.

Summary

Public functions

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

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: String

The URL of the video to load and play.

modifier: Modifier

The modifier to be applied to the layout.

onError: (Throwable?) -> Unit

The callback to be invoked when the video fails to load or play.