Package com.google.android.exoplayer2
Class MediaMetadata
- java.lang.Object
-
- com.google.android.exoplayer2.MediaMetadata
-
- All Implemented Interfaces:
Bundleable
public final class MediaMetadata extends Object implements Bundleable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MediaMetadata.Builder
A builder forMediaMetadata
instances.-
Nested classes/interfaces inherited from interface com.google.android.exoplayer2.Bundleable
Bundleable.Creator<T extends Bundleable>
-
-
Field Summary
Fields Modifier and Type Field Description CharSequence
albumArtist
Optional album artist.CharSequence
albumTitle
Optional album title.CharSequence
artist
Optional artist.static Bundleable.Creator<MediaMetadata>
CREATOR
Object that can restoreMediaMetadata
from aBundle
.CharSequence
description
Optional description.CharSequence
displayTitle
Optional display title.static MediaMetadata
EMPTY
EmptyMediaMetadata
.Uri
mediaUri
Optional mediaUri
.Rating
overallRating
Optional overallRating
.CharSequence
subtitle
Optional subtitle.CharSequence
title
Optional title.Rating
userRating
Optional userRating
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MediaMetadata.Builder
buildUpon()
Returns a newMediaMetadata.Builder
instance with the currentMediaMetadata
fields.boolean
equals(Object obj)
int
hashCode()
Bundle
toBundle()
Returns aBundle
representing the information stored in this object.
-
-
-
Field Detail
-
EMPTY
public static final MediaMetadata EMPTY
EmptyMediaMetadata
.
-
title
@Nullable public final CharSequence title
Optional title.
-
artist
@Nullable public final CharSequence artist
Optional artist.
-
albumTitle
@Nullable public final CharSequence albumTitle
Optional album title.
-
albumArtist
@Nullable public final CharSequence albumArtist
Optional album artist.
-
displayTitle
@Nullable public final CharSequence displayTitle
Optional display title.
-
subtitle
@Nullable public final CharSequence subtitle
Optional subtitle.This is the secondary title of the media, unrelated to closed captions.
-
description
@Nullable public final CharSequence description
Optional description.
-
CREATOR
public static final Bundleable.Creator<MediaMetadata> CREATOR
Object that can restoreMediaMetadata
from aBundle
.
-
-
Method Detail
-
buildUpon
public MediaMetadata.Builder buildUpon()
Returns a newMediaMetadata.Builder
instance with the currentMediaMetadata
fields.
-
toBundle
public Bundle toBundle()
Description copied from interface:Bundleable
Returns aBundle
representing the information stored in this object.- Specified by:
toBundle
in interfaceBundleable
-
-