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 classMediaItem.SubtitleConfiguration.BuilderBuilder forMediaItem.SubtitleConfigurationinstances.-
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>CREATORAn object that can restoreMediaItem.SubtitleConfigurationfrom aBundle.StringidThe ID of the subtitles.StringlabelThe label.StringlanguageThe language.StringmimeTypeThe optional MIME type of the subtitle file, ornullif unspecified.@com.google.android.exoplayer2.C.RoleFlags introleFlagsThe role flags.@com.google.android.exoplayer2.C.SelectionFlags intselectionFlagsThe selection flags.UriuriTheUrito the subtitle file.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MediaItem.SubtitleConfiguration.BuilderbuildUpon()Returns aMediaItem.SubtitleConfiguration.Builderinitialized with the values of this instance.booleanequals(Object obj)inthashCode()BundletoBundle()Returns aBundlerepresenting the information stored in this object.
-
-
-
Field Detail
-
mimeType
@Nullable public final String mimeType
The optional MIME type of the subtitle file, ornullif 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.idof the subtitle track created from this configuration.
-
CREATOR
public static final Bundleable.Creator<MediaItem.SubtitleConfiguration> CREATOR
An object that can restoreMediaItem.SubtitleConfigurationfrom aBundle.
-
-
Method Detail
-
buildUpon
public MediaItem.SubtitleConfiguration.Builder buildUpon()
Returns aMediaItem.SubtitleConfiguration.Builderinitialized with the values of this instance.
-
toBundle
public Bundle toBundle()
Description copied from interface:BundleableReturns aBundlerepresenting the information stored in this object.- Specified by:
toBundlein interfaceBundleable
-
-