MediaItem.SubtitleConfiguration
public class MediaItem.SubtitleConfiguration
MediaItem.Subtitle |
This class is deprecated. Use |
Properties for a text track.
Summary
Nested types |
|---|
public final class MediaItem.SubtitleConfiguration.BuilderBuilder for |
Public fields |
|
|---|---|
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 |
final int |
The role flags. |
final int |
The selection flags. |
final Uri |
The |
Public methods |
|
|---|---|
MediaItem.SubtitleConfiguration.Builder |
Returns a |
boolean |
|
static MediaItem.SubtitleConfiguration |
@UnstableApiRestores a |
int |
hashCode() |
Bundle |
Public fields
id
public final @Nullable String id
The ID of the subtitles. This will be propagated to the id of the subtitle track created from this configuration.
Public methods
buildUpon
public MediaItem.SubtitleConfiguration.Builder buildUpon()
Returns a Builder initialized with the values of this instance.
fromBundle
@UnstableApi
public static MediaItem.SubtitleConfiguration fromBundle(Bundle bundle)
Restores a SubtitleConfiguration from a Bundle.