# MediaMetadata

Artifact: [androidx.media3:media3-common](https://developer.android.com/jetpack/androidx/releases/media3) [View Source](https://cs.android.com/search?q=file:androidx/media3/common/MediaMetadata.java+class:androidx.media3.common.MediaMetadata)

*** ** * ** ***


```
public final class MediaMetadata
```

<br />

*** ** * ** ***

Metadata of a `https://developer.android.com/reference/androidx/media3/common/MediaItem`, playlist, or a combination of multiple sources of `https://developer.android.com/reference/androidx/media3/common/Metadata`.

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/androidx/media3/common/MediaMetadata.Builder` A builder for `https://developer.android.com/reference/androidx/media3/common/MediaMetadata` instances. |
| `@https://developer.android.com/reference/java/lang/annotation/Documented.html @https://developer.android.com/reference/java/lang/annotation/Retention.html(value = https://developer.android.com/reference/java/lang/annotation/RetentionPolicy.html#SOURCE) @https://developer.android.com/reference/java/lang/annotation/Target.html(value = ) @https://developer.android.com/reference/androidx/annotation/IntDef(value = ) public annotation https://developer.android.com/reference/androidx/media3/common/MediaMetadata.FolderType` **This annotation is deprecated.** Use `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#isBrowsable()` to indicate if an item is a browsable folder and use `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#mediaType()` to indicate the type of the folder. <br /> |
| `@https://developer.android.com/reference/java/lang/annotation/Documented.html @https://developer.android.com/reference/java/lang/annotation/Retention.html(value = https://developer.android.com/reference/java/lang/annotation/RetentionPolicy.html#SOURCE) @https://developer.android.com/reference/java/lang/annotation/Target.html(value = https://developer.android.com/reference/java/lang/annotation/ElementType.html#TYPE_USE) @https://developer.android.com/reference/androidx/annotation/IntDef(value = ) public annotation https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` The type of content described by the media item. |
| `@https://developer.android.com/reference/java/lang/annotation/Documented.html @https://developer.android.com/reference/java/lang/annotation/Retention.html(value = https://developer.android.com/reference/java/lang/annotation/RetentionPolicy.html#SOURCE) @https://developer.android.com/reference/java/lang/annotation/Target.html(value = ) @https://developer.android.com/reference/androidx/annotation/IntDef(value = ) public annotation https://developer.android.com/reference/androidx/media3/common/MediaMetadata.PictureType` The picture type of the artwork. |

| ### Constants |
|---|---|
| `static final https://developer.android.com/reference/androidx/media3/common/MediaMetadata` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#EMPTY()` Empty `https://developer.android.com/reference/androidx/media3/common/MediaMetadata`. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#FOLDER_TYPE_ALBUMS() = 2` **This field is deprecated.** Use `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#isBrowsable()` set to true and `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#mediaType()` set to `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_FOLDER_ALBUMS()` instead. <br /> |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#FOLDER_TYPE_ARTISTS() = 3` **This field is deprecated.** Use `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#isBrowsable()` set to true and `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#mediaType()` set to `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_FOLDER_ARTISTS()` instead. <br /> |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#FOLDER_TYPE_GENRES() = 4` **This field is deprecated.** Use `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#isBrowsable()` set to true and `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#mediaType()` set to `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_FOLDER_GENRES()` instead. <br /> |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#FOLDER_TYPE_MIXED() = 0` **This field is deprecated.** Use `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#isBrowsable()` set to true and `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#mediaType()` set to `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_FOLDER_MIXED()` instead. <br /> |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#FOLDER_TYPE_NONE() = -1` **This field is deprecated.** Use `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#isBrowsable()` set to false instead. <br /> |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#FOLDER_TYPE_PLAYLISTS() = 5` **This field is deprecated.** Use `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#isBrowsable()` set to true and `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#mediaType()` set to `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_FOLDER_PLAYLISTS()` instead. <br /> |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#FOLDER_TYPE_TITLES() = 1` **This field is deprecated.** Use `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#isBrowsable()` set to true instead. <br /> |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#FOLDER_TYPE_YEARS() = 6` **This field is deprecated.** Use `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#isBrowsable()` set to true and `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#mediaType()` set to `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_FOLDER_YEARS()` instead. <br /> |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_ALBUM() = 10` `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a group of items (e.g., `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_MUSIC()`) belonging to an album. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_ARTIST() = 11` `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a group of items (e.g., `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_MUSIC()`) from the same artist. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_AUDIO_BOOK() = 15` `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a group of items forming an audio book. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_AUDIO_BOOK_CHAPTER() = 2` `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for an audio book chapter. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_FOLDER_ALBUMS() = 21` `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a folder containing `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_ALBUM()`. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_FOLDER_ARTISTS() = 22` `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a folder containing `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#FIELD_ARTIST()`. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_FOLDER_AUDIO_BOOKS() = 26` `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a folder containing `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_AUDIO_BOOK()`. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_FOLDER_GENRES() = 23` `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a folder containing `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_GENRE()`. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_FOLDER_MIXED() = 20` `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a folder with mixed or undetermined content. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_FOLDER_MOVIES() = 35` `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a folder containing `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_MOVIE()`. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_FOLDER_NEWS() = 32` `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a folder containing `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_NEWS()`. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_FOLDER_PLAYLISTS() = 24` `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a folder containing `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_PLAYLIST()`. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_FOLDER_PODCASTS() = 27` `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a folder containing `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_PODCAST()`. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_FOLDER_RADIO_STATIONS() = 31` `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a folder containing `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_RADIO_STATION()`. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_FOLDER_TRAILERS() = 34` `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a folder containing `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_TRAILER()`. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_FOLDER_TV_CHANNELS() = 28` `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a folder containing `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_TV_CHANNEL()`. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_FOLDER_TV_SERIES() = 29` `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a folder containing `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_TV_SERIES()`. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_FOLDER_TV_SHOWS() = 30` `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a folder containing `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_TV_SHOW()`. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_FOLDER_VIDEOS() = 33` `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a folder containing `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_VIDEO()`. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_FOLDER_YEARS() = 25` `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a folder containing `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_YEAR()`. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_GENRE() = 12` `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a group of items (e.g., `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_MUSIC()`) of the same genre. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_MIXED() = 0` Media of undetermined type or a mix of multiple `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType`. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_MOVIE() = 8` `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a movie. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_MUSIC() = 1` `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for music. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_NEWS() = 5` `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for news. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_PLAYLIST() = 13` `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a group of items (e.g., `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_MUSIC()`) forming a playlist. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_PODCAST() = 16` `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a group of items belonging to a podcast. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_PODCAST_EPISODE() = 3` `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a podcast episode. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_RADIO_STATION() = 4` `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a radio station. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_TRAILER() = 7` `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a movie trailer. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_TV_CHANNEL() = 17` `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a group of items that are part of a TV channel. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_TV_SEASON() = 19` `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a group of items that are part of a TV series. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_TV_SERIES() = 18` `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a group of items that are part of a TV series. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_TV_SHOW() = 9` `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a TV show. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_VIDEO() = 6` `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a video. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_YEAR() = 14` `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a group of items (e.g., `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_MUSIC()`) from the same year. |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#PICTURE_TYPE_ARTIST_PERFORMER() = 8` |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#PICTURE_TYPE_A_BRIGHT_COLORED_FISH() = 17` |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#PICTURE_TYPE_BACK_COVER() = 4` |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#PICTURE_TYPE_BAND_ARTIST_LOGO() = 19` |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#PICTURE_TYPE_BAND_ORCHESTRA() = 10` |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#PICTURE_TYPE_COMPOSER() = 11` |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#PICTURE_TYPE_CONDUCTOR() = 9` |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#PICTURE_TYPE_DURING_PERFORMANCE() = 15` |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#PICTURE_TYPE_DURING_RECORDING() = 14` |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#PICTURE_TYPE_FILE_ICON() = 1` |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#PICTURE_TYPE_FILE_ICON_OTHER() = 2` |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#PICTURE_TYPE_FRONT_COVER() = 3` |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#PICTURE_TYPE_ILLUSTRATION() = 18` |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#PICTURE_TYPE_LEAD_ARTIST_PERFORMER() = 7` |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#PICTURE_TYPE_LEAFLET_PAGE() = 5` |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#PICTURE_TYPE_LYRICIST() = 12` |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#PICTURE_TYPE_MEDIA() = 6` |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#PICTURE_TYPE_MOVIE_VIDEO_SCREEN_CAPTURE() = 16` |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#PICTURE_TYPE_OTHER() = 0` |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#PICTURE_TYPE_PUBLISHER_STUDIO_LOGO() = 20` |
| `static final int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#PICTURE_TYPE_RECORDING_LOCATION() = 13` |

| ### Public fields |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#albumArtist()` Optional album artist. |
| `final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#albumTitle()` Optional album title. |
| `final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#artist()` Optional artist. |
| `final @https://developer.android.com/reference/androidx/annotation/Nullable byte[]` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#artworkData()` Optional artwork data as a compressed byte array. |
| `final @https://developer.android.com/reference/androidx/annotation/Nullable @https://developer.android.com/reference/androidx/media3/common/MediaMetadata.PictureType https://developer.android.com/reference/java/lang/Integer.html` | `@https://developer.android.com/reference/androidx/media3/common/MediaMetadata.PictureType https://developer.android.com/reference/androidx/media3/common/MediaMetadata#artworkDataType()` Optional `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.PictureType` of the artwork data. |
| `final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/android/net/Uri.html` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#artworkUri()` Optional artwork `https://developer.android.com/reference/android/net/Uri.html`. |
| `final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/CharSequence.html` | `@https://developer.android.com/reference/androidx/media3/common/util/UnstableApi https://developer.android.com/reference/androidx/media3/common/MediaMetadata#author()` Optional author. |
| `final https://guava.dev/releases/snapshot-android/api/docs/com/google/common/collect/ImmutableList.html<https://developer.android.com/reference/java/lang/String.html>` | `@https://developer.android.com/reference/androidx/media3/common/util/UnstableApi https://developer.android.com/reference/androidx/media3/common/MediaMetadata#categories()` The list of categories or category tokens of the media. |
| `final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#compilation()` Optional compilation. |
| `final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#composer()` Optional composer. |
| `final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#conductor()` Optional conductor. |
| `final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#description()` Optional description. |
| `final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/Integer.html` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#discNumber()` Optional disc number. |
| `final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/CharSequence.html` | `@https://developer.android.com/reference/androidx/media3/common/util/UnstableApi https://developer.android.com/reference/androidx/media3/common/MediaMetadata#discSubtitle()` Optional disc subtitle. |
| `final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#displayTitle()` Optional display title. |
| `final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/Long.html` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#durationMs()` Optional duration, non-negative and in milliseconds. |
| `final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/android/os/Bundle.html` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#extras()` Optional extras `https://developer.android.com/reference/android/os/Bundle.html`. |
| `final @https://developer.android.com/reference/androidx/annotation/Nullable @https://developer.android.com/reference/androidx/media3/common/MediaMetadata.FolderType https://developer.android.com/reference/java/lang/Integer.html` | `@https://developer.android.com/reference/androidx/media3/common/MediaMetadata.FolderType https://developer.android.com/reference/androidx/media3/common/MediaMetadata#folderType()` **This field is deprecated.** Use `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#isBrowsable()` to indicate if an item is a browsable folder and use `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#mediaType()` to indicate the type of the folder. <br /> |
| `final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#genre()` Optional genre. |
| `final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/Boolean.html` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#isBrowsable()` Optional boolean to indicate that the media is a browsable folder. |
| `final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/Boolean.html` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#isPlayable()` Optional boolean to indicate that the media is playable. |
| `final @https://developer.android.com/reference/androidx/annotation/Nullable @https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType https://developer.android.com/reference/java/lang/Integer.html` | `@https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType https://developer.android.com/reference/androidx/media3/common/MediaMetadata#mediaType()` Optional `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType`. |
| `final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/media3/common/Rating` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#overallRating()` Optional overall `https://developer.android.com/reference/androidx/media3/common/Rating`. |
| `final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/String.html` | `@https://developer.android.com/reference/androidx/media3/common/util/UnstableApi https://developer.android.com/reference/androidx/media3/common/MediaMetadata#playlistId()` Optional playlist ID. |
| `final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/Integer.html` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#recordingDay()` Optional day of the recording date. |
| `final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/Integer.html` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#recordingMonth()` Optional month of the recording date. |
| `final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/Integer.html` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#recordingYear()` Optional year of the recording date. |
| `final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/Integer.html` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#releaseDay()` Optional day of the release date. |
| `final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/Integer.html` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#releaseMonth()` Optional month of the release date. |
| `final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/Integer.html` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#releaseYear()` Optional year of the release date. |
| `final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#station()` Optional name of the station streaming the media. |
| `final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#subtitle()` Optional subtitle. |
| `final https://guava.dev/releases/snapshot-android/api/docs/com/google/common/collect/ImmutableList.html<https://developer.android.com/reference/java/lang/String.html>` | `@https://developer.android.com/reference/androidx/media3/common/util/UnstableApi https://developer.android.com/reference/androidx/media3/common/MediaMetadata#supportedCommands()` The IDs of the supported commands of this media item (see for instance ` CommandButton.sessionCommand.customAction` of the Media3 session module). |
| `final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#title()` Optional title. |
| `final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/Integer.html` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#totalDiscCount()` Optional total number of discs. |
| `final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/Integer.html` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#totalTrackCount()` Optional total number of tracks. |
| `final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/Integer.html` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#trackNumber()` Optional track number. |
| `final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/androidx/media3/common/Rating` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#userRating()` Optional user `https://developer.android.com/reference/androidx/media3/common/Rating`. |
| `final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/CharSequence.html` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#writer()` Optional writer. |
| `final @https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/Integer.html` | `@https://developer.android.com/reference/androidx/media3/common/util/UnstableApi https://developer.android.com/reference/androidx/media3/common/MediaMetadata#year()` **This field is deprecated.** Use `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#recordingYear()` instead. <br /> |

| ### Public methods |
|---|---|
| `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.Builder` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#buildUpon()()` Returns a new `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.Builder` instance with the current `https://developer.android.com/reference/androidx/media3/common/MediaMetadata` fields. |
| `boolean` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#equals(java.lang.Object)(@https://developer.android.com/reference/androidx/annotation/Nullable https://developer.android.com/reference/java/lang/Object.html obj)` Note: Equality checking does not consider `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#extras()`. |
| `static https://developer.android.com/reference/androidx/media3/common/MediaMetadata` | `@https://developer.android.com/reference/androidx/media3/common/util/UnstableApi [fromBundle](https://developer.android.com/reference/androidx/media3/common/MediaMetadata#fromBundle(android.os.Bundle))(https://developer.android.com/reference/android/os/Bundle.html bundle)` **This method is deprecated.** Use `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#fromBundle(android.os.Bundle,int)`. <br /> |
| `static https://developer.android.com/reference/androidx/media3/common/MediaMetadata` | `@https://developer.android.com/reference/androidx/media3/common/util/UnstableApi https://developer.android.com/reference/androidx/media3/common/MediaMetadata#fromBundle(android.os.Bundle,int)(https://developer.android.com/reference/android/os/Bundle.html bundle, int interfaceVersion)` Restores a `MediaMetadata` from a `https://developer.android.com/reference/android/os/Bundle.html`. |
| `int` | `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#hashCode()()` |
| `https://developer.android.com/reference/android/os/Bundle.html` | `@https://developer.android.com/reference/androidx/media3/common/util/UnstableApi [toBundle](https://developer.android.com/reference/androidx/media3/common/MediaMetadata#toBundle())()` **This method is deprecated.** Use `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#toBundle(int)` instead. <br /> |
| `https://developer.android.com/reference/android/os/Bundle.html` | `@https://developer.android.com/reference/androidx/media3/common/util/UnstableApi https://developer.android.com/reference/androidx/media3/common/MediaMetadata#toBundle(int)(int interfaceVersion)` Writes `https://developer.android.com/reference/androidx/media3/common/MediaMetadata` to a `https://developer.android.com/reference/android/os/Bundle.html`. |

## Constants

### EMPTY

```
public static final MediaMetadata EMPTY
```

Empty `https://developer.android.com/reference/androidx/media3/common/MediaMetadata`.

### FOLDER_TYPE_ALBUMS

```
public static final int FOLDER_TYPE_ALBUMS = 2
```

> [!CAUTION]
> **This field is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#isBrowsable()` set to true and `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#mediaType()` set to `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_FOLDER_ALBUMS()` instead.

Type for a folder containing media categorized by album.

### FOLDER_TYPE_ARTISTS

```
public static final int FOLDER_TYPE_ARTISTS = 3
```

> [!CAUTION]
> **This field is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#isBrowsable()` set to true and `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#mediaType()` set to `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_FOLDER_ARTISTS()` instead.

Type for a folder containing media categorized by artist.

### FOLDER_TYPE_GENRES

```
public static final int FOLDER_TYPE_GENRES = 4
```

> [!CAUTION]
> **This field is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#isBrowsable()` set to true and `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#mediaType()` set to `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_FOLDER_GENRES()` instead.

Type for a folder containing media categorized by genre.

### FOLDER_TYPE_MIXED

```
public static final int FOLDER_TYPE_MIXED = 0
```

> [!CAUTION]
> **This field is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#isBrowsable()` set to true and `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#mediaType()` set to `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_FOLDER_MIXED()` instead.

Type for a folder containing media of mixed types.

### FOLDER_TYPE_NONE

```
public static final int FOLDER_TYPE_NONE = -1
```

> [!CAUTION]
> **This field is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#isBrowsable()` set to false instead.

Type for an item that is not a folder.

### FOLDER_TYPE_PLAYLISTS

```
public static final int FOLDER_TYPE_PLAYLISTS = 5
```

> [!CAUTION]
> **This field is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#isBrowsable()` set to true and `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#mediaType()` set to `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_FOLDER_PLAYLISTS()` instead.

Type for a folder containing a playlist.

### FOLDER_TYPE_TITLES

```
public static final int FOLDER_TYPE_TITLES = 1
```

> [!CAUTION]
> **This field is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#isBrowsable()` set to true instead.

Type for a folder containing only playable media.

### FOLDER_TYPE_YEARS

```
public static final int FOLDER_TYPE_YEARS = 6
```

> [!CAUTION]
> **This field is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#isBrowsable()` set to true and `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#mediaType()` set to `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_FOLDER_YEARS()` instead.

Type for a folder containing media categorized by year.

### MEDIA_TYPE_ALBUM

```
public static final int MEDIA_TYPE_ALBUM = 10
```

`https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a group of items (e.g., `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_MUSIC()`) belonging to an album.

### MEDIA_TYPE_ARTIST

```
public static final int MEDIA_TYPE_ARTIST = 11
```

`https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a group of items (e.g., `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_MUSIC()`) from the same artist.

### MEDIA_TYPE_AUDIO_BOOK

```
public static final int MEDIA_TYPE_AUDIO_BOOK = 15
```

`https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a group of items forming an audio book. Items in this group are typically of type `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_AUDIO_BOOK_CHAPTER()`.

### MEDIA_TYPE_AUDIO_BOOK_CHAPTER

```
public static final int MEDIA_TYPE_AUDIO_BOOK_CHAPTER = 2
```

`https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for an audio book chapter.

### MEDIA_TYPE_FOLDER_ALBUMS

```
public static final int MEDIA_TYPE_FOLDER_ALBUMS = 21
```

`https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a folder containing `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_ALBUM()`.

### MEDIA_TYPE_FOLDER_ARTISTS

```
public static final int MEDIA_TYPE_FOLDER_ARTISTS = 22
```

`https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a folder containing `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#FIELD_ARTIST()`.

### MEDIA_TYPE_FOLDER_AUDIO_BOOKS

```
public static final int MEDIA_TYPE_FOLDER_AUDIO_BOOKS = 26
```

`https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a folder containing `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_AUDIO_BOOK()`.

### MEDIA_TYPE_FOLDER_GENRES

```
public static final int MEDIA_TYPE_FOLDER_GENRES = 23
```

`https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a folder containing `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_GENRE()`.

### MEDIA_TYPE_FOLDER_MIXED

```
public static final int MEDIA_TYPE_FOLDER_MIXED = 20
```

`https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a folder with mixed or undetermined content.

### MEDIA_TYPE_FOLDER_MOVIES

```
public static final int MEDIA_TYPE_FOLDER_MOVIES = 35
```

`https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a folder containing `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_MOVIE()`.

### MEDIA_TYPE_FOLDER_NEWS

```
public static final int MEDIA_TYPE_FOLDER_NEWS = 32
```

`https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a folder containing `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_NEWS()`.

### MEDIA_TYPE_FOLDER_PLAYLISTS

```
public static final int MEDIA_TYPE_FOLDER_PLAYLISTS = 24
```

`https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a folder containing `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_PLAYLIST()`.

### MEDIA_TYPE_FOLDER_PODCASTS

```
public static final int MEDIA_TYPE_FOLDER_PODCASTS = 27
```

`https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a folder containing `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_PODCAST()`.

### MEDIA_TYPE_FOLDER_RADIO_STATIONS

```
public static final int MEDIA_TYPE_FOLDER_RADIO_STATIONS = 31
```

`https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a folder containing `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_RADIO_STATION()`.

### MEDIA_TYPE_FOLDER_TRAILERS

```
public static final int MEDIA_TYPE_FOLDER_TRAILERS = 34
```

`https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a folder containing `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_TRAILER()`.

### MEDIA_TYPE_FOLDER_TV_CHANNELS

```
public static final int MEDIA_TYPE_FOLDER_TV_CHANNELS = 28
```

`https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a folder containing `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_TV_CHANNEL()`.

### MEDIA_TYPE_FOLDER_TV_SERIES

```
public static final int MEDIA_TYPE_FOLDER_TV_SERIES = 29
```

`https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a folder containing `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_TV_SERIES()`.

### MEDIA_TYPE_FOLDER_TV_SHOWS

```
public static final int MEDIA_TYPE_FOLDER_TV_SHOWS = 30
```

`https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a folder containing `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_TV_SHOW()`.

### MEDIA_TYPE_FOLDER_VIDEOS

```
public static final int MEDIA_TYPE_FOLDER_VIDEOS = 33
```

`https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a folder containing `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_VIDEO()`.

### MEDIA_TYPE_FOLDER_YEARS

```
public static final int MEDIA_TYPE_FOLDER_YEARS = 25
```

`https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a folder containing `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_YEAR()`.

### MEDIA_TYPE_GENRE

```
public static final int MEDIA_TYPE_GENRE = 12
```

`https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a group of items (e.g., `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_MUSIC()`) of the same genre.

### MEDIA_TYPE_MIXED

```
public static final int MEDIA_TYPE_MIXED = 0
```

Media of undetermined type or a mix of multiple `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType`.

### MEDIA_TYPE_MOVIE

```
public static final int MEDIA_TYPE_MOVIE = 8
```

`https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a movie.

### MEDIA_TYPE_MUSIC

```
public static final int MEDIA_TYPE_MUSIC = 1
```

`https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for music.

### MEDIA_TYPE_NEWS

```
public static final int MEDIA_TYPE_NEWS = 5
```

`https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for news.

### MEDIA_TYPE_PLAYLIST

```
public static final int MEDIA_TYPE_PLAYLIST = 13
```

`https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a group of items (e.g., `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_MUSIC()`) forming a playlist.

### MEDIA_TYPE_PODCAST

```
public static final int MEDIA_TYPE_PODCAST = 16
```

`https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a group of items belonging to a podcast. Items in this group are typically of type `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_PODCAST_EPISODE()`.

### MEDIA_TYPE_PODCAST_EPISODE

```
public static final int MEDIA_TYPE_PODCAST_EPISODE = 3
```

`https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a podcast episode.

### MEDIA_TYPE_RADIO_STATION

```
public static final int MEDIA_TYPE_RADIO_STATION = 4
```

`https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a radio station.

### MEDIA_TYPE_TRAILER

```
public static final int MEDIA_TYPE_TRAILER = 7
```

`https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a movie trailer.

### MEDIA_TYPE_TV_CHANNEL

```
public static final int MEDIA_TYPE_TV_CHANNEL = 17
```

`https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a group of items that are part of a TV channel. Items in this group are typically of type `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_TV_SHOW()`, `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_TV_SERIES()` or `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_MOVIE()`.

### MEDIA_TYPE_TV_SEASON

```
public static final int MEDIA_TYPE_TV_SEASON = 19
```

`https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a group of items that are part of a TV series. Items in this group are typically of type `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_TV_SHOW()`.

### MEDIA_TYPE_TV_SERIES

```
public static final int MEDIA_TYPE_TV_SERIES = 18
```

`https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a group of items that are part of a TV series. Items in this group are typically of type `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_TV_SHOW()` or `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_TV_SEASON()`.

### MEDIA_TYPE_TV_SHOW

```
public static final int MEDIA_TYPE_TV_SHOW = 9
```

`https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a TV show.

### MEDIA_TYPE_VIDEO

```
public static final int MEDIA_TYPE_VIDEO = 6
```

`https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a video.

### MEDIA_TYPE_YEAR

```
public static final int MEDIA_TYPE_YEAR = 14
```

`https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType` for a group of items (e.g., `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#MEDIA_TYPE_MUSIC()`) from the same year.

### PICTURE_TYPE_ARTIST_PERFORMER

```
public static final int PICTURE_TYPE_ARTIST_PERFORMER = 8
```

### PICTURE_TYPE_A_BRIGHT_COLORED_FISH

```
public static final int PICTURE_TYPE_A_BRIGHT_COLORED_FISH = 17
```

### PICTURE_TYPE_BACK_COVER

```
public static final int PICTURE_TYPE_BACK_COVER = 4
```

### PICTURE_TYPE_BAND_ARTIST_LOGO

```
public static final int PICTURE_TYPE_BAND_ARTIST_LOGO = 19
```

### PICTURE_TYPE_BAND_ORCHESTRA

```
public static final int PICTURE_TYPE_BAND_ORCHESTRA = 10
```

### PICTURE_TYPE_COMPOSER

```
public static final int PICTURE_TYPE_COMPOSER = 11
```

### PICTURE_TYPE_CONDUCTOR

```
public static final int PICTURE_TYPE_CONDUCTOR = 9
```

### PICTURE_TYPE_DURING_PERFORMANCE

```
public static final int PICTURE_TYPE_DURING_PERFORMANCE = 15
```

### PICTURE_TYPE_DURING_RECORDING

```
public static final int PICTURE_TYPE_DURING_RECORDING = 14
```

### PICTURE_TYPE_FILE_ICON

```
public static final int PICTURE_TYPE_FILE_ICON = 1
```

### PICTURE_TYPE_FILE_ICON_OTHER

```
public static final int PICTURE_TYPE_FILE_ICON_OTHER = 2
```

### PICTURE_TYPE_FRONT_COVER

```
public static final int PICTURE_TYPE_FRONT_COVER = 3
```

### PICTURE_TYPE_ILLUSTRATION

```
public static final int PICTURE_TYPE_ILLUSTRATION = 18
```

### PICTURE_TYPE_LEAD_ARTIST_PERFORMER

```
public static final int PICTURE_TYPE_LEAD_ARTIST_PERFORMER = 7
```

### PICTURE_TYPE_LEAFLET_PAGE

```
public static final int PICTURE_TYPE_LEAFLET_PAGE = 5
```

### PICTURE_TYPE_LYRICIST

```
public static final int PICTURE_TYPE_LYRICIST = 12
```

### PICTURE_TYPE_MEDIA

```
public static final int PICTURE_TYPE_MEDIA = 6
```

### PICTURE_TYPE_MOVIE_VIDEO_SCREEN_CAPTURE

```
public static final int PICTURE_TYPE_MOVIE_VIDEO_SCREEN_CAPTURE = 16
```

### PICTURE_TYPE_OTHER

```
public static final int PICTURE_TYPE_OTHER = 0
```

### PICTURE_TYPE_PUBLISHER_STUDIO_LOGO

```
public static final int PICTURE_TYPE_PUBLISHER_STUDIO_LOGO = 20
```

### PICTURE_TYPE_RECORDING_LOCATION

```
public static final int PICTURE_TYPE_RECORDING_LOCATION = 13
```

## Public fields

### albumArtist

```
public final @Nullable CharSequence albumArtist
```

Optional album artist.

### albumTitle

```
public final @Nullable CharSequence albumTitle
```

Optional album title.

### artist

```
public final @Nullable CharSequence artist
```

Optional artist.

### artworkData

```
public final @Nullable byte[] artworkData
```

Optional artwork data as a compressed byte array.

### artworkDataType

```
@MediaMetadata.PictureType
public final @Nullable @MediaMetadata.PictureType Integer artworkDataType
```

Optional `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.PictureType` of the artwork data.

### artworkUri

```
public final @Nullable Uri artworkUri
```

Optional artwork `https://developer.android.com/reference/android/net/Uri.html`.

### author

```
@UnstableApi
public final @Nullable CharSequence author
```

Optional author.

### categories

```
@UnstableApi
public final ImmutableList<String> categories
```

The list of categories or category tokens of the media.

### compilation

```
public final @Nullable CharSequence compilation
```

Optional compilation.

### composer

```
public final @Nullable CharSequence composer
```

Optional composer.

### conductor

```
public final @Nullable CharSequence conductor
```

Optional conductor.

### description

```
public final @Nullable CharSequence description
```

Optional description.

### discNumber

```
public final @Nullable Integer discNumber
```

Optional disc number.

### discSubtitle

```
@UnstableApi
public final @Nullable CharSequence discSubtitle
```

Optional disc subtitle.

### displayTitle

```
public final @Nullable CharSequence displayTitle
```

Optional display title.

### durationMs

```
public final @Nullable Long durationMs
```

Optional duration, non-negative and in milliseconds.

This field is populated by the app when building the metadata object and is for informational purpose only. For retrieving the duration of the media item currently being played, use `https://developer.android.com/reference/androidx/media3/common/Player#getDuration()` instead.

### extras

```
public final @Nullable Bundle extras
```

Optional extras `https://developer.android.com/reference/android/os/Bundle.html`.

Given the complexities of checking the equality of two `https://developer.android.com/reference/android/os/Bundle.html` instances, the contents of these extras are not considered in the `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#equals(java.lang.Object)` and `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#hashCode()` implementation.

### folderType

```
@MediaMetadata.FolderType
public final @Nullable @MediaMetadata.FolderType Integer folderType
```

> [!CAUTION]
> **This field is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#isBrowsable()` to indicate if an item is a browsable folder and use `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#mediaType()` to indicate the type of the folder.

Optional `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.FolderType`.

### genre

```
public final @Nullable CharSequence genre
```

Optional genre.

### isBrowsable

```
public final @Nullable Boolean isBrowsable
```

Optional boolean to indicate that the media is a browsable folder.

### isPlayable

```
public final @Nullable Boolean isPlayable
```

Optional boolean to indicate that the media is playable.

### mediaType

```
@MediaMetadata.MediaType
public final @Nullable @MediaMetadata.MediaType Integer mediaType
```

Optional `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.MediaType`.

### overallRating

```
public final @Nullable Rating overallRating
```

Optional overall `https://developer.android.com/reference/androidx/media3/common/Rating`.

### playlistId

```
@UnstableApi
public final @Nullable String playlistId
```

Optional playlist ID.

### recordingDay

```
public final @Nullable Integer recordingDay
```

Optional day of the recording date.

Note that there is no guarantee that the month and day are a valid combination.

### recordingMonth

```
public final @Nullable Integer recordingMonth
```

Optional month of the recording date.

Note that there is no guarantee that the month and day are a valid combination.

### recordingYear

```
public final @Nullable Integer recordingYear
```

Optional year of the recording date.

### releaseDay

```
public final @Nullable Integer releaseDay
```

Optional day of the release date.

Note that there is no guarantee that the month and day are a valid combination.

### releaseMonth

```
public final @Nullable Integer releaseMonth
```

Optional month of the release date.

Note that there is no guarantee that the month and day are a valid combination.

### releaseYear

```
public final @Nullable Integer releaseYear
```

Optional year of the release date.

### station

```
public final @Nullable CharSequence station
```

Optional name of the station streaming the media.

### subtitle

```
public final @Nullable CharSequence subtitle
```

Optional subtitle.

This is the secondary title of the media, unrelated to closed captions.

### supportedCommands

```
@UnstableApi
public final ImmutableList<String> supportedCommands
```

The IDs of the supported commands of this media item (see for instance `
CommandButton.sessionCommand.customAction` of the Media3 session module).

### title

```
public final @Nullable CharSequence title
```

Optional title.

### totalDiscCount

```
public final @Nullable Integer totalDiscCount
```

Optional total number of discs.

### totalTrackCount

```
public final @Nullable Integer totalTrackCount
```

Optional total number of tracks.

### trackNumber

```
public final @Nullable Integer trackNumber
```

Optional track number.

### userRating

```
public final @Nullable Rating userRating
```

Optional user `https://developer.android.com/reference/androidx/media3/common/Rating`.

### writer

```
public final @Nullable CharSequence writer
```

Optional writer.

### year

```
@UnstableApi
public final @Nullable Integer year
```

> [!CAUTION]
> **This field is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#recordingYear()` instead.

## Public methods

### buildUpon

```
public MediaMetadata.Builder buildUpon()
```

Returns a new `https://developer.android.com/reference/androidx/media3/common/MediaMetadata.Builder` instance with the current `https://developer.android.com/reference/androidx/media3/common/MediaMetadata` fields.

### equals

```
public boolean equals(@Nullable Object obj)
```

Note: Equality checking does not consider `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#extras()`.

### fromBundle

```
@UnstableApi
public static MediaMetadata [fromBundle](https://developer.android.com/reference/androidx/media3/common/MediaMetadata#fromBundle(android.os.Bundle))(Bundle bundle)
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#fromBundle(android.os.Bundle,int)`.

### fromBundle

```
@UnstableApi
public static MediaMetadata fromBundle(Bundle bundle, int interfaceVersion)
```

Restores a `MediaMetadata` from a `https://developer.android.com/reference/android/os/Bundle.html`.

| Parameters |
|---|---|
| `https://developer.android.com/reference/android/os/Bundle.html bundle` | The `https://developer.android.com/reference/android/os/Bundle.html`. |
| `int interfaceVersion` | The `https://developer.android.com/reference/androidx/media3/common/MediaLibraryInfo#INTERFACE_VERSION()` of the sending process. |

| Returns |
|---|---|
| `https://developer.android.com/reference/androidx/media3/common/MediaMetadata` | The restored media metadata. |

### hashCode

```
public int hashCode()
```

### toBundle

```
@UnstableApi
public Bundle [toBundle](https://developer.android.com/reference/androidx/media3/common/MediaMetadata#toBundle())()
```

> [!CAUTION]
> **This method is deprecated.**   
>
> Use `https://developer.android.com/reference/androidx/media3/common/MediaMetadata#toBundle(int)` instead.

### toBundle

```
@UnstableApi
public Bundle toBundle(int interfaceVersion)
```

Writes `https://developer.android.com/reference/androidx/media3/common/MediaMetadata` to a `https://developer.android.com/reference/android/os/Bundle.html`.

| Parameters |
|---|---|
| `int interfaceVersion` | The `https://developer.android.com/reference/androidx/media3/common/MediaLibraryInfo#INTERFACE_VERSION()` of the receiving process. |

| Returns |
|---|---|
| `https://developer.android.com/reference/android/os/Bundle.html` | A `https://developer.android.com/reference/android/os/Bundle.html` containing the data of this instance. |