MediaItem.Subtitle


@UnstableApi
public final class MediaItem.Subtitle extends MediaItem.SubtitleConfiguration


Summary

Public constructors

@UnstableApi
Subtitle(Uri uri, String mimeType, @Nullable String language)

This method is deprecated.

Use Builder instead.

@UnstableApi
Subtitle(
    Uri uri,
    String mimeType,
    @Nullable String language,
    @C.SelectionFlags int selectionFlags
)

This method is deprecated.

Use Builder instead.

@UnstableApi
Subtitle(
    Uri uri,
    String mimeType,
    @Nullable String language,
    @C.SelectionFlags int selectionFlags,
    @C.RoleFlags int roleFlags,
    @Nullable String label
)

This method is deprecated.

Use Builder instead.

Inherited fields

From androidx.media3.common.MediaItem.SubtitleConfiguration
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.

Inherited methods

From androidx.media3.common.MediaItem.SubtitleConfiguration
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 constructors

Subtitle

@UnstableApi
public Subtitle(Uri uri, String mimeType, @Nullable String language)

Subtitle

@UnstableApi
public Subtitle(
    Uri uri,
    String mimeType,
    @Nullable String language,
    @C.SelectionFlags int selectionFlags
)

Subtitle

@UnstableApi
public Subtitle(
    Uri uri,
    String mimeType,
    @Nullable String language,
    @C.SelectionFlags int selectionFlags,
    @C.RoleFlags int roleFlags,
    @Nullable String label
)