public interface Subtitle
Modifier and Type | Method and Description |
---|---|
List<Cue> |
getCues(long timeUs)
Retrieve the subtitle cues that should be displayed at a given time.
|
long |
getEventTime(int index)
Gets the event time at a specified index.
|
int |
getEventTimeCount()
Gets the number of event times, where events are defined as points in time at which the cues
returned by
getCues(long) changes. |
long |
getLastEventTime()
Convenience method for obtaining the last event time.
|
int |
getNextEventTimeIndex(long timeUs)
Gets the index of the first event that occurs after a given time (exclusive).
|
int getNextEventTimeIndex(long timeUs)
timeUs
- The time in microseconds.int getEventTimeCount()
getCues(long)
changes.long getEventTime(int index)
index
- The index of the event time to obtain.long getLastEventTime()
getEventTimeCount() == 0
.