Package com.google.android.exoplayer2
Class MediaItem.SubtitleConfiguration
- java.lang.Object
-
- com.google.android.exoplayer2.MediaItem.SubtitleConfiguration
-
- All Implemented Interfaces:
Bundleable
- Direct Known Subclasses:
MediaItem.Subtitle
- Enclosing class:
- MediaItem
public static class MediaItem.SubtitleConfiguration extends Object implements Bundleable
Properties for a text track.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MediaItem.SubtitleConfiguration.Builder
Builder forMediaItem.SubtitleConfiguration
instances.-
Nested classes/interfaces inherited from interface com.google.android.exoplayer2.Bundleable
Bundleable.Creator<T extends Bundleable>
-
-
Field Summary
Fields Modifier and Type Field Description static Bundleable.Creator<MediaItem.SubtitleConfiguration>
CREATOR
An object that can restoreMediaItem.SubtitleConfiguration
from aBundle
.String
id
The ID of the subtitles.String
label
The label.String
language
The language.String
mimeType
The optional MIME type of the subtitle file, ornull
if unspecified.@com.google.android.exoplayer2.C.RoleFlags int
roleFlags
The role flags.@com.google.android.exoplayer2.C.SelectionFlags int
selectionFlags
The selection flags.Uri
uri
TheUri
to the subtitle file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MediaItem.SubtitleConfiguration.Builder
buildUpon()
Returns aMediaItem.SubtitleConfiguration.Builder
initialized with the values of this instance.boolean
equals(Object obj)
int
hashCode()
Bundle
toBundle()
Returns aBundle
representing the information stored in this object.
-
-
-
Field Detail
-
mimeType
@Nullable public final String mimeType
The optional MIME type of the subtitle file, ornull
if unspecified.
-
language
@Nullable public final String language
The language.
-
selectionFlags
@SelectionFlags public final @com.google.android.exoplayer2.C.SelectionFlags int selectionFlags
The selection flags.
-
roleFlags
@RoleFlags public final @com.google.android.exoplayer2.C.RoleFlags int roleFlags
The role flags.
-
label
@Nullable public final String label
The label.
-
id
@Nullable public final String id
The ID of the subtitles. This will be propagated to theFormat.id
of the subtitle track created from this configuration.
-
CREATOR
public static final Bundleable.Creator<MediaItem.SubtitleConfiguration> CREATOR
An object that can restoreMediaItem.SubtitleConfiguration
from aBundle
.
-
-
Method Detail
-
buildUpon
public MediaItem.SubtitleConfiguration.Builder buildUpon()
Returns aMediaItem.SubtitleConfiguration.Builder
initialized with the values of this instance.
-
toBundle
public Bundle toBundle()
Description copied from interface:Bundleable
Returns aBundle
representing the information stored in this object.- Specified by:
toBundle
in interfaceBundleable
-
-