Class HlsDateRange
java.lang.Object
com.castlabs.android.player.models.hls.HlsDateRange
Represents a date range in an HLS playlist.
-
Field Summary
FieldsModifier and TypeFieldDescriptionfinal String
The class name of the date range.The client attributes of the date range.final String
The cue of the date range.final Float
The duration of the date range in seconds.final Long
The end time of the date range in microseconds since the epoch.final String
The ID of the date range.final Float
The planned duration of the date range in seconds.final String
The SCTE35-CMD data of the date range.final String
The SCTE35-IN data of the date range.final String
The SCTE35-OUT data of the date range.final long
The start time of the date range in microseconds since the epoch. -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
id
The ID of the date range. -
startTimeUs
public final long startTimeUsThe 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.
-
-
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.
-