Class Caption

java.lang.Object
com.jwplayer.pub.api.media.captions.Caption

public class Caption extends Object
A caption track.
  • Field Details

    • CREATOR

      public static final <any> CREATOR
  • Constructor Details

  • Method Details

    • getFile

      public String getFile()
      Returns:
      URL to the captions, chapters or thumbnails text track file.
    • getKind

      public CaptionType getKind()
      Returns:
      The kind of text track.
    • getLabel

      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()
    • writeToParcel

      public void writeToParcel(Parcel dest, int flags)
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object