Compose Subtitle Layer
@Composable
A composable function that displays subtitles over a video player. This component handles loading and parsing subtitle files, and displaying the active subtitles at the current playback time.
Parameters
current Time Ms
The current playback time in milliseconds
duration Ms
The total duration of the media in milliseconds
is Playing
Whether the video is currently playing
subtitle Track
The current subtitle track, or null if no subtitle is selected
subtitles Enabled
Whether subtitles are enabled
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