Class HlsDateRange

java.lang.Object
com.castlabs.android.player.models.hls.HlsDateRange

public class HlsDateRange extends Object
Represents a date range in an HLS playlist.
  • Field Details

    • id

      @NonNull public final String id
    • startTimeUs

      public final long startTimeUs
    • className

      @Nullable public final String className
    • cue

      @Nullable public final String cue
    • endTimeUs

      @Nullable public final Long endTimeUs
    • durationSec

      @Nullable public final Float durationSec
    • plannedDuration

      @Nullable public final Float plannedDuration
    • scte35cmd

      @Nullable public final String scte35cmd
    • scte35in

      @Nullable public final String scte35in
    • scte35out

      @Nullable public final String scte35out
    • clientAttributes

      @NonNull public final Map<String,String> clientAttributes
  • Constructor Details

    • HlsDateRange

      public HlsDateRange(@NonNull String id, long startTimeUs, @Nullable String className, @Nullable String cue, @Nullable Long endTimeUs, @Nullable Float durationSec, @Nullable Float plannedDuration, @Nullable String scte35cmd, @Nullable String scte35in, @Nullable String scte35out, @NonNull Map<String,String> clientAttributes)
      Creates a new instance.
      Parameters:
      id - The ID of the date range.
      startTimeUs - The start time of the date range in microseconds since the epoch.
      className - The class name of the date range.
      cue - The cue of the date range.
      endTimeUs - The end time of the date range in microseconds since the epoch.
      durationSec - The duration of the date range in seconds.
      plannedDuration - The planned duration of the date range in seconds.
      scte35cmd - The SCTE35-CMD data of the date range.
      scte35in - The SCTE35-IN data of the date range.
      scte35out - The SCTE35-OUT data of the date range.
      clientAttributes - The client attributes of the date range.