public final class Mp4WebvttDecoder extends SimpleSubtitleDecoder
SimpleSubtitleDecoder for Webvtt embedded in a Mp4 container file.| Constructor and Description |
|---|
Mp4WebvttDecoder() |
| Modifier and Type | Method and Description |
|---|---|
protected com.google.android.exoplayer2.text.webvtt.Mp4WebvttSubtitle |
decode(byte[] bytes,
int length,
boolean reset)
Decodes data into a
Subtitle. |
createInputBuffer, createOutputBuffer, createUnexpectedDecodeException, decode, getName, releaseOutputBuffer, setPositionUsdequeueInputBuffer, dequeueOutputBuffer, flush, queueInputBuffer, release, setInitialInputBufferSizeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdequeueInputBuffer, dequeueOutputBuffer, flush, queueInputBuffer, releaseprotected com.google.android.exoplayer2.text.webvtt.Mp4WebvttSubtitle decode(byte[] bytes,
int length,
boolean reset)
throws SubtitleDecoderException
SimpleSubtitleDecoderSubtitle.decode in class SimpleSubtitleDecoderbytes - An array holding the data to be decoded, starting at position 0.length - The size of the data to be decoded.reset - Whether the decoder must be reset before decoding.Subtitle.SubtitleDecoderException - If a decoding error occurs.