Video
data class Video(val aspectRatio: SkapaAspectRatio = SkapaAspectRatio.Ratio1by1, val contentDescription: String?, val playButtonParams: VideoPlayerButtonParams.PlayButtonParams, val fullScreenParams: VideoPlayerButtonParams.FullScreenParams? = null, val transcriptionParams: VideoPlayerButtonParams.TranscriptionParams? = null, val onBackgroundPress: () -> Unit? = null, val onBackgroundClick: () -> Unit? = null, val player: @Composable () -> Unit) : CompactMediaContainer
Video content for the media container.
Constructors
Link copied to clipboard
constructor(aspectRatio: SkapaAspectRatio = SkapaAspectRatio.Ratio1by1, contentDescription: String?, playButtonParams: VideoPlayerButtonParams.PlayButtonParams, fullScreenParams: VideoPlayerButtonParams.FullScreenParams? = null, transcriptionParams: VideoPlayerButtonParams.TranscriptionParams? = null, onBackgroundPress: () -> Unit? = null, onBackgroundClick: () -> Unit? = null, player: @Composable () -> Unit)
Properties
Link copied to clipboard
The aspect ratio of the video player.
Link copied to clipboard
The content description for the video container. Of type String.
Link copied to clipboard
Deprecated: full screen button is deprecated for Cards and will be removed in future versions.
Link copied to clipboard
Lambda to be invoked when the background is clicked. This should be used to toggle play / pause state.
Link copied to clipboard
Deprecated: use onBackgroundClick instead. Lambda to be invoked when the background is pressed.
Link copied to clipboard
Represents the parameters of the play / pause button.
Link copied to clipboard
The composable lambda that will be used to draw the video player.
Link copied to clipboard
Represents the parameters of the transcription button.