Back to Exoplayer

MetadataDecoderFactory (ExoPlayer library)

docs/doc/reference/com/google/android/exoplayer2/metadata/MetadataDecoderFactory.html

latest3.9 KB
Original Source

Package com.google.android.exoplayer2.metadata

Interface MetadataDecoderFactory


[@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.

Field Summary

Fields | Modifier and Type | Field | Description | | --- | --- | --- | | static MetadataDecoderFactory | DEFAULT | Deprecated.

Default MetadataDecoder implementation. |

Method Summary

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. |

Field Detail

- 

DEFAULT

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")) 

-

Method Detail

- 

supportsFormat

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.

- 

createDecoder

[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.