public abstract static class SegmentBase.MultiSegmentBase extends SegmentBase
SegmentBase that consists of multiple segments.SegmentBase.MultiSegmentBase, SegmentBase.SegmentList, SegmentBase.SegmentTemplate, SegmentBase.SegmentTimelineElement, SegmentBase.SingleSegmentBase| Constructor and Description |
|---|
MultiSegmentBase(RangedUri initialization,
long timescale,
long presentationTimeOffset,
long startNumber,
long duration,
java.util.List<SegmentBase.SegmentTimelineElement> segmentTimeline) |
| Modifier and Type | Method and Description |
|---|---|
long |
getFirstSegmentNum() |
abstract int |
getSegmentCount(long periodDurationUs) |
long |
getSegmentDurationUs(long sequenceNumber,
long periodDurationUs) |
long |
getSegmentNum(long timeUs,
long periodDurationUs) |
long |
getSegmentTimeUs(long sequenceNumber) |
abstract RangedUri |
getSegmentUrl(Representation representation,
long index)
Returns a
RangedUri defining the location of a segment for the given index in the
given representation. |
boolean |
isExplicit() |
getInitialization, getPresentationTimeOffsetUspublic MultiSegmentBase(RangedUri initialization, long timescale, long presentationTimeOffset, long startNumber, long duration, java.util.List<SegmentBase.SegmentTimelineElement> segmentTimeline)
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.public long getSegmentNum(long timeUs,
long periodDurationUs)
public final long getSegmentDurationUs(long sequenceNumber,
long periodDurationUs)
public final long getSegmentTimeUs(long sequenceNumber)
DashSegmentIndex.getTimeUs(long)public abstract RangedUri getSegmentUrl(Representation representation, long index)
RangedUri defining the location of a segment for the given index in the
given representation.DashSegmentIndex.getSegmentUrl(long)public long getFirstSegmentNum()
DashSegmentIndex.getFirstSegmentNum()public abstract int getSegmentCount(long periodDurationUs)
DashSegmentIndex.getSegmentCount(long)public boolean isExplicit()
DashSegmentIndex.isExplicit()