Class Caption
- java.lang.Object
-
- com.jwplayer.pub.api.media.captions.Caption
-
- All Implemented Interfaces:
android.os.Parcelable
- Direct Known Subclasses:
ChaptersTrack
public class Caption extends java.lang.Object implements android.os.Parcelable
A caption track.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Caption.Builder
Builder forCaption
.
-
Constructor Summary
Constructors Modifier Constructor Description protected
Caption(Caption.Builder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
describeContents()
boolean
equals(java.lang.Object obj)
java.lang.String
getFile()
CaptionType
getKind()
java.lang.String
getLabel()
int
hashCode()
boolean
isDefault()
void
writeToParcel(android.os.Parcel dest, int flags)
-
-
-
Field Detail
-
CREATOR
public static final android.os.Parcelable.Creator<Caption> CREATOR
-
-
Constructor Detail
-
Caption
protected Caption(Caption.Builder builder)
-
-
Method Detail
-
getFile
@Nullable public java.lang.String getFile()
- Returns:
- URL to the captions, chapters or thumbnails text track file.
-
getKind
@NonNull public CaptionType getKind()
- Returns:
- The kind of text track.
-
getLabel
@Nullable public java.lang.String getLabel()
- Returns:
- Label of the text track. Is only used in setups with multiple captions, where the label is displayed in the CC selection menu.
-
isDefault
public boolean isDefault()
- Returns:
- Only for captions. Set this to true if you want a captions track to display by default
-
describeContents
public int describeContents()
- Specified by:
describeContents
in interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags)
- Specified by:
writeToParcel
in interfaceandroid.os.Parcelable
-
equals
public boolean equals(@Nullable java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-