PlayerSubtitle

fun PlayerSubtitle(player: Player?, modifier: Modifier = Modifier, captionStyle: CaptionStyleCompat? = null, subtitleTextSize: SubtitleTextSize? = null)(source)

A Composable function that displays an ExoPlayer SubtitleView. It observes the active cues from the provided player and displays them in a SubtitleView.

Parameters

player

The Player instance to retrieve subtitle cues from.

modifier

The Modifier to apply to this layout.

captionStyle

Optional CaptionStyleCompat to override the user's preferred caption style.

subtitleTextSize

Optional SubtitleTextSize to override the user's preferred subtitle text size.