docs/doc/reference/com/google/android/exoplayer2/text/tx3g/Tx3gDecoder.html
Package com.google.android.exoplayer2.text.tx3g
All Implemented Interfaces:Decoder<SubtitleInputBuffer,SubtitleOutputBuffer,SubtitleDecoderException>, SubtitleDecoder
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public final classTx3gDecoderextends[SimpleSubtitleDecoder](../SimpleSubtitleDecoder.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.
A SimpleSubtitleDecoder for tx3g.
Currently supports parsing of a single text track with embedded styles.
Constructors | Constructor | Description |
| --- | --- |
| Tx3gDecoder(List<byte[]> initializationData) |
Deprecated.
Sets up a new Tx3gDecoder with default values.
|
All Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| protected Subtitle | decode(byte[] data, int length, boolean reset) |
Deprecated.
Decodes data into a Subtitle.
|
-
createInputBuffer, createOutputBuffer, createUnexpectedDecodeException, decode, getName, setPositionUs
-
dequeueInputBuffer, dequeueOutputBuffer, flush, queueInputBuffer, release, releaseOutputBuffer, setInitialInputBufferSize
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
dequeueInputBuffer, dequeueOutputBuffer, flush, queueInputBuffer, release
-
public Tx3gDecoder([List](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<byte[]> initializationData)
Deprecated.
Sets up a new Tx3gDecoder with default values.
Parameters:initializationData - Sample description atom ('stsd') data with default subtitle styles.
-
protected[Subtitle](../Subtitle.html "interface in com.google.android.exoplayer2.text")decode(byte[] data,
int length,
boolean reset)
throws[SubtitleDecoderException](../SubtitleDecoderException.html "class in com.google.android.exoplayer2.text")
Deprecated.
Description copied from class: SimpleSubtitleDecoder
Decodes data into a Subtitle.
Specified by:decode in class SimpleSubtitleDecoderParameters:data - An array holding the data to be decoded, starting at position 0.length - The number of bytes from data to be decoded.reset - Whether the decoder must be reset before decoding.Returns:The decoded Subtitle.Throws:SubtitleDecoderException - If a decoding error occurs.