Video

data class Video(val isPlaying: MutableState<Boolean>, val aspectRatio: SkapaAspectRatio = SkapaAspectRatio.Ratio16by9, val contentDescription: String?, val playButtonParams: VideoPlayerButtonParams.PlayButtonParams, val transcriptionParams: VideoPlayerButtonParams.TranscriptionParams? = null, val player: @Composable () -> Unit) : MediaContainer

The Video container for the Card.

Constructors

Link copied to clipboard
constructor(isPlaying: MutableState<Boolean>, aspectRatio: SkapaAspectRatio = SkapaAspectRatio.Ratio16by9, contentDescription: String?, playButtonParams: VideoPlayerButtonParams.PlayButtonParams, transcriptionParams: VideoPlayerButtonParams.TranscriptionParams? = null, player: @Composable () -> 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 container. Of type String.

Link copied to clipboard

The state of the video player, whether it is playing or not. Of type MutableState of Boolean.

Link copied to clipboard

Represents the parameters of the play / pause button.

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

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

Link copied to clipboard

Represents the parameters of the transcription button.