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 forMetadataDecoderinstances.
-
-
Field Summary
Fields Modifier and Type Field Description static MetadataDecoderFactoryDEFAULTDeprecated.DefaultMetadataDecoderimplementation.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description MetadataDecodercreateDecoder(Format format)Deprecated.Creates aMetadataDecoderfor the givenFormat.booleansupportsFormat(Format format)Deprecated.Returns whether the factory is able to instantiate aMetadataDecoderfor the givenFormat.
-
-
-
Field Detail
-
DEFAULT
static final MetadataDecoderFactory DEFAULT
Deprecated.DefaultMetadataDecoderimplementation.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 aMetadataDecoderfor the givenFormat.- Parameters:
format- TheFormat.- Returns:
- Whether the factory can instantiate a suitable
MetadataDecoder.
-
createDecoder
MetadataDecoder createDecoder(Format format)
Deprecated.Creates aMetadataDecoderfor the givenFormat.- Parameters:
format- TheFormat.- Returns:
- A new
MetadataDecoder. - Throws:
IllegalArgumentException- If theFormatis not supported.
-
-