Video

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

Video content for the media container.

Constructors

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

Properties

Link copied to clipboard

The aspect ratio of the video player.

Link copied to clipboard

The content description for the video player.

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

The lambda to be invoked when the video player is clicked.

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

The composable that will be used to draw the video player.