MediaItem.SubtitleConfiguration


class MediaItem.SubtitleConfiguration : Bundleable

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.

Constants

const Bundleable.Creator<MediaItem.SubtitleConfiguration!>!

This property is deprecated.

Use fromBundle instead.

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!

Returns a Bundle representing the information stored in this object.

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.

Constants

CREATOR

@UnstableApi
const val CREATORBundleable.Creator<MediaItem.SubtitleConfiguration!>!

An object that can restore SubtitleConfiguration from a Bundle.

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!

Returns a Bundle representing the information stored in this object.

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.