SubtitleOutputBufferpublic interface Subtitle
Cues.| Modifier and Type | Method | Description |
|---|---|---|
List<Cue> |
getCues(long timeUs) |
Retrieve the cues that should be displayed at a given time.
|
long |
getEventTime(int index) |
Returns the event time at a specified index.
|
int |
getEventTimeCount() |
Returns the number of event times, where events are defined as points in time at which the cues
returned by
getCues(long) changes. |
int |
getNextEventTimeIndex(long timeUs) |
Returns the index of the first event that occurs after a given time (exclusive).
|
int getNextEventTimeIndex(long timeUs)
timeUs - The time in microseconds.C.INDEX_UNSET if there are no events after the
specified time.int getEventTimeCount()
getCues(long) changes.long getEventTime(int index)
index - The index of the event time to obtain.