SubtitleCue

data class SubtitleCue(val startTime: Long, val endTime: Long, val text: String)

Represents a single subtitle cue with timing information and text content.

Constructors

Link copied to clipboard
constructor(startTime: Long, endTime: Long, text: String)

Properties

Link copied to clipboard

The end time of the subtitle in milliseconds

Link copied to clipboard

The start time of the subtitle in milliseconds

Link copied to clipboard

The text content of the subtitle

Functions

Link copied to clipboard
fun isActive(currentTimeMs: Long): Boolean

Checks if this subtitle cue should be displayed at the given time.