Subtitle Display
fun SubtitleDisplay(subtitles: SubtitleCueList, currentTime: Duration, modifier: Modifier = Modifier, textStyle: TextStyle = TextStyle(
color = Color.White,
fontSize = 18.sp,
fontWeight = FontWeight.Normal,
textAlign = TextAlign.Center,
), backgroundColor: Color = Color.Black.copy(alpha = 0.5f))
A composable function that displays subtitles.
Parameters
subtitles
The subtitle cue list to display
current Time
The current playback time
modifier
The modifier to be applied to the layout
text Style
The text style to be applied to the subtitle text
background Color
The background color of the subtitle box