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 forSubtitleDecoder
instances.
-
-
Field Summary
Fields Modifier and Type Field Description static SubtitleDecoderFactory
DEFAULT
Deprecated.DefaultSubtitleDecoderFactory
implementation.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description SubtitleDecoder
createDecoder(Format format)
Deprecated.Creates aSubtitleDecoder
for the givenFormat
.boolean
supportsFormat(Format format)
Deprecated.Returns whether the factory is able to instantiate aSubtitleDecoder
for the givenFormat
.
-
-
-
Field Detail
-
DEFAULT
static final SubtitleDecoderFactory DEFAULT
Deprecated.DefaultSubtitleDecoderFactory
implementation.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 aSubtitleDecoder
for the givenFormat
.- Parameters:
format
- TheFormat
.- Returns:
- Whether the factory can instantiate a suitable
SubtitleDecoder
.
-
createDecoder
SubtitleDecoder createDecoder(Format format)
Deprecated.Creates aSubtitleDecoder
for the givenFormat
.- Parameters:
format
- TheFormat
.- Returns:
- A new
SubtitleDecoder
. - Throws:
IllegalArgumentException
- If theFormat
is not supported.
-
-