docs/doc/reference/com/google/android/exoplayer2/text/Subtitle.html
Package com.google.android.exoplayer2.text
SubtitleOutputBuffer[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public interfaceSubtitle
Deprecated. com.google.android.exoplayer2 is deprecated. Please migrate to androidx.media3 (which contains the same ExoPlayer code). See the migration guide for more details, including a script to help with the migration.
A subtitle consisting of timed Cues.
All Methods Instance Methods Abstract Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| List<Cue> | getCues(long timeUs) |
Deprecated.
Retrieve the cues that should be displayed at a given time.
|
| long | getEventTime(int index) |
Deprecated.
Returns the event time at a specified index.
|
| int | getEventTimeCount() |
Deprecated.
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) |
Deprecated.
Returns the index of the first event that occurs after a given time (exclusive). |
-
int getNextEventTimeIndex(long timeUs)
Deprecated.
Returns the index of the first event that occurs after a given time (exclusive).
Parameters:timeUs - The time in microseconds.Returns:The index of the next event, or C.INDEX_UNSET if there are no events after the specified time.
-
int getEventTimeCount()
Deprecated.
Returns the number of event times, where events are defined as points in time at which the cues returned by getCues(long) changes.
Returns:The number of event times.
-
long getEventTime(int index)
Deprecated.
Returns the event time at a specified index.
Parameters:index - The index of the event time to obtain.Returns:The event time in microseconds.
-
[List](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<[Cue](Cue.html "class in com.google.android.exoplayer2.text")> getCues(long timeUs)
Deprecated.
Retrieve the cues that should be displayed at a given time.
Parameters:timeUs - The time in microseconds.Returns:A list of cues that should be displayed, possibly empty.