docs/doc/reference/com/google/android/exoplayer2/text/cea/Cea708Decoder.html
Package com.google.android.exoplayer2.text.cea
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 classCea708Decoderextends[Object](https://developer.android.com/reference/java/lang/Object.html "class or interface in java.lang")
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 SubtitleDecoder for CEA-708 (also known as "EIA-708").
Constructors | Constructor | Description |
| --- | --- |
| Cea708Decoder(int accessibilityChannel, List<byte[]> initializationData) |
Deprecated.
|
All Methods Instance Methods Concrete Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| protected Subtitle | createSubtitle() |
Deprecated.
Creates a Subtitle from the available data.
|
| protected void | decode(SubtitleInputBuffer inputBuffer) |
Deprecated.
Filters and processes the raw data, providing Subtitles via createSubtitle() when sufficient data has been processed.
|
| SubtitleInputBuffer | dequeueInputBuffer() |
Deprecated.
Dequeues the next input buffer to be filled and queued to the decoder.
|
| SubtitleOutputBuffer | dequeueOutputBuffer() |
Deprecated.
Dequeues the next output buffer from the decoder.
|
| void | flush() |
Deprecated.
Flushes the decoder.
|
| protected SubtitleOutputBuffer | getAvailableOutputBuffer() |
Deprecated.
|
| String | getName() |
Deprecated.
Returns the name of the decoder.
|
| protected long | getPositionUs() |
Deprecated.
|
| protected boolean | isNewSubtitleDataAvailable() |
Deprecated.
Returns whether there is data available to create a new Subtitle.
|
| void | queueInputBuffer(SubtitleInputBuffer inputBuffer) |
Deprecated.
Queues an input buffer to the decoder.
|
| void | release() |
Deprecated.
Releases the decoder.
|
| protected void | releaseOutputBuffer(SubtitleOutputBuffer outputBuffer) |
Deprecated.
|
| void | setPositionUs(long positionUs) |
Deprecated.
Informs the decoder of the current playback position. |
-
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
public Cea708Decoder(int accessibilityChannel,
@Nullable[List](https://developer.android.com/reference/java/util/List.html "class or interface in java.util")<byte[]> initializationData)
Deprecated.
-
public[String](https://developer.android.com/reference/java/lang/String.html "class or interface in java.lang")getName()
Deprecated.
Description copied from interface: Decoder
Returns the name of the decoder.
Specified by:getName in interface Decoder<SubtitleInputBuffer,SubtitleOutputBuffer,SubtitleDecoderException>Returns:The name of the decoder.
-
public void flush()
Deprecated.
Description copied from interface: Decoder
Flushes the decoder. Ownership of dequeued input buffers is returned to the decoder. The caller is still responsible for releasing any dequeued output buffers.
Specified by:flush in interface Decoder<SubtitleInputBuffer,SubtitleOutputBuffer,SubtitleDecoderException>
-
protected boolean isNewSubtitleDataAvailable()
Deprecated.
Returns whether there is data available to create a new Subtitle.
-
protected[Subtitle](../Subtitle.html "interface in com.google.android.exoplayer2.text")createSubtitle()
Deprecated.
Creates a Subtitle from the available data.
-
protected void decode([SubtitleInputBuffer](../SubtitleInputBuffer.html "class in com.google.android.exoplayer2.text")inputBuffer)
Deprecated.
Filters and processes the raw data, providing Subtitles via createSubtitle() when sufficient data has been processed.
-
public void setPositionUs(long positionUs)
Deprecated.
Description copied from interface: SubtitleDecoder
Informs the decoder of the current playback position.
Must be called prior to each attempt to dequeue output buffers from the decoder.
Specified by:setPositionUs in interface SubtitleDecoderParameters:positionUs - The current playback position in microseconds.
-
@Nullable
public[SubtitleInputBuffer](../SubtitleInputBuffer.html "class in com.google.android.exoplayer2.text")dequeueInputBuffer()
throws[SubtitleDecoderException](../SubtitleDecoderException.html "class in com.google.android.exoplayer2.text")
Deprecated.
Description copied from interface: Decoder
Dequeues the next input buffer to be filled and queued to the decoder.
Specified by:dequeueInputBuffer in interface Decoder<SubtitleInputBuffer,SubtitleOutputBuffer,SubtitleDecoderException>Returns:The input buffer, which will have been cleared, or null if a buffer isn't available.Throws:SubtitleDecoderException
-
public void queueInputBuffer([SubtitleInputBuffer](../SubtitleInputBuffer.html "class in com.google.android.exoplayer2.text")inputBuffer)
throws[SubtitleDecoderException](../SubtitleDecoderException.html "class in com.google.android.exoplayer2.text")
Deprecated.
Description copied from interface: Decoder
Queues an input buffer to the decoder.
Specified by:queueInputBuffer in interface Decoder<SubtitleInputBuffer,SubtitleOutputBuffer,SubtitleDecoderException>Parameters:inputBuffer - The input buffer.Throws:SubtitleDecoderException
-
@Nullable
public[SubtitleOutputBuffer](../SubtitleOutputBuffer.html "class in com.google.android.exoplayer2.text")dequeueOutputBuffer()
throws[SubtitleDecoderException](../SubtitleDecoderException.html "class in com.google.android.exoplayer2.text")
Deprecated.
Description copied from interface: Decoder
Dequeues the next output buffer from the decoder.
Specified by:dequeueOutputBuffer in interface Decoder<SubtitleInputBuffer,SubtitleOutputBuffer,SubtitleDecoderException>Returns:The output buffer, or null if an output buffer isn't available.Throws:SubtitleDecoderException
-
protected void releaseOutputBuffer([SubtitleOutputBuffer](../SubtitleOutputBuffer.html "class in com.google.android.exoplayer2.text")outputBuffer)
Deprecated.
-
public void release()
Deprecated.
Description copied from interface: Decoder
Releases the decoder. Must be called when the decoder is no longer needed.
Specified by:release in interface Decoder<SubtitleInputBuffer,SubtitleOutputBuffer,SubtitleDecoderException>
-
@Nullable
protected final[SubtitleOutputBuffer](../SubtitleOutputBuffer.html "class in com.google.android.exoplayer2.text")getAvailableOutputBuffer()
Deprecated.
-
protected final long getPositionUs()
Deprecated.