Video

data class Video(val player: @Composable () -> Unit, val aspectRatio: SkapaAspectRatio = SkapaAspectRatio.Ratio16by9, val contentDescription: String?, val onClick: () -> Unit) : MediaContainer

The Video container for the Card.

Constructors

Link copied to clipboard
constructor(player: @Composable () -> Unit, aspectRatio: SkapaAspectRatio = SkapaAspectRatio.Ratio16by9, contentDescription: String?, onClick: () -> Unit)

Properties

Link copied to clipboard

The aspect ratio of the video. Of type SkapaAspectRatio.

Link copied to clipboard

The content description for the video. Of type String.

Link copied to clipboard
val onClick: () -> Unit

The lambda to be invoked when the video is clicked.

Link copied to clipboard
val player: @Composable () -> Unit

The player to be used for the video. Of type Composable. The player should be a composable function.