Class Caption
java.lang.Object
com.jwplayer.pub.api.media.captions.Caption
- All Implemented Interfaces:
android.os.Parcelable
A caption track.
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsFields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleangetFile()getKind()getLabel()inthashCode()booleanbooleanvoidwriteToParcel(android.os.Parcel dest, int flags)
-
Field Details
-
CREATOR
-
-
Constructor Details
-
Caption
-
-
Method Details
-
getFile
- Returns:
- URL to the captions, chapters or thumbnails text track file.
-
getKind
- Returns:
- The kind of text track.
-
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
-
isIncludedInManifest
public boolean isIncludedInManifest()- Returns:
- Only for captions. Returns if track is included in manifest. Defaults to false
-
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
-
hashCode
public int hashCode()
-