Class Caption

java.lang.Object
com.jwplayer.pub.api.media.captions.Caption
All Implemented Interfaces:
android.os.Parcelable

public class Caption extends Object implements android.os.Parcelable
A caption track.
  • Field Details

    • CREATOR

      public static final android.os.Parcelable.Creator<Caption> CREATOR
  • Constructor Details

  • Method Details

    • getFile

      @Nullable public 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 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
    • isIncludedInManifest

      public boolean isIncludedInManifest()
      Returns:
      Only for captions. Returns if track is included in manifest. Defaults to false
    • describeContents

      public int describeContents()
      Specified by:
      describeContents in interface android.os.Parcelable
    • writeToParcel

      public void writeToParcel(android.os.Parcel dest, int flags)
      Specified by:
      writeToParcel in interface android.os.Parcelable
    • equals

      public boolean equals(@Nullable Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object