Package com.google.android.exoplayer2
Class MediaItem.Subtitle
- java.lang.Object
-
- com.google.android.exoplayer2.MediaItem.Subtitle
-
-
Constructor Summary
Constructors Constructor Description Subtitle(Uri uri, String mimeType, String language)
Creates an instance.Subtitle(Uri uri, String mimeType, String language, int selectionFlags)
Creates an instance.Subtitle(Uri uri, String mimeType, String language, int selectionFlags, int roleFlags, String label)
Creates an instance.
-
-
-
Field Detail
-
mimeType
public final String mimeType
The MIME type.
-
language
@Nullable public final String language
The language.
-
selectionFlags
@SelectionFlags public final int selectionFlags
The selection flags.
-
roleFlags
@RoleFlags public final int roleFlags
The role flags.
-
label
@Nullable public final String label
The label.
-
-
Constructor Detail
-
Subtitle
public Subtitle(Uri uri, String mimeType, @Nullable String language)
Creates an instance.- Parameters:
uri
- TheURI
to the subtitle file.mimeType
- The MIME type.language
- The optional language.
-
Subtitle
public Subtitle(Uri uri, String mimeType, @Nullable String language, @SelectionFlags int selectionFlags)
Creates an instance.- Parameters:
uri
- TheURI
to the subtitle file.mimeType
- The MIME type.language
- The optional language.selectionFlags
- The selection flags.
-
Subtitle
public Subtitle(Uri uri, String mimeType, @Nullable String language, @SelectionFlags int selectionFlags, @RoleFlags int roleFlags, @Nullable String label)
Creates an instance.- Parameters:
uri
- TheURI
to the subtitle file.mimeType
- The MIME type.language
- The optional language.selectionFlags
- The selection flags.roleFlags
- The role flags.label
- The optional label.
-
-