ExoPlayerSubtitleView
fun ExoPlayerSubtitleView(player: Player, modifier: Modifier = Modifier, captionStyle: CaptionStyleCompat? = null, subtitleTextSize: SubtitleTextSize? = null)
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.
fun ExoPlayerSubtitleView(modifier: Modifier = Modifier, cues: List<Cue>? = null, captionStyle: CaptionStyleCompat? = null, subtitleTextSize: SubtitleTextSize? = null)
A Composable function that displays an ExoPlayer SubtitleView.
Parameters
modifier
The Modifier to apply to this layout.
cues
The list of cues to be displayed.
captionStyle
Optional CaptionStyleCompat to override the user's preferred caption style.
subtitleTextSize
Optional SubtitleTextSize to override the user's preferred subtitle text size.
See also
To get the current cues from the Player.