MediaItem.SubtitleConfiguration


public class MediaItem.SubtitleConfiguration

Known direct subclasses
MediaItem.Subtitle

This class is deprecated.

Use MediaItem.SubtitleConfiguration instead


Properties for a text track.

Summary

Nested types

Builder for SubtitleConfiguration instances.

Public fields

final @Nullable String

The ID of the subtitles.

final @Nullable String

The label.

final @Nullable String

The language.

final @Nullable String

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

final int

The role flags.

final int

The selection flags.

final Uri

The Uri to the subtitle file.

Public methods

MediaItem.SubtitleConfiguration.Builder

Returns a Builder initialized with the values of this instance.

boolean
static MediaItem.SubtitleConfiguration

Restores a SubtitleConfiguration from a Bundle.

int
Bundle

Public fields

id

public final @Nullable String id

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

label

public final @Nullable String label

The label.

language

public final @Nullable String language

The language.

mimeType

public final @Nullable String mimeType

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

roleFlags

@C.RoleFlags
public final int roleFlags

The role flags.

selectionFlags

@C.SelectionFlags
public final int selectionFlags

The selection flags.

uri

public final Uri uri

The Uri to the subtitle file.

Public methods

buildUpon

public MediaItem.SubtitleConfiguration.Builder buildUpon()

Returns a Builder initialized with the values of this instance.

equals

public boolean equals(@Nullable Object obj)

fromBundle

@UnstableApi
public static MediaItem.SubtitleConfiguration fromBundle(Bundle bundle)

Restores a SubtitleConfiguration from a Bundle.

hashCode

public int hashCode()

toBundle

@UnstableApi
public Bundle toBundle()