Class ExoplayerCuesDecoder
- java.lang.Object
-
- com.google.android.exoplayer2.text.ExoplayerCuesDecoder
-
- All Implemented Interfaces:
Decoder<SubtitleInputBuffer,SubtitleOutputBuffer,SubtitleDecoderException>
,SubtitleDecoder
@Deprecated public final class ExoplayerCuesDecoder extends Object implements SubtitleDecoder
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.ASubtitleDecoder
that decodes subtitle samples of typeMimeTypes.TEXT_EXOPLAYER_CUES
-
-
Constructor Summary
Constructors Constructor Description ExoplayerCuesDecoder()
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description 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.String
getName()
Deprecated.Returns the name of the decoder.void
queueInputBuffer(SubtitleInputBuffer inputBuffer)
Deprecated.Queues an input buffer to the decoder.void
release()
Deprecated.Releases the decoder.void
setPositionUs(long positionUs)
Deprecated.Informs the decoder of the current playback position.
-
-
-
Method Detail
-
getName
public String getName()
Deprecated.Description copied from interface:Decoder
Returns the name of the decoder.- Specified by:
getName
in interfaceDecoder<SubtitleInputBuffer,SubtitleOutputBuffer,SubtitleDecoderException>
- Returns:
- The name of the decoder.
-
dequeueInputBuffer
@Nullable public SubtitleInputBuffer dequeueInputBuffer() throws SubtitleDecoderException
Deprecated.Description copied from interface:Decoder
Dequeues the next input buffer to be filled and queued to the decoder.- Specified by:
dequeueInputBuffer
in interfaceDecoder<SubtitleInputBuffer,SubtitleOutputBuffer,SubtitleDecoderException>
- Returns:
- The input buffer, which will have been cleared, or null if a buffer isn't available.
- Throws:
SubtitleDecoderException
-
queueInputBuffer
public void queueInputBuffer(SubtitleInputBuffer inputBuffer) throws SubtitleDecoderException
Deprecated.Description copied from interface:Decoder
Queues an input buffer to the decoder.- Specified by:
queueInputBuffer
in interfaceDecoder<SubtitleInputBuffer,SubtitleOutputBuffer,SubtitleDecoderException>
- Parameters:
inputBuffer
- The input buffer.- Throws:
SubtitleDecoderException
-
dequeueOutputBuffer
@Nullable public SubtitleOutputBuffer dequeueOutputBuffer() throws SubtitleDecoderException
Deprecated.Description copied from interface:Decoder
Dequeues the next output buffer from the decoder.- Specified by:
dequeueOutputBuffer
in interfaceDecoder<SubtitleInputBuffer,SubtitleOutputBuffer,SubtitleDecoderException>
- Returns:
- The output buffer, or null if an output buffer isn't available.
- Throws:
SubtitleDecoderException
-
flush
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 interfaceDecoder<SubtitleInputBuffer,SubtitleOutputBuffer,SubtitleDecoderException>
-
release
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 interfaceDecoder<SubtitleInputBuffer,SubtitleOutputBuffer,SubtitleDecoderException>
-
setPositionUs
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 interfaceSubtitleDecoder
- Parameters:
positionUs
- The current playback position in microseconds.
-
-