docs/doc/reference/com/google/android/exoplayer2/text/SubtitleDecoder.html
Package com.google.android.exoplayer2.text
Decoder<SubtitleInputBuffer,SubtitleOutputBuffer,SubtitleDecoderException>All Known Implementing Classes:Cea608Decoder, Cea708Decoder, DvbDecoder, ExoplayerCuesDecoder, Mp4WebvttDecoder, PgsDecoder, SimpleSubtitleDecoder, SsaDecoder, SubripDecoder, TtmlDecoder, Tx3gDecoder, WebvttDecoder[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public interfaceSubtitleDecoderextends[Decoder](../decoder/Decoder.html "interface in com.google.android.exoplayer2.decoder")<[SubtitleInputBuffer](SubtitleInputBuffer.html "class in com.google.android.exoplayer2.text"),[SubtitleOutputBuffer](SubtitleOutputBuffer.html "class in com.google.android.exoplayer2.text"),[SubtitleDecoderException](SubtitleDecoderException.html "class in com.google.android.exoplayer2.text")>
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.
Decodes Subtitles from SubtitleInputBuffers.
All Methods Instance Methods Abstract Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| void | setPositionUs(long positionUs) |
Deprecated.
Informs the decoder of the current playback position. |
-
dequeueInputBuffer, dequeueOutputBuffer, flush, getName, queueInputBuffer, release
-
void setPositionUs(long positionUs)
Deprecated.
Informs the decoder of the current playback position.
Must be called prior to each attempt to dequeue output buffers from the decoder.
Parameters:positionUs - The current playback position in microseconds.