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.ParcelableA caption track.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCaption.BuilderBuilder forCaption.
-
Constructor Summary
Constructors Modifier Constructor Description protectedCaption(Caption.Builder builder)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intdescribeContents()booleanequals(java.lang.Object obj)java.lang.StringgetFile()CaptionTypegetKind()java.lang.StringgetLabel()inthashCode()booleanisDefault()voidwriteToParcel(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:
describeContentsin interfaceandroid.os.Parcelable
-
writeToParcel
public void writeToParcel(android.os.Parcel dest, int flags)- Specified by:
writeToParcelin interfaceandroid.os.Parcelable
-
equals
public boolean equals(@Nullable java.lang.Object obj)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-