MediaItem.Subtitle


@UnstableApi
class MediaItem.Subtitle : MediaItem.SubtitleConfiguration


Summary

Public constructors

@UnstableApi
Subtitle(uri: Uri!, mimeType: String!, language: String?)

This function is deprecated.

Use Builder instead.

@UnstableApi
Subtitle(
    uri: Uri!,
    mimeType: String!,
    language: String?,
    @C.SelectionFlags selectionFlags: Int
)

This function is deprecated.

Use Builder instead.

@UnstableApi
Subtitle(
    uri: Uri!,
    mimeType: String!,
    language: String?,
    @C.SelectionFlags selectionFlags: Int,
    @C.RoleFlags roleFlags: Int,
    label: String?
)

This function is deprecated.

Use Builder instead.

Inherited functions

From androidx.media3.common.MediaItem.SubtitleConfiguration
MediaItem.SubtitleConfiguration.Builder!

Returns a Builder initialized with the values of this instance.

Boolean
equals(obj: Any?)
java-static MediaItem.SubtitleConfiguration!

Restores a SubtitleConfiguration from a Bundle.

Int
Bundle!

Inherited properties

From androidx.media3.common.MediaItem.SubtitleConfiguration
String?

The ID of the subtitles.

String?

The label.

String?

The language.

String?

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

Int

The role flags.

Int

The selection flags.

Uri!

The Uri to the subtitle file.

Public constructors

Subtitle

@UnstableApi
Subtitle(uri: Uri!, mimeType: String!, language: String?)

Subtitle

@UnstableApi
Subtitle(
    uri: Uri!,
    mimeType: String!,
    language: String?,
    @C.SelectionFlags selectionFlags: Int
)

Subtitle

@UnstableApi
Subtitle(
    uri: Uri!,
    mimeType: String!,
    language: String?,
    @C.SelectionFlags selectionFlags: Int,
    @C.RoleFlags roleFlags: Int,
    label: String?
)