SubtitleCue

@Immutable
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
val endTime: Long

The end time of the subtitle in milliseconds

Link copied to clipboard
val startTime: Long

The start time of the subtitle in milliseconds

Link copied to clipboard
val text: String

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.