Subtitle
@UnstableApi
public interface Subtitle
SubtitleOutputBuffer |
Base class for |
A subtitle consisting of timed Cues.
Summary
Public methods |
|
|---|---|
abstract List<Cue> |
getCues(long timeUs)Retrieve the cues that should be displayed at a given time. |
abstract long |
getEventTime(int index)Returns the event time at a specified index. |
abstract int |
Returns the number of event times, where events are defined as points in time at which the cues returned by |
abstract int |
getNextEventTimeIndex(long timeUs)Returns the index of the first event that occurs after a given time (exclusive). |
Public methods
getCues
abstract List<Cue> getCues(long timeUs)
Retrieve the cues that should be displayed at a given time.
| Parameters | |
|---|---|
long timeUs |
The time in microseconds. |
getEventTime
abstract long getEventTime(int index)
Returns the event time at a specified index.
| Parameters | |
|---|---|
int index |
The index of the event time to obtain. |
| Returns | |
|---|---|
long |
The event time in microseconds. |
getEventTimeCount
abstract int getEventTimeCount()
Returns the number of event times, where events are defined as points in time at which the cues returned by getCues changes.
| Returns | |
|---|---|
int |
The number of event times. |
getNextEventTimeIndex
abstract int getNextEventTimeIndex(long timeUs)
Returns the index of the first event that occurs after a given time (exclusive).
| Parameters | |
|---|---|
long timeUs |
The time in microseconds. |
| Returns | |
|---|---|
int |
The index of the next event, or |