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 id: String?

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

label

val label: String?

The label.

language

val language: String?

The language.

mimeType

val mimeType: String?

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

roleFlags

@C.RoleFlags
val roleFlags: Int

The role flags.

selectionFlags

@C.SelectionFlags
val selectionFlags: Int

The selection flags.

uri

val uri: Uri!

The Uri to the subtitle file.