Class SubtitleFormat

java.lang.Object
com.castlabs.sdk.base.subtitles.utilities.SubtitleFormat
All Implemented Interfaces:
Parcelable

public class SubtitleFormat extends Object implements Parcelable
  • Field Details

    • NO_VALUE

      public static final int NO_VALUE
      A value for various fields to indicate that the field's value is unknown or not applicable.
      See Also:
    • OFFSET_SAMPLE_RELATIVE

      public static final long OFFSET_SAMPLE_RELATIVE
      A value to indicate that subsample timestamps are relative to the timestamps of their parent samples.
      See Also:
    • id

      @Nullable public final String id
      An identifier for the SubtitleFormat, or null if unknown or not applicable.
    • label

      @Nullable public final String label
      The human readable label, or null if unknown or not applicable.
    • selectionFlags

      @SelectionFlags public final int selectionFlags
      Track selection flags.
    • roleFlags

      @RoleFlags public final int roleFlags
      Track role flags.
    • bitrate

      public final int bitrate
      The average bandwidth in bits per second, or NO_VALUE if unknown or not applicable.
    • codecs

      @Nullable public final String codecs
      Codecs of the SubtitleFormat as described in RFC 6381, or null if unknown or not applicable.
    • containerMimeType

      @Nullable public final String containerMimeType
      The mime type of the container, or null if unknown or not applicable.
    • sampleMimeType

      @Nullable public final String sampleMimeType
      The mime type of the elementary stream (i.e. the individual samples), or null if unknown or not applicable.
    • initializationData

      public final List<byte[]> initializationData
      Initialization data that must be provided to the decoder. Will not be null, but may be empty if initialization data is not required.
    • drmInitData

      @Nullable public final DrmInitData drmInitData
      DRM initialization data if the stream is protected, or null otherwise.
    • language

      @Nullable public final String language
      The language as an IETF BCP 47 conformant tag, or null if unknown or not applicable.
    • originalLanguage

      @Nullable public final String originalLanguage
      The language as present in manifest language tag, or null if unknown or not applicable.
    • accessibilityChannel

      public final int accessibilityChannel
      The Accessibility channel, or NO_VALUE if not known or applicable.
    • CREATOR

      public static final Parcelable.Creator<SubtitleFormat> CREATOR
  • Method Details