Interface SubtitleDecoderFactory
-
@Deprecated public interface SubtitleDecoderFactory
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 factory forSubtitleDecoderinstances.
-
-
Field Summary
Fields Modifier and Type Field Description static SubtitleDecoderFactoryDEFAULTDeprecated.DefaultSubtitleDecoderFactoryimplementation.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description SubtitleDecodercreateDecoder(Format format)Deprecated.Creates aSubtitleDecoderfor the givenFormat.booleansupportsFormat(Format format)Deprecated.Returns whether the factory is able to instantiate aSubtitleDecoderfor the givenFormat.
-
-
-
Field Detail
-
DEFAULT
static final SubtitleDecoderFactory DEFAULT
Deprecated.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)
Deprecated.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)
Deprecated.Creates aSubtitleDecoderfor the givenFormat.- Parameters:
format- TheFormat.- Returns:
- A new
SubtitleDecoder. - Throws:
IllegalArgumentException- If theFormatis not supported.
-
-