Class WebvttDecoder
- java.lang.Object
- 
- com.google.android.exoplayer2.decoder.SimpleDecoder<SubtitleInputBuffer,SubtitleOutputBuffer,SubtitleDecoderException>
- 
- com.google.android.exoplayer2.text.SimpleSubtitleDecoder
- 
- com.google.android.exoplayer2.text.webvtt.WebvttDecoder
 
 
 
- 
- All Implemented Interfaces:
- Decoder<SubtitleInputBuffer,SubtitleOutputBuffer,SubtitleDecoderException>,- SubtitleDecoder
 
 @Deprecated public final class WebvttDecoder extends SimpleSubtitleDecoder 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.ASimpleSubtitleDecoderfor WebVTT.See the WebVTT specification. 
- 
- 
Constructor SummaryConstructors Constructor Description WebvttDecoder()Deprecated.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected Subtitledecode(byte[] data, int length, boolean reset)Deprecated.Decodes data into aSubtitle.- 
Methods inherited from class com.google.android.exoplayer2.text.SimpleSubtitleDecodercreateInputBuffer, createOutputBuffer, createUnexpectedDecodeException, decode, getName, setPositionUs
 - 
Methods inherited from class com.google.android.exoplayer2.decoder.SimpleDecoderdequeueInputBuffer, dequeueOutputBuffer, flush, queueInputBuffer, release, releaseOutputBuffer, setInitialInputBufferSize
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface com.google.android.exoplayer2.decoder.DecoderdequeueInputBuffer, dequeueOutputBuffer, flush, queueInputBuffer, release
 
- 
 
- 
- 
- 
Method Detail- 
decodeprotected Subtitle decode(byte[] data, int length, boolean reset) throws SubtitleDecoderException Deprecated.Description copied from class:SimpleSubtitleDecoderDecodes data into aSubtitle.- Specified by:
- decodein class- SimpleSubtitleDecoder
- Parameters:
- data- An array holding the data to be decoded, starting at position 0.
- length- The number of bytes from- datato be decoded.
- reset- Whether the decoder must be reset before decoding.
- Returns:
- The decoded Subtitle.
- Throws:
- SubtitleDecoderException- If a decoding error occurs.
 
 
- 
 
-