public class

MediaItem.SubtitleConfiguration

extends java.lang.Object

 java.lang.Object

↳androidx.media3.common.MediaItem.SubtitleConfiguration

Subclasses:

MediaItem.Subtitle

Overview

Properties for a text track.

Summary

Fields
public final java.lang.Stringid

The ID of the subtitles.

public final java.lang.Stringlabel

The label.

public final java.lang.Stringlanguage

The language.

public final java.lang.StringmimeType

The optional MIME type of the subtitle file, or null if unspecified.

public final introleFlags

The role flags.

public final intselectionFlags

The selection flags.

public final Uriuri

The to the subtitle file.

Methods
public MediaItem.SubtitleConfiguration.BuilderbuildUpon()

Returns a MediaItem.SubtitleConfiguration.Builder initialized with the values of this instance.

public booleanequals(java.lang.Object obj)

public static MediaItem.SubtitleConfigurationfromBundle(Bundle bundle)

Restores a SubtitleConfiguration from a .

public inthashCode()

public BundletoBundle()

from java.lang.Objectclone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

Fields

public final Uri uri

The to the subtitle file.

public final java.lang.String mimeType

The optional MIME type of the subtitle file, or null if unspecified.

public final java.lang.String language

The language.

public final int selectionFlags

The selection flags.

public final int roleFlags

The role flags.

public final java.lang.String label

The label.

public final java.lang.String id

The ID of the subtitles. This will be propagated to the Format.id of the subtitle track created from this configuration.

Methods

Returns a MediaItem.SubtitleConfiguration.Builder initialized with the values of this instance.

public boolean equals(java.lang.Object obj)

public int hashCode()

public static MediaItem.SubtitleConfiguration fromBundle(Bundle bundle)

Restores a SubtitleConfiguration from a .

public Bundle toBundle()