Stay organized with collections Save and categorize content based on your preferences.

VorbisComment

@UnstableApi
public class VorbisComment implements Metadata.Entry

Known direct subclasses
VorbisComment

A vorbis comment, extracted from a FLAC or Ogg file.


Summary

Constants

static final Parcelable.Creator<VorbisComment>

Public fields

final String

The key.

final String

The value.

Public constructors

VorbisComment(String key, String value)

Protected constructors

Public methods

int
boolean
int
void

Updates the MediaMetadata.Builder with the type specific values stored in this Entry.

String
void
writeToParcel(Parcel dest, int flags)

Inherited Constants

From android.os.Parcelable
static final int
static final int

Inherited methods

From androidx.media3.common.Metadata.Entry
@Nullable byte[]

Returns the bytes of the wrapped metadata in this Entry, or null if it doesn't contain wrapped metadata.

@Nullable Format

Returns the Format that can be used to decode the wrapped metadata in getWrappedMetadataBytes, or null if this Entry doesn't contain wrapped metadata.

Constants

CREATOR

public static final Parcelable.Creator<VorbisCommentCREATOR

Public fields

key

public final String key

The key.

value

public final String value

The value.

Public constructors

VorbisComment

public VorbisComment(String key, String value)
Parameters
String key

The key.

String value

The value.

Protected constructors

VorbisComment

protected VorbisComment(Parcel in)

Public methods

describeContents

public int describeContents()

equals

public boolean equals(@Nullable Object obj)

hashCode

public int hashCode()

populateMediaMetadata

public void populateMediaMetadata(MediaMetadata.Builder builder)

Updates the MediaMetadata.Builder with the type specific values stored in this Entry.

The order of the Entry objects in the Metadata matters. If two entries attempt to populate the same MediaMetadata field, then the last one in the list is used.

Parameters
MediaMetadata.Builder builder

The builder to be updated.

toString

public String toString()

writeToParcel

public void writeToParcel(Parcel dest, int flags)