Interface SubtitleDecoderFactory
-
public interface SubtitleDecoderFactoryA factory forSubtitleDecoderinstances.
-
-
Field Summary
Fields Modifier and Type Field Description static SubtitleDecoderFactoryDEFAULTDefaultSubtitleDecoderFactoryimplementation.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description SubtitleDecodercreateDecoder(Format format)Creates aSubtitleDecoderfor the givenFormat.booleansupportsFormat(Format format)Returns whether the factory is able to instantiate aSubtitleDecoderfor the givenFormat.
-
-
-
Field Detail
-
DEFAULT
static final SubtitleDecoderFactory DEFAULT
DefaultSubtitleDecoderFactoryimplementation.The formats supported by this factory are:
- WebVTT (
WebvttDecoder) - WebVTT (MP4) (
Mp4WebvttDecoder) - TTML (
TtmlDecoder) - SubRip (
SubripDecoder) - SSA/ASS (
SsaDecoder) - TX3G (
Tx3gDecoder) - Cea608 (
Cea608Decoder) - Cea708 (
Cea708Decoder) - DVB (
DvbDecoder) - PGS (
PgsDecoder) - Exoplayer Cues (
ExoplayerCuesDecoder)
- WebVTT (
-
-
Method Detail
-
supportsFormat
boolean supportsFormat(Format format)
Returns whether the factory is able to instantiate aSubtitleDecoderfor the givenFormat.- Parameters:
format- TheFormat.- Returns:
- Whether the factory can instantiate a suitable
SubtitleDecoder.
-
createDecoder
SubtitleDecoder createDecoder(Format format)
Creates aSubtitleDecoderfor the givenFormat.- Parameters:
format- TheFormat.- Returns:
- A new
SubtitleDecoder. - Throws:
IllegalArgumentException- If theFormatis not supported.
-
-