Interface MetadataDecoderFactory
-
@Deprecated public interface MetadataDecoderFactory
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 forMetadataDecoder
instances.
-
-
Field Summary
Fields Modifier and Type Field Description static MetadataDecoderFactory
DEFAULT
Deprecated.DefaultMetadataDecoder
implementation.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description MetadataDecoder
createDecoder(Format format)
Deprecated.Creates aMetadataDecoder
for the givenFormat
.boolean
supportsFormat(Format format)
Deprecated.Returns whether the factory is able to instantiate aMetadataDecoder
for the givenFormat
.
-
-
-
Field Detail
-
DEFAULT
static final MetadataDecoderFactory DEFAULT
Deprecated.DefaultMetadataDecoder
implementation.The formats supported by this factory are:
- ID3 (
Id3Decoder
) - EMSG (
EventMessageDecoder
) - SCTE-35 (
SpliceInfoDecoder
) - ICY (
IcyDecoder
)
- ID3 (
-
-
Method Detail
-
supportsFormat
boolean supportsFormat(Format format)
Deprecated.Returns whether the factory is able to instantiate aMetadataDecoder
for the givenFormat
.- Parameters:
format
- TheFormat
.- Returns:
- Whether the factory can instantiate a suitable
MetadataDecoder
.
-
createDecoder
MetadataDecoder createDecoder(Format format)
Deprecated.Creates aMetadataDecoder
for the givenFormat
.- Parameters:
format
- TheFormat
.- Returns:
- A new
MetadataDecoder
. - Throws:
IllegalArgumentException
- If theFormat
is not supported.
-
-