AssTrackParser

Parses the FFmpeg-normalised embedded event form against one track's parsed header.

Functions

Link copied to clipboard
fun parseEvent(line: String, startMicros: Long, endMicros: Long): SubtitleCue.Text?

One embedded event: ReadOrder,Layer,Style,Name,MarginL,MarginR,MarginV,Effect,Text. Timing comes from the packet, which is where containers keep it. Returns null for a line with no visible text (a drawing, an empty event, a malformed payload).