@UnstableApi
public class VorbisComment implements Metadata.Entry

Known direct subclasses
VorbisComment

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


Summary

Public fields

final String

The key in upper case, to ease case-insensitive comparisons.

final String

The value.

Public constructors

VorbisComment(String key, String value)

Constructs an instance.

Public methods

boolean
int
void

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

String

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.

Public fields

key

public final String key

The key in upper case, to ease case-insensitive comparisons.

value

public final String value

The value.

Public constructors

VorbisComment

public VorbisComment(String key, String value)

Constructs an instance.

Parameters
String key

The key. Must be an ASCII string containing only characters between 0x20 and 0x7D (inclusive), excluding 0x3D ('=').

String value

The value.

Public methods

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.

Parameters
MediaMetadata.Builder builder

The builder to be updated.

toString

public String toString()