Package com.google.android.exoplayer2
Class MediaItem.SubtitleConfiguration
- java.lang.Object
-
- com.google.android.exoplayer2.MediaItem.SubtitleConfiguration
-
- Direct Known Subclasses:
MediaItem.Subtitle
- Enclosing class:
- MediaItem
public static class MediaItem.SubtitleConfiguration extends Object
Properties for a text track.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMediaItem.SubtitleConfiguration.BuilderBuilder forMediaItem.SubtitleConfigurationinstances.
-
Field Summary
Fields Modifier and Type Field Description 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()
-
-
-
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.
-
-
Method Detail
-
buildUpon
public MediaItem.SubtitleConfiguration.Builder buildUpon()
Returns aMediaItem.SubtitleConfiguration.Builderinitialized with the values of this instance.
-
-