docs/doc/reference/com/google/android/exoplayer2/metadata/MetadataDecoderFactory.html
Package com.google.android.exoplayer2.metadata
[@Deprecated](https://developer.android.com/reference/java/lang/Deprecated.html "class or interface in java.lang")public interfaceMetadataDecoderFactory
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 for MetadataDecoder instances.
Fields | Modifier and Type | Field | Description |
| --- | --- | --- |
| static MetadataDecoderFactory | DEFAULT |
Deprecated.
Default MetadataDecoder implementation.
|
All Methods Instance Methods Abstract Methods Deprecated Methods | Modifier and Type | Method | Description |
| --- | --- | --- |
| MetadataDecoder | createDecoder(Format format) |
Deprecated.
Creates a MetadataDecoder for the given Format.
|
| boolean | supportsFormat(Format format) |
Deprecated.
Returns whether the factory is able to instantiate a MetadataDecoder for the given Format.
|
-
static final[MetadataDecoderFactory](MetadataDecoderFactory.html "interface in com.google.android.exoplayer2.metadata")DEFAULT
Deprecated.
Default MetadataDecoder implementation.
The formats supported by this factory are:
- ID3 ([`Id3Decoder`](id3/Id3Decoder.html "class in com.google.android.exoplayer2.metadata.id3"))
- EMSG ([`EventMessageDecoder`](emsg/EventMessageDecoder.html "class in com.google.android.exoplayer2.metadata.emsg"))
- SCTE-35 ([`SpliceInfoDecoder`](scte35/SpliceInfoDecoder.html "class in com.google.android.exoplayer2.metadata.scte35"))
- ICY ([`IcyDecoder`](icy/IcyDecoder.html "class in com.google.android.exoplayer2.metadata.icy"))
-
-
boolean supportsFormat([Format](../Format.html "class in com.google.android.exoplayer2")format)
Deprecated.
Returns whether the factory is able to instantiate a MetadataDecoder for the given Format.
Parameters:format - The Format.Returns:Whether the factory can instantiate a suitable MetadataDecoder.
-
[MetadataDecoder](MetadataDecoder.html "interface in com.google.android.exoplayer2.metadata")createDecoder([Format](../Format.html "class in com.google.android.exoplayer2")format)
Deprecated.
Creates a MetadataDecoder for the given Format.
Parameters:format - The Format.Returns:A new MetadataDecoder.Throws:IllegalArgumentException - If the Format is not supported.