public static class SegmentBase.SegmentList extends SegmentBase.MultiSegmentBase
SegmentBase.MultiSegmentBase that uses a SegmentList to define its segments.SegmentBase.MultiSegmentBase, SegmentBase.SegmentList, SegmentBase.SegmentTemplate, SegmentBase.SegmentTimelineElement, SegmentBase.SingleSegmentBase| Constructor and Description |
|---|
SegmentList(RangedUri initialization,
long timescale,
long presentationTimeOffset,
long startNumber,
long duration,
java.util.List<SegmentBase.SegmentTimelineElement> segmentTimeline,
java.util.List<RangedUri> mediaSegments) |
| Modifier and Type | Method and Description |
|---|---|
int |
getSegmentCount(long periodDurationUs) |
RangedUri |
getSegmentUrl(Representation representation,
long sequenceNumber)
Returns a
RangedUri defining the location of a segment for the given index in the
given representation. |
boolean |
isExplicit() |
getFirstSegmentNum, getSegmentDurationUs, getSegmentNum, getSegmentTimeUsgetInitialization, getPresentationTimeOffsetUspublic SegmentList(RangedUri initialization, long timescale, long presentationTimeOffset, long startNumber, long duration, java.util.List<SegmentBase.SegmentTimelineElement> segmentTimeline, java.util.List<RangedUri> mediaSegments)
initialization - A RangedUri corresponding to initialization data, if such data
exists.timescale - The timescale in units per second.presentationTimeOffset - The presentation time offset. The value in seconds is the
division of this value and timescale.startNumber - The sequence number of the first segment.duration - The duration of each segment in the case of fixed duration segments. The
value in seconds is the division of this value and timescale. If segmentTimeline is non-null then this parameter is ignored.segmentTimeline - A segment timeline corresponding to the segments. If null, then
segments are assumed to be of fixed duration as specified by the duration
parameter.mediaSegments - A list of RangedUris indicating the locations of the segments.public RangedUri getSegmentUrl(Representation representation, long sequenceNumber)
SegmentBase.MultiSegmentBaseRangedUri defining the location of a segment for the given index in the
given representation.getSegmentUrl in class SegmentBase.MultiSegmentBaseDashSegmentIndex.getSegmentUrl(long)public int getSegmentCount(long periodDurationUs)
getSegmentCount in class SegmentBase.MultiSegmentBaseDashSegmentIndex.getSegmentCount(long)public boolean isExplicit()
isExplicit in class SegmentBase.MultiSegmentBaseDashSegmentIndex.isExplicit()