MediaItem.SubtitleConfiguration


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 functions

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!

Public properties

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 functions

buildUpon

fun buildUpon(): MediaItem.SubtitleConfiguration.Builder!

Returns a Builder initialized with the values of this instance.

equals

fun equals(obj: Any?): Boolean

fromBundle

@UnstableApi
java-static fun fromBundle(bundle: Bundle!): MediaItem.SubtitleConfiguration!

Restores a SubtitleConfiguration from a Bundle.

hashCode

fun hashCode(): Int

toBundle

@UnstableApi
fun toBundle(): Bundle!

Public properties

id

val idString?

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

label

val labelString?

The label.

language

val languageString?

The language.

mimeType

val mimeTypeString?

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

roleFlags

@C.RoleFlags
val roleFlagsInt

The role flags.

selectionFlags

@C.SelectionFlags
val selectionFlagsInt

The selection flags.

uri

val uriUri!

The Uri to the subtitle file.