Package com.google.android.exoplayer2
Class MetadataRetriever
- java.lang.Object
-
- com.google.android.exoplayer2.MetadataRetriever
-
@Deprecated public final class MetadataRetriever extends Object
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.Retrieves the static metadata ofMediaItems
.
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ListenableFuture<TrackGroupArray>
retrieveMetadata(Context context, MediaItem mediaItem)
Deprecated.Retrieves theTrackGroupArray
corresponding to aMediaItem
.static ListenableFuture<TrackGroupArray>
retrieveMetadata(MediaSource.Factory mediaSourceFactory, MediaItem mediaItem)
Deprecated.Retrieves theTrackGroupArray
corresponding to aMediaItem
.
-
-
-
Method Detail
-
retrieveMetadata
public static ListenableFuture<TrackGroupArray> retrieveMetadata(Context context, MediaItem mediaItem)
Deprecated.Retrieves theTrackGroupArray
corresponding to aMediaItem
.This is equivalent to using
retrieveMetadata(MediaSource.Factory, MediaItem)
with aDefaultMediaSourceFactory
and aDefaultExtractorsFactory
withMp4Extractor.FLAG_READ_MOTION_PHOTO_METADATA
andMp4Extractor.FLAG_READ_SEF_DATA
set.- Parameters:
context
- TheContext
.mediaItem
- TheMediaItem
whose metadata should be retrieved.- Returns:
- A
ListenableFuture
of the result.
-
retrieveMetadata
public static ListenableFuture<TrackGroupArray> retrieveMetadata(MediaSource.Factory mediaSourceFactory, MediaItem mediaItem)
Deprecated.- Parameters:
mediaSourceFactory
- mediaSourceFactory TheMediaSource.Factory
to use to read the data.mediaItem
- TheMediaItem
whose metadata should be retrieved.- Returns:
- A
ListenableFuture
of the result.
-
-