Interface Subtitle
-
- All Known Implementing Classes:
SubtitleOutputBuffer
@Deprecated public interface Subtitle
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 timedCues.
-
-
Method Summary
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.longgetEventTime(int index)Deprecated.Returns the event time at a specified index.intgetEventTimeCount()Deprecated.Returns the number of event times, where events are defined as points in time at which the cues returned bygetCues(long)changes.intgetNextEventTimeIndex(long timeUs)Deprecated.Returns the index of the first event that occurs after a given time (exclusive).
-
-
-
Method Detail
-
getNextEventTimeIndex
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_UNSETif there are no events after the specified time.
-
getEventTimeCount
int getEventTimeCount()
Deprecated.Returns the number of event times, where events are defined as points in time at which the cues returned bygetCues(long)changes.- Returns:
- The number of event times.
-
getEventTime
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.
-
-